html.purchase-agreement-open{overflow:hidden}
.purchase-agreement-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);padding:0;margin:auto;border:1px solid var(--line,#dce1e5);border-radius:16px;background:var(--surface,#fff);color:var(--ink,#1d272b);box-shadow:0 12px 48px #0002}
.purchase-agreement-dialog[open]{display:flex;flex-direction:column}
.purchase-agreement-dialog::backdrop{background:#090d1380;backdrop-filter:blur(4px)}
.purchase-agreement-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex:none;padding:22px 24px 18px;border-bottom:1px solid var(--line,#dce1e5)}
.purchase-agreement-dialog>header>div{min-width:0}
.purchase-agreement-dialog h2{margin:0;font-size:23px;line-height:1.5;letter-spacing:0;word-break:normal}
.purchase-agreement-dialog h2 span{display:inline-block;white-space:nowrap}
.purchase-agreement-dialog [data-agreement-date]{display:flex;flex-wrap:wrap;gap:2px 12px;margin:8px 0 0;font-size:12px;line-height:1.7;color:var(--muted,#697178)}
.purchase-agreement-dialog>header button{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--muted,#697178);font-family:inherit;font-size:28px;line-height:1;cursor:pointer}
.purchase-agreement-dialog :is(button,a):focus-visible{outline:1px solid var(--green,#087d56);outline-offset:2px;box-shadow:none}
.purchase-agreement-dialog__body{padding:22px 24px;overflow:auto;overscroll-behavior:contain;min-height:0;font-size:15px;line-height:1.9;overflow-wrap:anywhere}
.purchase-agreement-dialog__body section+section{margin-top:26px}
.purchase-agreement-dialog__body h2{font-size:17px;line-height:1.6;margin-bottom:12px}
.purchase-agreement-dialog__body p{margin:0 0 12px;color:inherit}
.purchase-agreement-dialog__body a{color:var(--green,#087d56);text-decoration:underline}
.purchase-agreement-dialog>footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex:none;padding:16px 24px;border-top:1px solid var(--line,#dce1e5)}
.purchase-agreement-dialog>footer .button{min-height:40px;padding:9px 17px;line-height:1.5;font-size:14px;text-align:center}
.purchase-agreement-dialog__loading{display:flex;justify-content:center;align-items:center;gap:5px;min-height:150px}
.purchase-agreement-dialog__loading i{display:block;width:6px;height:6px;border-radius:50%;background:var(--green,#087d56);animation:agreement-dot 1.2s infinite ease-in-out}
.purchase-agreement-dialog__loading i:nth-child(2){animation-delay:.15s}.purchase-agreement-dialog__loading i:nth-child(3){animation-delay:.3s}
.purchase-agreement-dialog__error{display:flex;flex-direction:column;align-items:flex-end;gap:8px;min-height:110px}.purchase-agreement-dialog__error p{align-self:flex-start}
html[data-theme=dark] .purchase-agreement-dialog{background:var(--surface,#111318);color:var(--ink,#f3f4f5);border-color:var(--line,#30343b)}
@keyframes agreement-dot{0%,70%,100%{opacity:.4;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}
@media(max-width:600px){.purchase-agreement-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.purchase-agreement-dialog>header{padding:18px 18px 14px}.purchase-agreement-dialog h2{font-size:20px}.purchase-agreement-dialog__body{padding:18px;font-size:14px}.purchase-agreement-dialog__body h2{font-size:16px}.purchase-agreement-dialog>footer{padding:14px 18px;padding-bottom:max(14px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.purchase-agreement-dialog__loading i{animation:none}}

.purchase-agreement-dialog [data-agreement-date] span{white-space:nowrap}
