:root {
  --evc-primary: #07838b;
  --evc-primary-dark: #056a72;
  --evc-accent: #edf8f8;
  --evc-text: #17252a;
  --evc-muted: #5c6b70;
  --evc-border: #d8e3e5;
  --evc-bg: #ffffff;
  --evc-danger: #8b2f2f;
  --evc-shadow: 0 18px 48px rgba(14, 54, 61, .18);
}

.evc-lock { overflow: hidden !important; }

.evc-banner,
.evc-modal,
.evc-settings-trigger {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
}

.evc-banner *,
.evc-modal *,
.evc-settings-trigger * { box-sizing: border-box; }

.evc-banner {
  position: fixed;
  z-index: 2147483000;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  color: var(--evc-text);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--evc-border);
  border-radius: 18px;
  box-shadow: var(--evc-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.evc-banner[hidden],
.evc-modal[hidden],
.evc-backdrop[hidden],
.evc-settings-trigger[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Karartma katmanı yalnızca tercih penceresi gerçekten açıkken etkindir. */
.evc-backdrop:not(.evc-backdrop--open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.evc-banner__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.evc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--evc-primary);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.evc-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--evc-primary);
  box-shadow: 0 0 0 5px var(--evc-accent);
}

.evc-title {
  margin: 0 0 7px;
  color: var(--evc-text);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
  font-weight: 800;
}

.evc-copy {
  max-width: 760px;
  margin: 0;
  color: var(--evc-muted);
  font-size: 14px;
  line-height: 1.65;
}

.evc-copy a,
.evc-modal a {
  color: var(--evc-primary);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.evc-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(165px, 1fr));
  gap: 9px;
  min-width: 365px;
}

.evc-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 10px 14px !important;
  color: var(--evc-text) !important;
  background: #fff;
  border: 1px solid var(--evc-border) !important;
  border-radius: 8px !important;
  box-shadow: none;
  font: inherit !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  letter-spacing: .005em;
  text-align: center;
  text-transform: none !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.evc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 17px rgba(15, 77, 84, .11);
}
.evc-btn:active { transform: translateY(0); box-shadow: none; }
.evc-btn:focus-visible,
.evc-switch input:focus-visible + .evc-switch__track,
.evc-close:focus-visible,
.evc-settings-trigger:focus-visible {
  outline: 3px solid rgba(7, 131, 139, .25);
  outline-offset: 2px;
}

