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

.cookie-consent {
  position: fixed;
  z-index: 10000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  justify-content: center;
}

.cookie-consent__panel,
.cookie-modal__panel {
  border: 1px solid #334b71;
  background: #0c1629;
  box-shadow: 0 20px 56px rgba(2, 6, 23, 0.42);
  color: #f8fafc;
}

.cookie-consent__panel {
  display: flex;
  width: min(100%, 980px);
  align-items: center;
  gap: 28px;
  padding: 20px 24px;
  border-radius: 8px;
}

.cookie-consent__copy { flex: 1 1 520px; }
.cookie-consent__eyebrow { margin: 0 0 6px; color: #38bdf8; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.cookie-consent h2, .cookie-modal h2 { margin: 0; color: #f8fafc; font-family: Manrope, sans-serif; font-size: 20px; line-height: 1.3; }
.cookie-consent p:not(.cookie-consent__eyebrow), .cookie-option p { margin: 7px 0 0; color: #bfccdf; font-size: 14px; line-height: 1.5; }
.cookie-consent a { color: #7dd3fc; text-decoration: underline; }
.cookie-consent__actions, .cookie-modal__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-consent__actions { flex: 0 0 auto; justify-content: flex-end; }
.cookie-consent__button, .cookie-settings-button, .cookie-modal__close { min-height: 38px; border: 1px solid #415b83; border-radius: 6px; padding: 8px 13px; font: 700 13px/1 Manrope, sans-serif; cursor: pointer; }
.cookie-consent__button--primary { border-color: #38bdf8; background: #38bdf8; color: #082033; }
.cookie-consent__button--secondary, .cookie-settings-button, .cookie-modal__close { background: transparent; color: #e2e8f0; }
.cookie-consent__button:hover, .cookie-settings-button:hover, .cookie-modal__close:hover { border-color: #7dd3fc; }
.cookie-settings-button { position: fixed; z-index: 9999; right: 20px; bottom: 20px; background: #0c1629; box-shadow: 0 8px 22px rgba(2, 6, 23, 0.24); }
.cookie-modal { position: fixed; z-index: 10001; inset: 0; display: grid; place-items: center; padding: 20px; }
.cookie-modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.68); }
.cookie-modal__panel { position: relative; width: min(100%, 570px); padding: 24px; border-radius: 8px; }
.cookie-modal__header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.cookie-modal__close { width: 38px; padding: 0; font-size: 18px; }
.cookie-option { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid #283c5d; }
.cookie-option h3 { margin: 0; color: #f8fafc; font: 700 15px/1.3 Manrope, sans-serif; }
.cookie-option > span:last-child { color: #7dd3fc; font: 700 12px/1 Manrope, sans-serif; white-space: nowrap; }
.cookie-option input { width: 20px; height: 20px; accent-color: #38bdf8; cursor: pointer; }
.cookie-modal__actions { justify-content: flex-end; margin-top: 20px; }

html[data-theme="light"] .cookie-consent__panel,
html[data-theme="light"] .cookie-modal__panel,
html[data-theme="light"] .cookie-settings-button { border-color: #cbdcf1; background: #ffffff; color: #10203a; box-shadow: 0 20px 56px rgba(15, 23, 42, 0.18); }
html[data-theme="light"] .cookie-consent h2,
html[data-theme="light"] .cookie-modal h2,
html[data-theme="light"] .cookie-option h3 { color: #10203a; }
html[data-theme="light"] .cookie-consent p:not(.cookie-consent__eyebrow),
html[data-theme="light"] .cookie-option p { color: #4a6386; }
html[data-theme="light"] .cookie-option { border-color: #dbe7f5; }
html[data-theme="light"] .cookie-consent__button--secondary,
html[data-theme="light"] .cookie-settings-button,
html[data-theme="light"] .cookie-modal__close { color: #1e3a5f; border-color: #b9cbe4; }

@media (max-width: 720px) {
  .cookie-consent { right: 12px; bottom: 12px; left: 12px; }
  .cookie-consent__panel { display: block; padding: 18px; }
  .cookie-consent__actions { justify-content: stretch; margin-top: 16px; }
  .cookie-consent__button { flex: 1 1 130px; }
  .cookie-settings-button { right: 12px; bottom: 12px; }
  .cookie-modal__panel { padding: 20px; }
}
