/* The panel stays compact even on a wide viewport. Its contents reflow within it. */
.visitor-consent.visitor-consent-split {
  --consent-edge: 16px;
  --consent-left: max(var(--consent-edge), env(safe-area-inset-left));
  --consent-right: max(var(--consent-edge), env(safe-area-inset-right));
  --consent-top: max(var(--consent-edge), env(safe-area-inset-top));
  --consent-bottom: max(var(--consent-edge), env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  box-sizing: border-box;
  inset: auto auto var(--consent-bottom) var(--consent-left) !important;
  width: min(420px, calc(100% - var(--consent-left) - var(--consent-right)));
  max-height: calc(100vh - var(--consent-top) - var(--consent-bottom)) !important;
  max-height: calc(100dvh - var(--consent-top) - var(--consent-bottom)) !important;
  overflow: auto;
  overflow-wrap: anywhere;
}
.visitor-consent .visitor-consent-copy a { white-space: normal; }
.visitor-consent-choices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.visitor-consent .visitor-consent-option {
  box-sizing: border-box; border: 1px solid #a8adb2; padding: 7px 10px; min-height: 44px;
  display: flex; gap: 10px; align-items: flex-start; min-width: 0;
  background: #fffdf9; border-radius: 4px; cursor: pointer; color: #25292c;
}
.visitor-consent-option > span { min-width: 0; }
.visitor-consent-option input { flex: none; height: 18px; width: 18px; margin: 3px 0 0; accent-color: #922229; }
.visitor-consent-option input:focus-visible { outline: 2px solid #25292c; outline-offset: 3px; }
.visitor-consent-option strong, .visitor-consent-option small { display: block; }
.visitor-consent-option strong { font-size: 14px; line-height: 1.35; }
.visitor-consent-option small { font-size: 12px; line-height: 1.4; color: #41474b; margin-top: 3px; }
.visitor-consent-split .visitor-consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.visitor-consent.visitor-consent-split .visitor-consent-actions button {
  min-width: 0; min-height: 44px; white-space: normal; padding: 7px 9px;
}
@media (max-width: 760px) {
  .visitor-consent.visitor-consent-split { --consent-edge: 10px; gap: 8px !important; }
}

/* Keep the one-click choices equally visible, with custom save below. */
.visitor-consent-split .visitor-consent-actions [data-split-save] { grid-column: 1 / -1; }
