/* Niestandardowe style dla Silktide Consent Manager - Dorota Mastalska */

/* Override domyślnych zmiennych CSS */
#silktide-wrapper {
  /* Główne kolory dopasowane do strony */
  --primaryColor: #0E0E0E; /* Główny kolor czarny ze strony */
  --backgroundColor: #FFFFFF;
  --textColor: #0E0E0E;
  
  /* Tło dla modalnego okna */
  --backdropBackgroundColor: rgba(14, 14, 14, 0.8);
  --backdropBackgroundBlur: 5px;
  
  /* Ikona cookies */
  --cookieIconColor: #FFFFFF;
  --cookieIconBackgroundColor: #0E0E0E;
  
  /* Cienie dopasowane do stylu strony */
  --boxShadow: 0 20px 60px rgba(14, 14, 14, 0.15), 0 8px 30px rgba(14, 14, 14, 0.1);
  
  /* Czcionka dopasowana do strony */
  --fontFamily: 'Poppins', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
}

/* Dostosowanie głównych kontenerów - szersze dla lepszego układu */
#silktide-banner {
  max-width: 480px !important; /* Szerszy banner dla lepszego układu */
  padding: 26px !important; /* Większy padding */
  font-size: 14px !important; /* Mniejsza czcionka */
  border-radius: 12px !important; /* Zaokrąglenie jak na stronie */
  background: #FFFFFF !important;
  border: 1px solid rgba(14, 14, 14, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 20px 60px rgba(14, 14, 14, 0.15), 0 8px 30px rgba(14, 14, 14, 0.1) !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  display: flex !important;
  flex-direction: column !important;
}

#silktide-modal {
  max-width: 620px !important; /* Szerszy modal dla lepszego układu */
  max-height: 85vh !important; /* Ograniczenie wysokości */
  padding: 0 !important; /* Usuniemy padding z kontenera głównego */
  overflow: hidden !important;
}

/* Tekst w bannerze */
#silktide-banner p {
  font-family: var(--fontFamily) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #333 !important;
  margin: 0 0 18px 0 !important;
}

/* Kontener główny bannera - właściwości już ustawione w głównej regule */

/* Tekst główny w bannerze */
#silktide-banner p {
  margin-bottom: 20px !important;
}

/* Kontener dla przycisków */
#silktide-banner > div {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* Przyciski główne w bannerze */
#silktide-banner .st-button {
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Link preferencji w bannerze */
#silktide-banner .preferences {
  font-family: var(--fontFamily) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  min-width: 120px !important;
}

#silktide-banner .preferences span {
  word-break: normal !important;
  white-space: nowrap !important;
  display: inline !important;
}

/* Modalny widok */
#silktide-modal {
  border-radius: 12px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(14, 14, 14, 0.06) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 25px 80px rgba(14, 14, 14, 0.12), 0 10px 40px rgba(14, 14, 14, 0.08) !important;
}

/* Header modalu */
#silktide-modal header {
  padding: 25px 35px 20px 35px !important;
  border-bottom: 1px solid rgba(14, 14, 14, 0.06) !important;
  background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%) !important;
  border-radius: 12px 12px 0 0 !important;
}

#silktide-modal header h1 {
  font-family: 'Antonio', var(--fontFamily) !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #0E0E0E !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* Opis w modalu */
#silktide-modal > p {
  padding: 25px 35px 5px 35px !important;
  font-family: var(--fontFamily) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #444 !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Sekcja z preferencjami cookies */
#cookie-preferences {
  padding: 25px 35px !important;
  max-height: 400px !important;
  overflow-y: auto !important;
}

/* Fieldset dla każdej kategorii */
#silktide-modal fieldset {
  border: 1px solid rgba(14, 14, 14, 0.06) !important;
  border-radius: 8px !important;
  padding: 18px !important;
  margin-bottom: 15px !important;
  background: rgba(250, 250, 250, 0.3) !important;
  transition: all 0.2s ease !important;
}

#silktide-modal fieldset:hover {
  border-color: rgba(14, 14, 14, 0.12) !important;
  background: rgba(250, 250, 250, 0.6) !important;
}

/* Legendy kategorii */
#silktide-modal legend {
  font-family: 'Poppins', var(--fontFamily) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0E0E0E !important;
  padding: 0 8px !important;
  margin-bottom: 8px !important;
}

/* Opisy kategorii */
.cookie-type-description {
  font-family: var(--fontFamily) !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: #555 !important;
  margin-bottom: 12px !important;
}

/* Przełączniki */
.switch {
  position: relative !important;
  display: inline-block !important;
  width: 50px !important;
  height: 24px !important;
  margin: 0 !important;
}

.switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.switch__pill {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: #ccc !important;
  border-radius: 12px !important;
  transition: 0.3s !important;
}

.switch__pill:before {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: white !important;
  border-radius: 50% !important;
  transition: 0.3s !important;
}

.switch input:checked + .switch__pill {
  background-color: #0E0E0E !important;
}

.switch input:checked + .switch__pill:before {
  transform: translateX(26px) !important;
}

.switch input:disabled + .switch__pill {
  background-color: #0E0E0E !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* Ukrycie tekstów ON/OFF i kropki */
.switch__on, .switch__off, .switch__dot {
  display: none !important;
}

/* Czytelność tekstu w przełącznikach */
.cookie-type-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 15px !important;
}

