/* The site's own cookie banner, preferences window and the small button to reopen them. */

.as-cerez, .as-cerez-panel, .as-cerez-ac, .as-harita-not { font-family: var(--as-font); color: var(--as-lacivert); box-sizing: border-box; }
.as-cerez *, .as-cerez-panel * { box-sizing: border-box; }

.as-cerez { position: fixed; z-index: 3000; left: 24px; bottom: 24px; width: min(440px, calc(100vw - 32px)); padding: 24px;
  background: #fff; border-radius: 18px; border: 1px solid #e3e7ec; box-shadow: 0 24px 60px rgba(5, 28, 44, .22); }
.as-cerez[hidden] { display: none; }
.as-cerez h2, .as-cerez-panel h2 { margin: 0 0 8px; font-family: var(--as-font); font-size: 18px; font-weight: 800; line-height: 1.3; color: var(--as-lacivert); }
.as-cerez p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #3d4a56; }
.as-cerez a, .as-cerez-panel a { color: var(--as-lacivert); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.as-cerez a:hover, .as-cerez-panel a:hover { color: var(--as-kirmizi); }

.as-cerez-butonlar { display: flex; flex-wrap: wrap; gap: 10px; }
.as-cerez .as-cerez-butonlar .ana { flex: 1 1 150px; }
.as-cerez-btn { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; font-family: var(--as-font); font-size: 14px; font-weight: 700; text-align: center; transition: background-color .2s, color .2s, border-color .2s; }
/* Accept and reject look the same: neither choice is pushed */
.as-cerez-btn.ana { background: var(--as-lacivert); color: #fff; }
.as-cerez-btn.ana:hover { background: #0e3550; }
.as-cerez-btn.cerceve { border: 1.5px solid var(--as-lacivert); color: var(--as-lacivert); }
.as-cerez-btn.cerceve:hover { background: var(--as-lacivert); color: #fff; }
.as-cerez-btn.yazi { color: var(--as-lacivert); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.as-cerez-btn.yazi:hover { color: var(--as-kirmizi); }
.as-cerez-btn:focus-visible, .as-cerez-x:focus-visible, .as-cerez-ac:focus-visible, .as-anahtar input:focus-visible + span { outline: 2px solid var(--as-kirmizi); outline-offset: 3px; }

.as-cerez-panel { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 30px 80px rgba(5, 28, 44, .3); }
.as-cerez-panel::backdrop { background: rgba(5, 28, 44, .5); }
.as-cerez-panel form { padding: 26px; margin: 0; }
.as-cerez-panel-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.as-cerez-panel-ust h2 { margin: 0; font-size: 20px; }
.as-cerez-x { all: unset; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--as-lacivert); }
.as-cerez-x:hover { background: var(--as-gri); }
.as-cerez-x svg { width: 16px; height: 16px; fill: currentColor; }
.as-cerez-grup { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #e8ecf0; }
.as-cerez-grup h3 { margin: 0 0 4px; font-family: var(--as-font); font-size: 15px; font-weight: 800; color: var(--as-lacivert); }
.as-cerez-grup p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4d5965; }
.as-cerez-hep { flex: none; font-size: 13px; font-weight: 700; color: var(--as-gri-yazi); white-space: nowrap; }
.as-cerez-panel .as-cerez-butonlar { margin-top: 22px; }
.as-cerez-panel .as-cerez-butonlar .as-cerez-btn { flex: 1 1 140px; }
.as-cerez-alt { margin: 16px 0 0; font-size: 13px; }

/* On/off switch */
.as-anahtar { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.as-anahtar input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.as-anahtar span { position: absolute; inset: 0; border-radius: 999px; background: #c5cdd6; transition: background-color .2s; pointer-events: none; }
.as-anahtar span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.as-anahtar input:checked + span { background: var(--as-kirmizi); }
.as-anahtar input:checked + span::after { transform: translateX(20px); }

/* Small round button bottom left to reopen the settings */
.as-cerez-ac { all: unset; position: fixed; z-index: 2500; left: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: var(--as-lacivert); color: #fff; box-shadow: 0 8px 20px rgba(5, 28, 44, .3); transition: transform .2s; }
.as-cerez-ac[hidden] { display: none; }
.as-cerez-ac:hover { transform: scale(1.06); }
.as-cerez-ac svg { width: 22px; height: 22px; fill: currentColor; }

/* Embedded map before consent */
.as-harita-yer { position: relative; height: 100%; min-height: 320px; }
.as-harita-yer iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.as-harita-not { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--as-gri); border-radius: inherit; }
.as-harita-not p { margin: 0; max-width: 340px; font-size: 14px; line-height: 1.55; }
.as-harita-yer.izinli .as-harita-not { display: none; }

@media (max-width: 600px) {
  .as-cerez { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 20px; }
  .as-cerez-butonlar .as-cerez-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .as-cerez:not([hidden]) { animation: as-cerez-gir .35s cubic-bezier(.16, 1, .3, 1); }
  @keyframes as-cerez-gir { from { opacity: 0; transform: translateY(16px); } }
}
.as-harita-not .as-btn, .as-cerez-btn { text-transform: none !important; }
@media (max-width: 600px) { .as-cerez-ac { width: 40px; height: 40px; left: 12px; bottom: 14px; } .as-cerez-ac svg { width: 19px; height: 19px; } }

/* Phone: the cookie settings button stays clear of the open menu and of the footer text */
body.as-kilit .as-cerez-ac { display: none; }
@media (max-width: 767px) { #site-footer { padding-bottom: 72px; } }

/* Desktop: a slim bar along the bottom instead of a large box over the first screen */
@media (min-width: 1025px) {
  .as-cerez { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 0; border: 0; border-top: 1px solid #e3e7ec;
    padding: 14px max(24px, calc((100vw - 1280px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center;
    box-shadow: 0 -10px 30px rgba(5, 28, 44, .12); }
  .as-cerez h2 { grid-column: 1; margin: 0 0 2px; font-size: 15px; }
  .as-cerez p { grid-column: 1; margin: 0; font-size: 13.5px; line-height: 1.5; }
  .as-cerez-butonlar { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
  .as-cerez .as-cerez-butonlar .ana { flex: none; }
}
/* Small phones turned sideways: the banner scrolls inside itself instead of running off the top */
.as-cerez { max-height: calc(100dvh - 90px); overflow-y: auto; }
.as-cerez-panel { max-height: calc(100dvh - 48px); }
