:root {
  --oz-launcher-height: 52px;
}

#oz-assistant-launcher {
  position: fixed;
  left: 18px;
  right: auto;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--oz-launcher-height);
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #0b89a6;
  color: #fff;
  font: 600 14px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}


#oz-assistant-launcher.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}


html.oz-assistant-open #oz-assistant-launcher {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#oz-assistant-launcher .oz-assistant-launcher-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

#oz-assistant-launcher .oz-assistant-launcher-label {
  display: inline-block;
}

#oz-assistant-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(0,0,0,.28);
}

#oz-assistant-consent {
  width: min(420px, 100%);
  max-height: min(640px, calc(100dvh - 32px));
  overflow: auto;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  color: #17221f;
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#oz-assistant-consent h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

#oz-assistant-consent p {
  margin: 0 0 10px;
}

#oz-assistant-consent-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

#oz-assistant-consent-actions button {
  flex: 1;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid currentColor;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 600px) {
  #oz-assistant-launcher {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translate(-50%, 10px);
    min-height: 48px;
    max-width: calc(100vw - 24px);
    padding: 0 15px;
    font-size: 13.5px;
  }


  #oz-assistant-launcher.is-visible {
    transform: translate(-50%, 0);
  }

  #oz-assistant-consent-backdrop {
    padding: 12px;
  }
}


/* Çerez kutusu launcher görünürken onun üstüne çıkar.
   Asistan açıldığında launcher-visible sınıfı kaldırıldığı için kutu normal alt konumuna döner;
   sohbet paneli daha yüksek z-index ile çerez kutusunun üstünde kalır. */
#cookie-consent {
  z-index: 9995 !important;
  transition: bottom .18s ease;
}

html.oz-assistant-launcher-visible:not(.oz-assistant-open) #cookie-consent:not([hidden]) {
  bottom: 84px !important;
}

@media (max-width: 600px) {
  html.oz-assistant-launcher-visible:not(.oz-assistant-open) #cookie-consent:not([hidden]) {
    bottom: 72px !important;
  }
}



/* Kontakt bölümünde yüksek kontrastlı beyaz aksiyon düğmeleri. */
#kontakt .contact-actions.contact-actions-contrast {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

#kontakt .contact-actions .contact-white-action {
  background: #fff !important;
  color: #0b89a6 !important;
  border: 1px solid rgba(255,255,255,.95) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

#kontakt .contact-actions .contact-white-action:hover,
#kontakt .contact-actions .contact-white-action:focus-visible {
  background: #f7fbfc !important;
  color: #08758f !important;
}

@media (max-width: 600px) {
  #kontakt .contact-actions.contact-actions-contrast,
  #kontakt .contact-actions .contact-white-action {
    width: 100%;
  }

  #kontakt .contact-actions .contact-white-action {
    justify-content: center;
    text-align: center;
  }
}