.cookie-type-content .cookie-type-description {
  flex: 1 !important;
  margin-bottom: 0 !important;
}

/* Footer modalu */
#silktide-modal footer {
  padding: 20px 35px 25px 35px !important;
  border-top: 1px solid rgba(14, 14, 14, 0.06) !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #FAFAFA 100%) !important;
  border-radius: 0 0 12px 12px !important;
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* Przyciski */
#silktide-wrapper .st-button {
  border-radius: 20px !important; /* Zaokrąglone przyciski jak na stronie */
  font-weight: 500 !important;
  font-family: var(--fontFamily) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  padding: 10px 20px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-size: 12px !important;
  line-height: 16px !important;
  border: none !important;
  cursor: pointer !important;
  min-width: 120px !important;
  text-align: center !important;
}

#silktide-wrapper .st-button--primary {
  background: linear-gradient(135deg, #0E0E0E 0%, #2A2A2A 100%);
  color: #FFFFFF;
  border: 2px solid #0E0E0E;
}

#silktide-wrapper .st-button--primary:hover {
  background: linear-gradient(135deg, #2A2A2A 0%, #0E0E0E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 14, 14, 0.3);
}

#silktide-wrapper .st-button--secondary {
  background: transparent;
  color: #0E0E0E;
  border: 2px solid #0E0E0E;
}

#silktide-wrapper .st-button--secondary:hover {
  background: #0E0E0E;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 14, 14, 0.3);
}

/* Ikona cookies */
#silktide-cookie-icon {
  border-radius: 50%;
  background: linear-gradient(135deg, #0E0E0E 0%, #2A2A2A 100%);
  box-shadow: var(--boxShadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#silktide-cookie-icon:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 15px 40px rgba(14, 14, 14, 0.3);
}

/* Linki */
#silktide-wrapper a {
  color: #0E0E0E;
  text-decoration: underline;
  font-weight: 500;
  transition: all 0.3s ease;
}

#silktide-wrapper a:hover {
  color: #2A2A2A;
  text-decoration: none;
}

/* Nagłówki */
#silktide-wrapper h1,
#silktide-wrapper h2,
#silktide-wrapper h3,
#silktide-wrapper h4 {
  font-family: 'Antonio', var(--fontFamily);
  font-weight: 600;
  color: #0E0E0E;
}

/* Tekst główny */
#silktide-wrapper p {
  font-family: var(--fontFamily);
  line-height: 1.6;
  color: #0E0E0E;
}

/* Checkboxy */
#silktide-wrapper input[type="checkbox"] {
  accent-color: #0E0E0E;
}

/* Responsywność */
@media (max-width: 768px) {
  #silktide-banner {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 10px !important;
    bottom: 10px !important;
    right: 10px !important;
    left: 10px !important;
    padding: 20px !important;
    font-size: 13px !important;
  }
  
  #silktide-banner > div {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  
  #silktide-banner .preferences {
    text-align: center !important;
    min-width: auto !important;
  }
  
  #silktide-modal {
    width: calc(100% - 20px) !important;
    max-width: none !important;
    margin: 10px !important;
    max-height: calc(100vh - 40px) !important;
  }
  
  #silktide-modal header {
    padding: 20px 28px 15px 28px !important;
  }
  
  #silktide-modal header h1 {
    font-size: 20px !important;
  }
  
  #silktide-modal > p {
    padding: 18px 28px 5px 28px !important;
    font-size: 13px !important;
  }
  
  #cookie-preferences {
    padding: 20px 28px !important;
    max-height: 350px !important;
  }
  
  #silktide-modal fieldset {
    padding: 15px !important;
  }
  
  #silktide-modal legend {
    font-size: 14px !important;
  }
  
  .cookie-type-description {
    font-size: 12px !important;
  }
  
  #silktide-modal footer {
    padding: 15px 28px 20px 28px !important;
    flex-direction: column !important;
  }
  
  #silktide-wrapper .st-button {
    padding: 12px 20px !important;
    font-size: 11px !important;
    width: 100% !important;
    margin: 3px 0 !important;
    min-width: auto !important;
  }
}

@media (max-width: 480px) {
  #silktide-banner {
    padding: 18px !important;
    font-size: 12px !important;
  }
  
  #silktide-banner .preferences {
    font-size: 12px !important;
  }
  
  #silktide-modal header h1 {
    font-size: 18px !important;
  }
  
  #cookie-preferences {
    max-height: 300px !important;
  }
}

/* Animacje dostosowane */
@keyframes silktide-slideInDown {
  0% {
    transform: translate(0, 100px);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes silktide-slideInDown-center {
  0% {
    transform: translate(-50%, calc(-50% + 100px));
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@keyframes silktide-slideInDown-bottomCenter {
  0% {
    transform: translate(-50%, 100px);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

/* Dodatkowe style dla polskiej wersji */
#silktide-wrapper .polish-custom {
  text-align: left;
}

#silktide-wrapper .polish-custom .button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

@media (max-width: 480px) {
  #silktide-wrapper .polish-custom .button-group {
    flex-direction: column;
  }
}

/* Ukrycie logo Silktide S */
#silktide-banner a.silktide-logo,
#silktide-modal a.silktide-logo {
  display: none !important;
  visibility: hidden !important;
}