.evc-btn--accept {
  color: #fff !important;
  background: linear-gradient(180deg, #0a8c94, var(--evc-primary)) !important;
  border-color: var(--evc-primary) !important;
  box-shadow: 0 7px 17px rgba(7, 131, 139, .20);
}
.evc-btn--accept:hover {
  background: linear-gradient(180deg, #087b83, var(--evc-primary-dark)) !important;
  border-color: var(--evc-primary-dark) !important;
}

.evc-btn--reject {
  color: #28545a !important;
  background: #fff !important;
  border-color: #b8ced1 !important;
}
.evc-btn--reject:hover {
  color: var(--evc-primary-dark) !important;
  background: var(--evc-accent) !important;
  border-color: #8fb8bc !important;
}

.evc-btn--manage {
  color: #344f54 !important;
  background: #f4f7f8 !important;
  border-color: #d2dee0 !important;
}
.evc-btn--manage:hover {
  color: var(--evc-primary-dark) !important;
  background: #eaf4f5 !important;
  border-color: #b8d0d3 !important;
}

/* Banner içindeki üçüncü işlem iri bir blok yerine sade bir metin düğmesidir. */
.evc-actions .evc-btn--manage {
  grid-column: 1 / -1;
  min-height: 30px;
  padding: 3px 8px !important;
  color: var(--evc-primary-dark) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.evc-actions .evc-btn--manage:hover {
  transform: none;
  background: var(--evc-accent) !important;
}

.evc-backdrop {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(7, 24, 29, .62);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.evc-backdrop.evc-backdrop--open {
  display: grid !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.evc-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  color: var(--evc-text);
  background: var(--evc-bg);
  border-radius: 20px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

.evc-modal__header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 24px 17px;
  background: #fff;
  border-bottom: 1px solid var(--evc-border);
}

.evc-modal__header h2 {
  margin: 0 0 5px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
}

.evc-modal__header p {
  margin: 0;
  color: var(--evc-muted);
  font-size: 13px;
  line-height: 1.5;
}

.evc-close {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  padding: 0 !important;
  color: #39565b !important;
  background: #f4f7f8 !important;
  border: 1px solid var(--evc-border) !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 22px !important;
  line-height: 1 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.evc-close:hover {
  color: var(--evc-primary-dark) !important;
  background: var(--evc-accent) !important;
  border-color: #b8d0d3 !important;
  transform: rotate(3deg);
}

.evc-modal__body {
  max-height: calc(100vh - 220px);
  padding: 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.evc-notice {
  margin: 0 0 16px;
  padding: 14px 15px;
  color: #30454b;
  background: #f5fafb;
  border: 1px solid #d7eaed;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
}

.evc-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid var(--evc-border);
}

.evc-category:last-child { border-bottom: 0; }
.evc-category h3 {
  margin: 0 0 5px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}
.evc-category p {
  margin: 0;
  color: var(--evc-muted);
  font-size: 13px;
  line-height: 1.55;
}
.evc-category__status {
  display: inline-block;
  margin-left: 7px;
  color: var(--evc-primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.evc-switch { position: relative; display: inline-flex; align-items: center; }
.evc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.evc-switch__track {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  background: #cbd5d8;
  border-radius: 99px;
  cursor: pointer;
  transition: background .18s ease;
}
.evc-switch__track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .20);
  transition: transform .18s ease;
}
.evc-switch input:checked + .evc-switch__track { background: var(--evc-primary); }
.evc-switch input:checked + .evc-switch__track::after { transform: translateX(22px); }
.evc-switch input:disabled + .evc-switch__track { opacity: .72; cursor: not-allowed; }

.evc-modal__footer {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 16px 24px 20px;
  background: #fff;
  border-top: 1px solid var(--evc-border);
}
.evc-modal__footer .evc-btn--manage { grid-column: auto; }

.evc-settings-trigger {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: fixed;
  z-index: 2147482999;
  right: 14px;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: linear-gradient(145deg, #0a8c94, #06747c) !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  border-radius: 11px !important;
  box-shadow: 0 8px 22px rgba(7, 92, 99, .24);
  font: inherit !important;
  line-height: 1 !important;
  text-transform: none !important;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.evc-settings-trigger:hover {
  transform: translateY(-2px);
  background: linear-gradient(145deg, #087e86, #055f67) !important;
  box-shadow: 0 11px 25px rgba(7, 92, 99, .30);
}
.evc-settings-trigger:active { transform: translateY(0); }
.evc-settings-trigger svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}
.evc-settings-trigger span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.evc-settings-trigger::after {
  content: "Çerez Ayarları";
  position: absolute;
  right: 52px;
  top: 50%;
  padding: 7px 10px;
  color: #fff;
  background: #173f45;
  border-radius: 7px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}
.evc-settings-trigger:hover::after,
.evc-settings-trigger:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

/* Policy page */
.evc-policy {
  max-width: 1050px;
  margin: 0 auto 45px;
  color: #26373c;
}
.evc-policy__hero {
  margin-bottom: 24px;
  padding: clamp(24px, 5vw, 48px);
  color: #fff;
  background: linear-gradient(135deg, #0b4e59, #128093);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(15, 102, 116, .18);
}
.evc-policy__hero h1 { margin: 0 0 10px; color: #fff; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }
.evc-policy__hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.90); font-size: 15px; line-height: 1.7; }
.evc-policy__date { display: inline-block; margin-top: 16px; padding: 7px 10px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.25); border-radius: 9px; font-size: 12px; }
.evc-policy__card { margin-bottom: 18px; padding: clamp(20px, 4vw, 32px); background: #fff; border: 1px solid var(--evc-border); border-radius: 17px; box-shadow: 0 8px 26px rgba(19, 46, 53, .06); }
.evc-policy__card h2 { margin: 0 0 12px; color: #173c45; font-size: 23px; }
.evc-policy__card h3 { margin: 22px 0 8px; color: #234c55; font-size: 18px; }
.evc-policy__card p, .evc-policy__card li { font-size: 14px; line-height: 1.75; }
.evc-policy__card ul { padding-left: 21px; }
.evc-policy__table-wrap { overflow-x: auto; margin-top: 15px; border: 1px solid var(--evc-border); border-radius: 12px; }
.evc-policy table { width: 100%; min-width: 720px; border-collapse: collapse; }
.evc-policy th, .evc-policy td { padding: 12px 13px; border-bottom: 1px solid var(--evc-border); vertical-align: top; text-align: left; font-size: 13px; line-height: 1.55; }
.evc-policy th { color: #173c45; background: #f2f8f9; font-weight: 800; }
.evc-policy tr:last-child td { border-bottom: 0; }
.evc-policy__callout { padding: 15px 17px; background: #eff9fa; border-left: 4px solid var(--evc-primary); border-radius: 10px; }
.evc-policy__action { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; margin-top: 10px; padding: 10px 15px !important; color: #fff !important; background: linear-gradient(180deg, #0a8c94, var(--evc-primary)) !important; border: 1px solid var(--evc-primary) !important; border-radius: 8px !important; box-shadow: 0 7px 17px rgba(7, 131, 139, .18); font: inherit !important; font-size: 13px !important; font-weight: 700 !important; text-decoration: none !important; text-transform: none !important; cursor: pointer; }
.evc-policy__action:hover { background: linear-gradient(180deg, #087b83, var(--evc-primary-dark)) !important; }

@media (max-width: 900px) {
  .evc-banner__grid { grid-template-columns: 1fr; }
  .evc-actions { width: 100%; min-width: 0; }
}

@media (max-width: 560px) {
  .evc-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; border-radius: 15px; }
  .evc-actions { grid-template-columns: 1fr; }
  .evc-actions .evc-btn--manage { grid-column: auto; min-height: 36px; }
  .evc-backdrop { padding: 8px; align-items: end; }
  .evc-modal { max-height: calc(100vh - 16px); border-radius: 18px 18px 0 0; }
  .evc-modal__header { padding: 18px 17px 14px; }
  .evc-modal__body { max-height: calc(100vh - 235px); padding: 15px 17px; }
  .evc-category { gap: 12px; }
  .evc-modal__footer { grid-template-columns: 1fr; padding: 13px 17px 17px; }
  .evc-settings-trigger { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); width: 42px; height: 42px; }
  .evc-settings-trigger::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .evc-btn, .evc-switch__track, .evc-switch__track::after { transition: none; }
}
