/**
 * Teknora - Teknik Servis Yönetim ve Web Yazılımı
 * @package Teknora
 * @author İkramedya Web Tasarım Hizmetleri
 * @copyright İkramedya Web Tasarım Hizmetleri. Tüm hakları saklıdır.
 * @license Ticari / Lisans Sözleşmesine Tabidir
 */
.cookie-banner[hidden], .cookie-dialog [hidden], [data-cookie-map-placeholder][hidden], iframe[data-cookie-map-src][hidden] { display: none; }
.cookie-banner, .cookie-dialog { color: var(--fe-text, #1e293b); background: var(--fe-bg, #fff); border: 1px solid var(--fe-border, #e2e8f0); border-radius: var(--tk-corner-dialog, 16px); box-shadow: 0 8px 32px #102d4614; box-sizing: border-box; }
.cookie-banner { position: fixed; inset: auto auto 24px 24px; width: min(400px, calc(100% - 48px)); z-index: var(--tk-layer-header, 100); padding: 20px; max-height: calc(100dvh - 48px); overflow-y: auto; animation: cookie-enter 160ms ease-out; }
.cookie-banner-heading, .cookie-dialog-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.cookie-banner-heading h2, .cookie-dialog h2 { min-width: 0; overflow-wrap: anywhere; margin: 0; font-size: 1rem; line-height: 1.4; color: var(--fe-text, #1e293b); }
.cookie-banner-icon { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: var(--fe-bg-muted, #f1f5f9); color: var(--fe-text-muted, #64748b); border-radius: 50%; font-size: 1rem; }
.cookie-banner p, .cookie-dialog p { font-size: .8125rem; line-height: 1.65; margin: 0 0 16px; overflow-wrap: anywhere; }
.cookie-banner p { color: var(--fe-text-muted, #64748b); }
.cookie-banner a, .cookie-dialog a { color: var(--fe-primary, #0f3460); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cookie-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; min-width: 0; min-height: 44px; border: 1px solid var(--fe-border, #e2e8f0); border-radius: var(--tk-corner-small, 6px); background: var(--fe-bg, #fff); color: var(--fe-text, #1e293b); font: 600 .8125rem/1.4 var(--tk-font-body, inherit); text-align: center; overflow-wrap: anywhere; cursor: pointer; transition: background 160ms ease, border-color 160ms ease; }
.cookie-button:hover { background: var(--fe-bg-muted, #f1f5f9); border-color: var(--fe-border-dark, #cbd5e1); }
.cookie-button-primary { background: var(--fe-primary, #0f3460); color: var(--fe-primary-contrast, #fff); border-color: var(--fe-primary, #0f3460); }
.cookie-button-primary:hover { background: var(--fe-primary-dark, #0a2240); color: #fff; border-color: var(--fe-primary-dark, #0a2240); }
.cookie-button-subtle { border-color: transparent; color: var(--fe-text-muted, #64748b); }
.cookie-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; }
.cookie-dialog::backdrop { background: #102d4659; }
.cookie-dialog-heading { justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cookie-dialog-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: var(--fe-text-muted, #64748b); cursor: pointer; font-size: 1rem; }
.cookie-dialog-close:hover { background: var(--fe-bg-muted, #f1f5f9); }
.cookie-category { padding: 12px 0; border-bottom: 1px solid var(--fe-border, #e2e8f0); margin-bottom: 12px; }
.cookie-category label { display: flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 600; min-height: 44px; }
.cookie-category input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--fe-primary, #0f3460); }
.cookie-category p { margin: 4px 0 0; color: var(--fe-text-muted, #64748b); }
.cookie-dialog .cookie-storage-note { color: var(--fe-text-muted, #64748b); font-size: .75rem; }
.cookie-preferences-link { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.cookie-button:focus-visible, .cookie-dialog-close:focus-visible, .cookie-preferences-link:focus-visible { outline: 2px solid var(--fe-primary, #0f3460); outline-offset: 3px; }
.map-consent-placeholder { padding: 32px 24px; text-align: center; }
@keyframes cookie-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
  .cookie-banner { inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px; width: auto; padding: 16px; max-height: 55dvh; }
  body:has(.mobile-contact-bar) .cookie-banner { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .cookie-dialog { padding: 20px; }
  .cookie-button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } .cookie-button { transition: none; } }
