.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 500;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.cookie-consent__panel {
  width: min(100%, 760px);
  padding: clamp(18px, 3vw, 26px);
  color: #0f172a;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 39, 105, 0.14);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 18, 48, 0.22);
  pointer-events: auto;
}

.cookie-consent__content {
  display: grid;
  gap: 14px;
}

.cookie-consent__eyebrow {
  margin: 0;
  color: #0ea5e9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cookie-consent__title {
  margin: 0;
  color: #002769;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.08;
}

.cookie-consent__text {
  margin: 0;
  max-width: 650px;
  color: #52627a;
  font-size: 0.98rem;
  line-height: 1.58;
}

.cookie-consent__options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.cookie-consent__option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid rgba(0, 39, 105, 0.1);
  border-radius: 14px;
  cursor: pointer;
}

.cookie-consent__option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #0ea5e9;
}

.cookie-consent__option input:disabled {
  cursor: not-allowed;
}

.cookie-consent__option strong,
.cookie-consent__option span {
  display: block;
}

.cookie-consent__option strong {
  color: #002769;
  font-size: 0.95rem;
  line-height: 1.2;
}

.cookie-consent__option span {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.cookie-consent__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #002769;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  background: #ffffff;
  border: 1px solid rgba(0, 39, 105, 0.18);
  border-radius: 12px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.cookie-consent__button:hover,
.cookie-consent__button:focus-visible {
  border-color: rgba(14, 165, 233, 0.6);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.14);
  transform: translateY(-1px);
}

.cookie-consent__button--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #008ad4);
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.28);
}

.cookie-consent__button--ghost {
  color: #52627a;
}

.footer-cookie-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-cookie-settings:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .cookie-consent {
    inset: auto 10px 10px;
  }

  .cookie-consent__panel {
    border-radius: 18px;
  }

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

  .cookie-consent__actions,
  .cookie-consent__button {
    width: 100%;
  }

  .cookie-consent__button[data-cookie-accept-all] {
    order: 1;
  }

  .cookie-consent__button[data-cookie-save] {
    order: 2;
  }

  .cookie-consent__button[data-cookie-reject] {
    order: 3;
  }
}
