/* LuVi GEP - Cookie banner */
.cookie-banner,
.cookie-modal {
  font-family: var(--font-body, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  border-radius: 22px;
  padding: 18px;
  display: none;
  max-width: 980px;
  margin: 0 auto;
}

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

.cookie-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.cookie-banner h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.25;
  color: #ffffff;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-banner a,
.cookie-modal a {
  color: #20c997;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  transform: translateY(-1px);
}

.cookie-btn--primary {
  background: #20c997;
  color: #07111f;
}

.cookie-btn--secondary {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
}

.cookie-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.18);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3,7,18,0.72);
  backdrop-filter: blur(6px);
}

.cookie-modal.is-visible {
  display: flex;
}

.cookie-modal__box {
  width: min(680px, 100%);
  background: #ffffff;
  color: #0f172a;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.35);
}

.cookie-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cookie-modal h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.2;
  color: #0f172a;
}

.cookie-modal p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.cookie-close {
  appearance: none;
  border: 0;
  background: #f1f5f9;
  color: #0f172a;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 38px;
}

.cookie-option {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cookie-option strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.cookie-option span {
  display: block;
  color: #64748b;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-switch {
  position: relative;
  width: 54px;
  height: 30px;
  display: inline-block;
}

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

.cookie-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: .2s;
}

.cookie-switch__slider:before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: #20c997;
}

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

.cookie-switch input:disabled + .cookie-switch__slider {
  opacity: .65;
  cursor: not-allowed;
}

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

.cookie-modal .cookie-btn--secondary {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #e2e8f0;
}

.cookie-settings-link {
  cursor: pointer;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-banner__inner {
    grid-template-columns: 1fr;
  }

  .cookie-banner__actions,
  .cookie-modal__actions {
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal__box {
    padding: 18px;
    border-radius: 20px;
  }

  .cookie-option {
    grid-template-columns: 1fr;
  }
}
