.consent-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: auto 20px 20px auto;
  width: min(520px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  margin: 0;
  padding: 24px;
  overflow-y: auto;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #242424;
  box-shadow: 0 12px 32px #0004;
  font-family: "Montserrat", sans-serif;
}

.consent-dialog::backdrop { background: transparent; }
.consent-dialog *, .consent-dialog *::before, .consent-dialog *::after { box-sizing: border-box; }
.consent-dialog [hidden] { display: none; }
.consent-dialog .consent-title {
  margin: 0 28px 16px 0;
  text-align: left;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.4px;
}
.consent-close {
  position: absolute;
  top: 18px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #242424;
  cursor: pointer;
}
.consent-close svg { width: 18px; height: 18px; }
.consent-dialog .consent-description {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: normal;
}
.consent-actions { display: flex; gap: 8px; }
.consent-button {
  flex: 1;
  min-width: 0;
  padding: 12px 6px;
  border: 1px solid #ededed;
  border-radius: 8px;
  background: #f8f8f8;
  color: #242424;
  font: 600 12px/1.4 "Montserrat", sans-serif;
  cursor: pointer;
}
.consent-button-primary { border-color: #b6d9ff; background: #b6d9ff; }
.consent-button:hover { box-shadow: inset 0 0 0 2px #24242420; }
.consent-dialog :focus-visible { outline: 3px solid #426b96; outline-offset: 4px; }
.consent-dialog .consent-title:focus { outline: none; }
.consent-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin-top: 16px; }
.consent-links a { color: #345f8d; font-size: 11px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.consent-preferences { display: grid; gap: 8px; margin: 0 0 16px; }
.consent-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e5e5e5; border-radius: 8px; }
.consent-option strong { display: block; font-size: 13px; }
.consent-option small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; }
.consent-option input { flex-shrink: 0; width: 24px; height: 24px; accent-color: #b6d9ff; cursor: pointer; }
.consent-option span { flex-shrink: 0; font-size: 11px; font-weight: 600; }
@media (max-width: 480px) {
  .consent-dialog { inset: auto 12px 12px auto; width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
  .consent-dialog .consent-title { font-size: 17px; }
}
@media (max-width: 380px) {
  .consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent-actions [data-action="preferences"] { grid-column: 1 / -1; }
}
