.cookie-consent__banner[hidden],
.cookie-consent__modal[hidden] {
  display: none !important;
}

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

.cookie-consent__banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9998;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  padding: 18px 20px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.85s ease, transform 0.85s ease, visibility 0.35s ease;
}

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

.cookie-consent__banner-text {
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  max-width: 960px;
}

.cookie-consent__banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

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

  .cookie-consent__banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}

.cookie-consent__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
}

.cookie-consent__panel {
  position: relative;
  width: min(900px, calc(100% - 70px));
  max-height: calc(100vh - 30px);
  margin: 15px auto;
  background: #fff;
  border-radius: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.cookie-consent__panel-body::-webkit-scrollbar {
  display: none;
}

.cookie-consent__panel-head {
  display: block !important;
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.cookie-consent__panel-title {
  display: block;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1f2937;
}

.cookie-consent__panel-text {
  font-size: 12px;
  line-height: 1.6;
  color: #5f6c7b;
}

.cookie-consent__panel-text a.cookie-consent__policy-link {
  color: var(--color-purple) !important;
  text-decoration: underline !important;
}

.cookie-consent__close {
  border: 0;
  background: transparent;
  font-size: 34px;
  line-height: 1;
  color: #2f6b4f;
  cursor: pointer;
}

.cookie-consent__panel-body {
  background: #f5f7fa;
  padding: 20px;
}

.cookie-consent__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-consent__row-left h5,
.cookie-consent__row-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e2a3a;
  margin: 0;
}

.cookie-consent__row-content {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.6;
  color: #5f6c7b;
  padding-bottom: 10px;
  border-bottom: 1px solid #d7e3da;
}

.cookie-consent__row-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-purple);
  background: color-mix(in srgb, var(--color-purple) 12%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
}

.cookie-consent__accordion-item:last-child .cookie-consent__row-content {
  border-bottom: none;
}

.cookie-consent__panel-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid #d7e3da;
  background: #fff;
}

.cookie-consent__btn {
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cookie-consent__btn:focus {
  outline: none;
}

.cookie-consent__btn:focus-visible {
  outline: none;
}

/* PRIMARY (Tümünü kabul et) */
.cookie-consent__btn--primary {
  background: var(--color-purple);
  color: #fff !important;
  border: 1px solid var(--color-purple);
}

.cookie-consent__btn--primary:hover {
  background: color-mix(in srgb, var(--color-purple) 85%, black);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* SECONDARY (Tercihleri yönet) */
.cookie-consent__btn--secondary {
  background: transparent;
  color: var(--color-purple);
  border: 1px solid var(--color-purple);
}

.cookie-consent__btn--secondary:hover {
  background: color-mix(in srgb, var(--color-purple) 10%, transparent);
}

/* GHOST (Reddet) */
.cookie-consent__btn--ghost {
  background: transparent;
  color: #666;
  border: 1px solid transparent;
}

.cookie-consent__btn--ghost:hover {
  color: #111;
  background: #f5f5f5;
}

.cookie-consent__switch-wrap {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-top: 5px;
}

.cookie-consent__switch {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.cookie-consent__switch-slider {
  display: block;
  width: 42px;
  height: 22px;
  background: #e4e7ec;
  border-radius: 999px;
  position: relative;
}

.cookie-consent__switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cookie-consent__switch:checked+.cookie-consent__switch-slider {
  background: var(--color-purple) !important;
}

.cookie-consent__switch:checked+.cookie-consent__switch-slider::before {
  transform: translateX(20px);
}

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