.autopay-panel{min-width:0;overflow-wrap:anywhere}
#account>.autopay-panel{margin-top:clamp(1.6rem,5vw,3.5rem);max-width:48rem}
.autopay-panel h2{margin-bottom:1rem}
.autopay-picker{display:grid;gap:.35rem;margin:0 0 1rem;font-size:.88rem;color:var(--muted)}
.autopay-picker select{width:100%;min-width:0;max-width:100%;height:44px;padding:.4rem .65rem;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:5px;font:inherit}
.autopay-agreement{min-width:0;padding-block:1rem;border-block:1px solid var(--line)}
.autopay-agreement header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.3rem .8rem}
.autopay-agreement h3{margin:0;font-size:1.14rem;letter-spacing:-.02em}
.autopay-state{font-size:.82rem;font-weight:600;color:var(--brand,var(--accent))}
.autopay-agreement dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem 1rem;margin:1.05rem 0}
.autopay-agreement dt{font-size:.78rem;color:var(--muted)}
.autopay-agreement dd{margin:.13rem 0 0;font-size:.95rem;font-weight:550}
.autopay-hint,.autopay-notice{margin:.75rem 0;font-size:.9rem;line-height:1.48;color:var(--muted)}
.autopay-notice:empty,.autopay-actions:empty{display:none}
.autopay-history{margin:.65rem 0;font-size:.9rem}
.autopay-history summary{display:list-item;min-height:44px;padding-block:.65rem;cursor:pointer;font-weight:550}
.autopay-history p{color:var(--muted)}
.autopay-history blockquote{margin:.5rem 0 .9rem;padding-left:.8rem;border-left:2px solid var(--line);white-space:pre-wrap}
.autopay-agreement form{display:grid;justify-items:start;gap:.8rem;margin-top:1rem}
.autopay-agreement .autopay-consent{display:flex;align-items:flex-start;gap:.65rem;min-height:44px;margin:0;font-size:.93rem;line-height:1.5;font-weight:400;cursor:pointer}
.autopay-consent input[type=checkbox]{width:19px;height:19px;min-height:0;flex:0 0 auto;margin:.15rem 0 0;accent-color:var(--brand,var(--accent))}
.autopay-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.8rem;align-items:center}
.autopay-actions p{width:100%;margin:.2rem 0;font-size:.94rem}
.autopay-panel button{min-height:44px;max-width:100%;white-space:normal}
.autopay-panel button:disabled{cursor:default}
.autopay-panel .autopay-secondary{background:transparent;border:1px solid var(--line);color:var(--ink);font-weight:550}
.autopay-panel .autopay-primary{background:var(--brand,var(--accent));color:var(--brand-ink,var(--mc-text));border-color:transparent}
@media(max-width:420px){.autopay-agreement dl{gap:.7rem}.autopay-agreement header{align-items:flex-start;flex-direction:column}.autopay-actions button{flex:1 0 100%}}
