.cookie-consent,
.cookie-modal {
  font-family:
    "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.cookie-consent[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent__card {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  border: 1px solid #cfe0f6;
  border-radius: 8px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(3, 26, 77, 0.22);
  pointer-events: auto;
}

.cookie-consent__eyebrow {
  margin: 0 0 6px;
  color: #045bd8;
  font-size: 0.78rem;
  font-weight: 600;
}

.cookie-consent h2,
.cookie-modal h2 {
  margin: 0;
  color: #031a4d;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
}

.cookie-consent p,
.cookie-modal p {
  margin: 8px 0 0;
  color: #62718d;
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.cookie-btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-btn--primary {
  background: #ffc400;
  color: #031a4d;
}

.cookie-btn--ghost {
  border-color: #cfe0f6;
  background: #ffffff;
  color: #031a4d;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}

.cookie-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 19, 56, 0.58);
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid #cfe0f6;
  border-radius: 8px;
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(3, 26, 77, 0.28);
}

.cookie-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #031a4d;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal__intro {
  max-width: 620px;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #dbe5f4;
  border-radius: 8px;
  padding: 16px;
  background: #fbfdff;
}

.cookie-option h3 {
  margin: 0;
  color: #031a4d;
  font-size: 1rem;
  font-weight: 600;
}

.cookie-option p {
  margin-top: 5px;
  font-size: 0.86rem;
}

.cookie-option__required {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid #cfe0f6;
  border-radius: 8px;
  padding: 0 10px;
  color: #045bd8;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.cookie-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #dbe5f4;
  transition: background-color 160ms ease;
}

.cookie-switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(3, 26, 77, 0.18);
  transition: transform 160ms ease;
  content: "";
}

.cookie-switch input:checked + span {
  background: #045bd8;
}

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

.cookie-modal__actions {
  margin-top: 20px;
}

@media (max-width: 720px) {
  .cookie-consent__card {
    grid-template-columns: 1fr;
  }

  .cookie-consent__actions,
  .cookie-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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