/* /assets/css/cookie-consent.css */

:root {
  --cc-bg: rgba(8, 16, 30, 0.94);
  --cc-panel: #10233d;
  --cc-border: rgba(255, 255, 255, 0.14);
  --cc-text: #eef4ff;
  --cc-soft: #b8c6dd;
  --cc-primary: #ffffff;
  --cc-primary-text: #0c2340;
  --cc-secondary: transparent;
  --cc-secondary-border: rgba(255, 255, 255, 0.22);
  --cc-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  --cc-radius: 18px;
  --cc-max-width: 1120px;
  --cc-z: 9999;
}

.cookie-consent {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: var(--cc-z);
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent__inner {
  width: min(100%, var(--cc-max-width));
  background: var(--cc-bg);
  color: var(--cc-text);
  border: 1px solid var(--cc-border);
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
  padding: 20px 20px 18px;
  pointer-events: auto;
  backdrop-filter: blur(12px);
}

.cookie-consent__top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-consent__content {
  min-width: 0;
}

.cookie-consent__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--cc-text);
}

.cookie-consent__desc {
  margin: 0;
  color: var(--cc-soft);
  font-size: 0.96rem;
  line-height: 1.65;
}

.cookie-consent__desc a,
.cookie-consent__footer a,
.cookie-consent__toggle-label a {
  color: var(--cc-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  min-width: 260px;
}

.cookie-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.cookie-consent__btn:active {
  transform: translateY(0);
}

.cookie-consent__btn--primary {
  background: var(--cc-primary);
  color: var(--cc-primary-text);
}

.cookie-consent__btn--secondary {
  background: var(--cc-secondary);
  color: var(--cc-text);
  border-color: var(--cc-secondary-border);
}

.cookie-consent__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cc-text);
  border-color: rgba(255, 255, 255, 0.12);
}

.cookie-consent__prefs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.cookie-consent__prefs.is-open {
  display: block;
}

.cookie-consent__pref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cookie-consent__toggle {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 14px;
}

.cookie-consent__toggle-copy {
  min-width: 0;
}

.cookie-consent__toggle-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--cc-text);
}

.cookie-consent__toggle-label {
  margin: 0;
  color: var(--cc-soft);
  line-height: 1.55;
  font-size: 0.93rem;
}

.cookie-consent__switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
}

.cookie-consent__switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cookie-consent__slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.cookie-consent__slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  top: 4px;
  left: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + .cookie-consent__slider {
  background: #7ec8ff;
}

.cookie-consent__switch input:checked + .cookie-consent__slider::before {
  transform: translateX(22px);
}

.cookie-consent__switch input:disabled + .cookie-consent__slider {
  opacity: 0.75;
  cursor: not-allowed;
}

.cookie-consent__footer {
  margin-top: 14px;
  color: var(--cc-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cookie-consent-manage {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: calc(var(--cc-z) - 1);
  display: none;
  appearance: none;
  border: 1px solid rgba(12, 35, 64, 0.12);
  background: #ffffff;
  color: #0c2340;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.cookie-consent-manage.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent-manage:hover {
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .cookie-consent__top {
    flex-direction: column;
  }

  .cookie-consent__actions {
    min-width: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .cookie-consent {
    inset: auto 10px 10px 10px;
  }

  .cookie-consent__inner {
    padding: 16px;
    border-radius: 16px;
  }

  .cookie-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cookie-consent__btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-consent__toggle {
    flex-direction: column;
  }

  .cookie-consent__switch {
    align-self: flex-start;
  }
}