:root {
  --bg: #0b0b0c;
  --card: #151518;
  --muted: #a0a3ad;
  --text: #eef0f4;
  --accent: #5b8cff;
  --ok: #22c55e;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 10px;
}

@media only screen and (max-width: 767px) {
  .cookie-strip .strip-actions {
    flex-wrap: wrap-reverse;
    justify-content: end;
  }

  .cookie-strip p {
    width: 90% !important;
  }

  .strip-actions .btnCerez {
    width: 130px !important;
  }
}

/* ——— Yönetim butonu (her zaman erişilebilir) ——— */
.cookie-manage {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid #2a2d35;
  border-radius: 999px;
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.cookie-manage:hover {
  outline: 2px solid #2a2d35;
}

/* ——— Arkaplan örtüsü ——— */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: flex-end;
  /* mobilde alttan çıksın */
  justify-content: center;
  z-index: 999999;
}

.cookie-backdrop.open {
  display: flex;
}

/* ——— Modal kartı ——— */
.cookie-modal {
  width: 100%;
  background: #fafafa;
  border: 1px solid #a2a6bb8c;
  border-radius: 10px 10px 0 0;
  box-shadow: 0px 0px 15px #a2a6bb26;
  padding: 18px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.cookie-backdrop.open .cookie-modal {
  transform: translateY(0);
  opacity: 1;
}

.cookie-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.cookie-desc {
  color: #141414;
  font-weight: 300;
  font-size: 14px;
  margin: 6px 0 0;
}

.cookie-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cookie-sections {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #a2a6bb5c;
  border-radius: 10px;
}

.cookie-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #a2a6bb5c;
  margin: 0 10px;
}

.cookie-row h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cookie-row p {
  margin: 0;
  color: #33333380;
  font-size: 13px;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #eeeeee;
  border-radius: 999px;
  transition: 0.2s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.2s;
}

input:checked + .slider {
  background: #0070cc;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

input:disabled + .slider {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Alt butonlar */
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 1140px;
  margin-left: auto;
}

.strip-actions .btnCerez {
  width: 142px;
}

.btnCerez {
  padding: 14px 18px;
  border-radius: 38px;
  border: none;
  background: #eeeeee;
  color: #111111;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all ease 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btnCerez i {
  margin-left: 4px;
  font-size: 12px;
}

.btnCerez:hover {
  opacity: 0.8;
  /* outline: 1px solid #2a2d35; */
}

.btn-accept {
  background: #0070cc;
  color: #ffffff;
}

.btn-reject {
  background: #db3c3e;
  color: #ffffff;
}

.policy-link {
  color: #0070cc;
  text-decoration: none;
}

.policy-link:hover {
  text-decoration: underline;
}

/* Küçük bilgi şeridi (yalnızca ilk girişte) */
.cookie-strip {
  position: fixed;
  inset: auto 0px 0px 0px;
  z-index: 999999;
  background: #fafafa;
  border: 1px solid #a2a6bb8c;
  border-radius: 10px 10px 0 0;
  box-shadow: 0px 0px 15px #a2a6bb26;
}

.cookie-strip-inner {
  padding: 25px 12px;
  display: none;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-strip-inner.show {
  display: flex;
}

.cookie-strip p {
  margin: 0;
  font-size: 14px;
  color: #141414;
  font-weight: 300;
  width: 60%;
}

.cookie-strip .strip-actions {
  display: flex;
  gap: 8px;
}

/* Erişilebilirlik için odak */
.focus-outline:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}
