/* Cookie privacy banner — reference bar style */

.cookie-consent {
  --cookie-navy: #1a365d;
  --cookie-navy-deep: #12263f;
  --cookie-ink: #4a5568;
  --cookie-line: #d0d5dd;
  --cookie-line-strong: #1a1a1a;
  --cookie-bg: #f7f7f7;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1800;
  padding: 28px 48px calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--cookie-bg);
  border-top: 1px solid #e5e5e5;
  box-shadow: none;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.cookie-consent-copy {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 920px;
}

.cookie-consent-title {
  margin: 0 0 10px;
  font-family: "Playfair Display", "Noto Serif SC", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cookie-navy);
  line-height: 1.25;
}

.cookie-consent-text {
  margin: 0;
  font-family: "DM Sans", "Noto Sans SC", Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--cookie-ink);
}

.cookie-consent-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent-text a:hover {
  color: var(--cookie-navy);
}

.cookie-consent-right {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.cookie-consent-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.cookie-btn {
  appearance: none;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "DM Sans", "Noto Sans SC", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn-decline {
  background: #fff;
  border: 1px solid var(--cookie-line-strong);
  color: var(--cookie-navy);
}

.cookie-btn-decline:hover {
  background: #f0f0f0;
}

.cookie-btn-settings {
  background: #fff;
  border: 1px solid var(--cookie-line);
  color: var(--cookie-navy);
}

.cookie-btn-settings:hover,
.cookie-btn-settings[aria-expanded="true"] {
  border-color: var(--cookie-navy);
  background: #fff;
}

.cookie-btn-accept,
.cookie-btn-save {
  background: var(--cookie-navy);
  border: 1px solid var(--cookie-navy);
  color: #fff;
  min-width: 108px;
}

.cookie-btn-accept:hover,
.cookie-btn-save:hover {
  background: var(--cookie-navy-deep);
  border-color: var(--cookie-navy-deep);
  color: #fff;
}

.cookie-settings {
  width: min(360px, 100%);
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--cookie-line);
  border-radius: 6px;
}

.cookie-settings[hidden] {
  display: none !important;
}

.cookie-setting {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--cookie-ink);
  cursor: pointer;
}

.cookie-setting input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.cookie-setting strong {
  display: block;
  color: var(--cookie-navy);
  font-size: 13px;
}

.cookie-btn-save {
  width: 100%;
}

@media (max-width: 1024px) {
  .cookie-consent {
    padding: 22px 24px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent-inner {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .cookie-consent-inner,
  .cookie-consent-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .cookie-btn {
    flex: 1 1 100%;
  }

  .cookie-settings {
    width: 100%;
  }
}
