:root.cookie-consent-open,
body.cookie-consent-open { overflow: hidden; }
.cookie-consent-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 28, 40, .58);
  font-family: Arial, Helvetica, sans-serif;
}
.cookie-consent-dialog {
  box-sizing: border-box;
  width: min(700px, 100%);
  max-height: min(90vh, 760px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  color: #142e41;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}
.cookie-consent-content { padding: clamp(22px, 4vw, 38px); }
.cookie-consent-eyebrow {
  margin: 0 0 10px;
  color: #d8442c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.cookie-consent-dialog h2 {
  margin: 0 0 12px;
  color: #142e41;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
}
.cookie-consent-dialog p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
}
.cookie-consent-note {
  border-left: 3px solid #d8442c;
  padding-left: 12px;
  color: #3e5360;
}
.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.cookie-consent-actions button {
  min-height: 48px;
  border: 1px solid #173f58;
  border-radius: 8px;
  padding: 10px 12px;
  background: #173f58;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.cookie-consent-actions button:hover { background: #142e41; }
.cookie-consent-actions button:focus-visible,
.cookie-consent-back:focus-visible,
.cookie-consent-trigger:focus-visible,
.cookie-consent-dialog input:focus-visible,
.cookie-consent-details summary:focus-visible {
  outline: 3px solid #d8442c;
  outline-offset: 3px;
}
.cookie-consent-details {
  margin-top: 16px;
  border-top: 1px solid #d6dadd;
  padding-top: 12px;
  color: #3e5360;
  font-size: 13px;
}
.cookie-consent-details summary {
  color: #173f58;
  font-weight: 700;
  cursor: pointer;
}
.cookie-consent-details p {
  margin: 10px 0 0;
  font-size: 13px;
}
.cookie-consent-categories {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}
.cookie-consent-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #c9d0d4;
  border-radius: 9px;
  padding: 13px;
}
.cookie-consent-category label {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}
.cookie-consent-category input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #173f58;
}
.cookie-consent-category span { display: block; }
.cookie-consent-category strong { display: block; color: #142e41; }
.cookie-consent-category small {
  display: block;
  margin-top: 3px;
  color: #536671;
  font-size: 12px;
  line-height: 1.45;
}
.cookie-consent-always {
  color: #536671;
  font-size: 11px;
  white-space: nowrap;
}
.cookie-consent-back,
.cookie-consent-trigger {
  border: 0;
  background: transparent;
  color: #173f58;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cookie-consent-back { margin-top: 12px; padding: 8px 0; }
.cookie-consent-trigger {
  display: block;
  margin: 14px 0 0;
  padding: 5px 0;
  font-size: 12px;
}
@media (max-width: 620px) {
  .cookie-consent-layer { padding: 12px; }
  .cookie-consent-dialog { max-height: 94vh; border-radius: 12px; }
  .cookie-consent-content { padding: 21px 18px; }
  .cookie-consent-actions { grid-template-columns: 1fr; gap: 8px; }
  .cookie-consent-actions button { width: 100%; }
  .cookie-consent-category { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-consent-layer, .cookie-consent-dialog, .cookie-consent-actions button { scroll-behavior: auto; transition: none; }
}
