/* ========================================
   COOKIE BANNER & MODAL — EKOPLAN theme
   ======================================== */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 16px;
  display: none;
  z-index: 99999;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 15, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 18px 24px;
}

.cookie-banner__text {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

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

/* Buttons */
.cookie-btn {
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.1);
}

.cookie-btn--primary {
  background: #2d6b5a;
  border-color: #2d6b5a;
  color: #fff;
}

.cookie-btn--primary:hover {
  background: #245a4b;
  border-color: #245a4b;
}

.cookie-btn--ghost {
  background: transparent;
}

.cookie-btn--ghost:hover {
  background: rgba(255,255,255,0.06);
}

.cookie-btn--secondary {
  background: rgba(255,255,255,0.04);
}

.cookie-btn--secondary:hover {
  background: rgba(255,255,255,0.08);
}

/* Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100000;
}

.cookie-modal.is-open {
  display: block;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cookie-modal__dialog {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 580px;
  max-height: 80vh;
  height: fit-content;
  padding: 32px;
  border-radius: 20px;
  background: rgba(10, 15, 24, 0.98);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-modal__title {
  font-family: var(--serif, 'Playfair Display', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.cookie-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}

.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.4);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.cookie-modal__close:hover {
  color: #fff;
}

/* Toggle rows */
.cookie-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
}

.cookie-toggle__title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.cookie-toggle__desc {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  line-height: 1.5;
}

/* Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255,255,255,0.15);
  transition: .25s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #2d6b5a;
}

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

.switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  .cookie-banner { padding: 12px; }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 14px 14px 0 0;
  }

  .cookie-banner__text {
    font-size: 13px;
    text-align: center;
  }

  .cookie-banner__actions {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 12px 16px;
  }

  .cookie-modal__dialog {
    width: 92%;
    max-width: 92%;
    padding: 24px 20px;
  }

  .cookie-toggle {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-modal__actions {
    flex-direction: column;
    gap: 8px;
  }
}
