#ef-consent { --dialog-width: 34rem; --dialog-gutter: 32px; border: 0; border-radius: 16px; }
#ef-consent > .dialog-heading { align-items: flex-start; padding-top: 28px; padding-bottom: 0; border-bottom: 0; }
#ef-consent > .dialog-heading h2 { padding-top: 4px; font: 800 30px/1.05 var(--font-display, system-ui); }
#ef-consent > .dialog-body { padding-top: 14px; padding-bottom: 24px; }
#ef-consent p { margin: 0 0 12px; color: var(--muted, #646668); font-size: 15px; line-height: 1.6; }
#ef-consent [hidden] { display: none; }
#ef-consent :focus-visible, .ef-consent-open:focus-visible { outline: var(--focus-width, 2px) solid var(--action, #5e7f16); outline-offset: var(--focus-offset, 3px); }
#ef-consent a, .ef-consent-back, #ef-consent .text-button { color: var(--action, #5e7f16); font-weight: 600; text-underline-offset: 3px; }
.ef-consent-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -10px 0 4px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.ef-consent-back::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.ef-consent-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line, #ebe6e0); cursor: pointer; }
.ef-consent-option:last-of-type { margin-bottom: 14px; border-bottom: 1px solid var(--line, #ebe6e0); }
.ef-consent-option strong { display: block; font-size: 16px; }
.ef-consent-option em { margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--tint, #eef4de); color: var(--fg, #2a2b2c); font-size: 12px; font-style: normal; font-weight: 600; }
.ef-consent-option small { display: block; margin-top: 4px; color: var(--muted, #646668); font-size: 14px; line-height: 1.5; }
#ef-consent .ef-consent-option input { position: relative; flex: none; width: 46px; height: 26px; margin: 0; border-radius: 999px; background: var(--field, #8d9093); appearance: none; cursor: pointer; transition: background .15s; }
#ef-consent .ef-consent-option input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
#ef-consent .ef-consent-option input:checked { background: var(--action, #5e7f16); }
#ef-consent .ef-consent-option input:checked::before { transform: translateX(20px); }
#ef-consent .ef-consent-option input:disabled { opacity: .55; cursor: default; }
.ef-consent-option:has(input:disabled) { cursor: default; }
#ef-consent .ef-consent-note { font-size: 13px; }
.ef-consent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.ef-consent-actions button { flex: 1 1 11rem; max-width: 15rem; min-height: 48px; padding: 10px 22px; border-radius: 999px; font: 600 15px/1.3 var(--font-body, system-ui); cursor: pointer; transition: background .15s; }
.ef-consent-actions .ef-consent-primary { border-radius: var(--radius-primary-button, 8px); border: 0; background: var(--primary-button, var(--brand, #97bb3a)); color: var(--on-primary-button, #fff); }
.ef-consent-actions .ef-consent-primary:hover { background: var(--primary-button-hover, var(--action, #5e7f16)); }
.ef-consent-secondary { border: 1.5px solid var(--fg, #2a2b2c); background: var(--bg, #fff); color: var(--fg, #2a2b2c); }
.ef-consent-secondary:hover { background: var(--bg-soft, #faf7f5); }
#ef-consent .ef-consent-minor { margin: 6px 0 0; text-align: center; }
#ef-consent .ef-consent-minor .text-button { min-height: 44px; font-size: 15px; }
#ef-consent-status { margin: 8px 0 0; text-align: center; }
#ef-consent-status:empty { margin: 0; }
.ef-consent-open { min-height: 44px; padding: .6rem .8rem; cursor: pointer; }
@media (max-width: 640px), (max-height: 400px) {
  #ef-consent { --dialog-gutter: var(--space-medium, 16px); }
  #ef-consent > .dialog-heading { padding-top: 20px; }
  #ef-consent > .dialog-heading h2 { font-size: 26px; }
  #ef-consent > .dialog-body { padding-block: 12px var(--space-medium, 16px); }
  #ef-consent p { margin-bottom: var(--space-small, 8px); line-height: 1.45; }
  .ef-consent-actions { gap: var(--space-small, 8px); margin-top: var(--space-medium, 16px); }
  .ef-consent-actions button {
    flex-basis: calc((100% - var(--space-small, 8px)) / 2);
    min-width: 0;
    padding-inline: var(--space-small, 8px);
    overflow-wrap: anywhere;
  }
}

@media (max-height: 360px) {
  #ef-consent { max-height: calc(100dvh - var(--space-medium, 16px)); }
  #ef-consent > .dialog-heading { padding-top: var(--space-medium, 16px); }
  #ef-consent > .dialog-body { padding-block: var(--space-small, 8px) 12px; }
  .ef-consent-actions { margin-top: 12px; }
}
