/* YGT - consent.css: cerez bandi ve tercih paneli.
   Renkler tema degiskenlerinden (--ink --bg --panel --line --accent --muted); yedek degerler demo-1 paletidir.
   Uc dugme AYNI boyut, agirlik ve punto (hukuki gereklilik); italik yok. */
.ygt-consent { --c-ink: var(--ink, #202b50); --c-bg: var(--bg, #fff); --c-panel: var(--panel, #f0f5fc); --c-line: var(--line, #dce5f2); --c-accent: var(--accent, #286bd8); --c-muted: var(--muted, #5b647f); font-family: inherit; font-style: normal; color: var(--c-ink); }
.ygt-consent *, .ygt-consent *::before, .ygt-consent *::after { box-sizing: border-box; font-style: normal; }
.ygt-consent [hidden] { display: none !important; }

.ygt-consent__bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 980px; margin-inline: auto; padding: 20px 22px; background: var(--c-bg); border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent); border-radius: 4px; box-shadow: 0 14px 40px rgb(22 53 77 / 0.18); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; }
.ygt-consent__title { margin: 0 0 6px; font-size: var(--fs-md, 17px); font-weight: 700; line-height: 1.3; }
.ygt-consent__text { margin: 0; font-size: var(--fs-sm, 15px); line-height: 1.6; color: var(--c-muted); }
.ygt-consent__text a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

.ygt-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ygt-consent__btn { flex: 1 1 120px; min-width: 120px; min-height: var(--ctl-h, 48px); padding: 0 18px; border: 1.5px solid var(--c-accent); border-radius: 4px; background: var(--c-bg); color: var(--c-accent); font: inherit; font-size: var(--fs-sm, 15px); font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.ygt-consent__btn:hover { background: var(--c-panel); }
.ygt-consent__btn:focus-visible, .ygt-consent__switch input:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; }

.ygt-consent__panel { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgb(22 33 61 / 0.55); }
.ygt-consent__dialog { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; background: var(--c-bg); border-radius: 4px; border-top: 3px solid var(--c-accent); }
.ygt-consent__dialog h2 { margin: 0 0 14px; font-size: 22px; font-weight: 600; line-height: 1.25; }
.ygt-consent__group { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--c-line); }
.ygt-consent__group h3 { margin: 0; font-size: var(--fs-base, 16px); font-weight: 700; }
.ygt-consent__group p { grid-column: 1; margin: 0; font-size: var(--fs-sm, 15px); line-height: 1.55; color: var(--c-muted); }
.ygt-consent__state { grid-column: 2; grid-row: 1; font-size: var(--fs-sm, 15px); font-weight: 600; color: var(--c-muted); white-space: nowrap; }
.ygt-consent__switch { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm, 15px); font-weight: 600; cursor: pointer; }
.ygt-consent__switch input { width: 22px; height: 22px; margin: 0; accent-color: var(--c-accent); cursor: pointer; }
.ygt-consent__dialog .ygt-consent__actions { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--c-line); }

.ygt-consent__status { position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: min(520px, calc(100vw - 32px)); margin: 0; padding: 12px 16px; background: var(--c-ink); color: #fff; border-radius: 4px; font-size: var(--fs-sm, 15px); line-height: 1.5; }
.ygt-consent__status:empty { display: none; }

/* Footer baglantisi ("Cerez Tercihleri"): dugme gibi degil metin baglantisi gorunumu */
.ygt-consent-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ygt-consent-link:hover { color: var(--c-accent, var(--accent, #286bd8)); }
.ygt-consent-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

html.ygt-consent-open { overflow: hidden; }

/* Mobilde sabit Ara/WhatsApp cubugunun (demo: max-width 767px, 68 px) ustunde dursun */
@media (max-width: 767px) {
  .ygt-consent__bar { grid-template-columns: 1fr; left: 8px; right: 8px; bottom: calc(var(--callbar-h, 68px) + 8px); padding: 16px; }
  .ygt-consent__actions { flex-direction: column; }
  .ygt-consent__btn { flex: 0 0 auto; width: 100%; }
  .ygt-consent__status { bottom: calc(var(--callbar-h, 68px) + 8px); }
}
@media (prefers-reduced-motion: reduce) { .ygt-consent__btn { transition: none; } }
