/* Cookie consent — Çağ Çelik tokens */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4500;
  background: var(--primary-color, #141F39);
  color: #fff;
  padding: 20px 24px;
  box-shadow: 0 -8px 24px rgba(20, 31, 57, 0.22);
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 280ms ease, opacity 280ms ease, visibility 280ms ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner__inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #fff;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--secondary-color, #0080C8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: #fff;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  gap: 12px;
}

.cookie-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cookie-btn--accept {
  background: var(--secondary-color, #0080C8);
  border-color: var(--secondary-color, #0080C8);
  color: #fff;
}

.cookie-btn--accept:hover {
  background: #0069a4;
  border-color: #0069a4;
  color: #fff;
}

.cookie-btn--reject,
.cookie-btn--prefs {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.cookie-btn--reject:hover,
.cookie-btn--prefs:hover {
  background: #fff;
  color: var(--primary-color, #141F39);
}

.cookie-btn--save {
  background: var(--primary-color, #141F39);
  border-color: var(--primary-color, #141F39);
  color: #fff;
}

.cookie-btn--save:hover {
  background: #0e1628;
  border-color: #0e1628;
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 6100;
  background: rgba(20, 31, 57, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms ease;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 6110;
  width: min(640px, calc(100vw - 32px));
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--primary-color, #141F39);
  border-radius: 0;
  box-shadow: 0 20px 40px rgba(20, 31, 57, 0.18);
  transform: translate(-50%, -56%);
  opacity: 0;
  visibility: hidden;
  transition: transform 300ms ease, opacity 300ms ease, visibility 300ms ease;
  font-family: var(--font-family, 'Inter', sans-serif);
}

.cookie-modal.is-open,
.cookie-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal.is-open {
  transform: translate(-50%, -50%);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--primary-color, #141F39);
  color: #fff;
}

.cookie-modal__title {
  margin: 0;
  font-family: var(--font-family, 'Inter', sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.cookie-modal__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.cookie-modal__body {
  padding: 8px 20px 16px;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal__intro {
  margin: 8px 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #3d4a63;
}

.cookie-category {
  border: 1px solid var(--light-grey, #E7EDF2);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
}

.cookie-category__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-category__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color, #141F39);
}

.cookie-category__desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5c6b82;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch__slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--grey, #B9CBDA);
  transition: background 200ms ease;
  border-radius: 26px;
}

.cookie-switch__slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  transition: transform 200ms ease;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: var(--secondary-color, #0080C8);
}

.cookie-switch input:checked + .cookie-switch__slider::before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-switch__slider {
  background: var(--primary-color, #141F39);
  cursor: not-allowed;
  opacity: 0.9;
}

.cookie-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--light-grey, #E7EDF2);
}

.cookie-modal__footer .cookie-btn {
  min-width: 148px;
}

.cookie-modal__footer .cookie-btn--reject,
.cookie-modal__footer .cookie-btn--prefs {
  border-color: var(--primary-color, #141F39);
  color: var(--primary-color, #141F39);
}

.cookie-modal__footer .cookie-btn--reject:hover,
.cookie-modal__footer .cookie-btn--prefs:hover {
  background: var(--primary-color, #141F39);
  color: #fff;
}

body.cookie-banner-open {
  padding-bottom: 120px;
}

@media (min-width: 1600px) {
  .cookie-banner__inner {
    max-width: 1520px;
  }
}

@media (min-width: 1700px) {
  .cookie-banner__inner {
    max-width: 1680px;
  }
}

@media (max-width: 991px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__actions .cookie-btn,
  .cookie-modal__footer .cookie-btn {
    width: 100%;
    min-width: 0;
  }

  .cookie-modal__footer {
    flex-direction: column;
  }

  body.cookie-banner-open {
    padding-bottom: 280px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-modal,
  .cookie-modal-overlay,
  .cookie-btn,
  .cookie-switch__slider,
  .cookie-switch__slider::before {
    transition: none;
  }
}
