﻿@keyframes ikCookieSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ik-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  font-family: "Poppins", sans-serif;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid #E2E8F0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 32px rgba(14, 27, 42, 0.09), 0 -1px 0 rgba(14, 27, 42, 0.06);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.ik-cookie-banner--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ik-cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 60px 16px 28px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

@media (max-width: 960px) {
  .ik-cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 16px;
    gap: 14px;
  }
}

.ik-cookie-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

@media (max-width: 960px) {
  .ik-cookie-banner__content {
    padding-right: 36px;
  }
}

.ik-cookie-banner__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #2E6DF8;
  margin-top: 2px;
}

.ik-cookie-banner__text {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #0E1B2A;
  margin: 0;
}

.ik-cookie-banner__policy-link {
  color: #2E6DF8;
  font-weight: 400; /* CEO 04.10: metin içi bağlantı, kalın değil */
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.ik-cookie-banner__policy-link:hover {
  color: #0056B3;
}

.ik-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .ik-cookie-banner__actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

.ik-cookie-banner__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #59708C;
  transition: background 0.18s ease, color 0.18s ease;
  padding: 0;
}

.ik-cookie-banner__close:hover {
  background: #F5F7FA;
  color: #0E1B2A;
}

@media (max-width: 960px) {
  .ik-cookie-banner__close {
    top: 12px;
    right: 12px;
  }
}

.ik-cookie-btn {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  /* B13: üç düğme de AYNI kutuda olmalı — çerçeve yalnız ghost/outline
     üzerinde olsaydı reddetme düğmesi kabulden 3px büyük olurdu. */
  border: 1.5px solid transparent;
  border-radius: 40px;
  cursor: pointer;
  white-space: nowrap;
  padding: 10px 20px;
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.ik-cookie-btn:active {
  transform: translateY(0) !important;
}

.ik-cookie-btn--primary {
  background: #2E6DF8;
  color: #FFFFFF;
}

.ik-cookie-btn--primary:hover {
  background: #0056B3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 109, 248, 0.28);
}

.ik-cookie-btn--outline {
  background: transparent;
  color: #2E6DF8;
  border: 1.5px solid rgba(46, 109, 248, 0.35);
}

.ik-cookie-btn--outline:hover {
  background: rgba(46, 109, 248, 0.06);
  border-color: #2E6DF8;
  transform: translateY(-1px);
}

.ik-cookie-btn--ghost {
  background: #F5F7FA;
  color: #0056B3;
  border-color: #0056B3;
}

.ik-cookie-btn--ghost:hover {
  background: #E2E8F0;
  color: #0056B3;
  border-color: #0056B3;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .ik-cookie-btn {
    flex: 1;
    padding: 11px 12px;
    text-align: center;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .ik-cookie-btn {
    font-size: 12px;
  }
}

.ik-cookie-preferences {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  border-top: 1px solid #E2E8F0;
}

.ik-cookie-preferences--open {
  max-height: 500px;
  opacity: 1;
}

.ik-cookie-preferences__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 960px) {
  .ik-cookie-preferences__inner {
    padding: 16px 20px 18px;
  }
}

.ik-cookie-category {
  padding: 12px 0;
}

.ik-cookie-category+.ik-cookie-category {
  border-top: 1px solid #E2E8F0;
}

.ik-cookie-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ik-cookie-category__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ik-cookie-category__name {
  font-size: 14px;
  font-weight: 600;
  color: #0E1B2A;
}

.ik-cookie-category__desc {
  font-size: 12px;
  font-weight: 400;
  color: #5A6B82;
  line-height: 1.5;
}

.ik-toggle {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.ik-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.ik-toggle__track {
  display: block;
  width: 44px;
  height: 24px;
  background: #59708C;
  border-radius: 12px;
  position: relative;
  transition: background 0.22s ease;
}

.ik-toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(14, 27, 42, 0.22);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ik-toggle__input:checked+.ik-toggle__track {
  background: #2E6DF8;
}

.ik-toggle__input:checked+.ik-toggle__track::after {
  transform: translateX(20px);
}

.ik-toggle__input:focus-visible+.ik-toggle__track {
  outline: 2px solid #2E6DF8;
  outline-offset: 2px;
}

.ik-toggle--disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.ik-toggle--disabled .ik-toggle__track {
  background: #2E6DF8;
}

.ik-toggle--disabled .ik-toggle__track::after {
  transform: translateX(20px);
}

.ik-cookie-preferences__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.ik-cookie-preferences__footer .ik-cookie-btn--primary {
  padding: 12px 28px;
}

@media (max-width: 480px) {
  .ik-cookie-preferences__footer .ik-cookie-btn--primary {
    width: 100%;
  }
}

/* ── CEO KARARI 04.10.2026 — "Reddet" metin içi bağlantı + mobil yerleşim ──
   1) Ret bağlantısı: buton değil ama TEK TIK; dokunma hedefi 44px'e çıkarılır
      (funnel .ik-cerez-red ile aynı teknik — negatif margin satırı itmez).
   2) Bant ekrana sığar: tercih paneli açıkken üstü site başlığının altında
      kalıyordu (390px'te 696px). Yükseklik sınırlanır, içerik bandın içinde kayar. */
.ik-cookie-banner__reject-link {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  border: 0;
  background: none;
  font: inherit;
  color: #2E6DF8;
  font-weight: 400; /* CEO 04.10: kalın değil */
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ik-cookie-banner__reject-link:hover { color: #0056B3; }
.ik-cookie-banner__reject-link:focus-visible { outline: 2px solid #2E6DF8; outline-offset: 2px; border-radius: 4px; }

@media (max-width: 960px) {
  .ik-cookie-banner {
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* ── CEO 04.10.2026 — funnel bandıyla aynı düzen (hangikredi tarzı, kendi renklerimiz) ──
   Başlık + düzyazı + [Özelleştir][Tümünü Kabul Et]. İkon yok. */
.ik-cookie-banner__title {
  margin: 0 0 6px;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 600;
  color: #003F75; /* CEO 04.10: lacivert, siyah görünmesin */
}
.ik-cookie-banner__text { color: #003F75; }
.ik-cookie-banner__policy-link { white-space: normal; }
@media (max-width: 960px) {
  .ik-cookie-banner__content { padding-right: 28px; }
  .ik-cookie-banner__actions { flex-wrap: nowrap; gap: 12px; }
  .ik-cookie-btn { font-size: 14px; padding: 12px; min-height: 44px; }
}
