/* The approved reference is kept verbatim in ../reference.css. */
.plan-card { text-align: start; overflow-wrap: anywhere; }
.plan-card .plan-price { flex-wrap: wrap; }
.plan-credits b { white-space: nowrap; flex-shrink: 0; }
.plan-grid.single-plan { grid-template-columns: minmax(0, 1fr); }
.plan-tagline { white-space: pre-line; }
.card-brands { margin-right: 0; margin-inline-start: auto; }
.field input, .coupon-row input { min-width: 0; }
.card-fields .fields .field { min-width: 0; }
.money { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
.summary-plan > span { min-width: 0; overflow-wrap: anywhere; }
.summary-plan > strong { flex-shrink: 0; }
.price-lines bdi, .today-row strong { direction: ltr; unicode-bidi: isolate; }
.today-row.pending strong { direction: inherit; }
#period-total, #summary-plan-price { direction: ltr; unicode-bidi: isolate; }
#intro-offer { white-space: pre-line; }
#payment-note { font-weight: 700; }
#payment-note:empty, #billing-explanation:empty { display: none; }
.completion-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.completion-actions .button { margin: 0; width: 100%; overflow-wrap: anywhere; }
.completion-reference { margin-top: 18px; overflow-wrap: anywhere; }
#completion-summary { overflow-wrap: anywhere; }
#completion-summary p + p { margin-top: 8px; }
.success-mark[data-state="processing"], .success-mark[data-state="review"] { background: #fff4dc; color: #82611c; }
.success-mark[data-state="declined"] { background: #fff0ed; color: #9d3426; }
.payment-result {
    width: min(100%, 760px);
    margin: 12px auto 32px;
    padding: 36px 40px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px #153e4806;
    text-align: center;
}
.payment-result h2 { font-size: 26px; line-height: 1.4; }
.payment-result p { margin: 16px auto; line-height: 1.8; }
.payment-result #result-copy { max-width: 560px; }
.payment-result .payment-error {
    max-width: 620px;
    margin-block: 22px;
    padding: 14px 18px;
    border: 1px solid #efd5cf;
    border-radius: 10px;
    background: #fff6f3;
    color: #8d3528;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.payment-result #result-instruction { max-width: 560px; font-size: 14px; }
.payment-result #result-secondary { max-width: 520px; margin-bottom: 0; }
.payment-result #result-reference {
    margin-top: 24px;
    margin-bottom: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
    font-size: 11px;
}
.payment-result > .button { margin: 8px 6px 0; }
.payment-result .result-actions .button.primary { min-width: 160px; }
@media (max-width: 540px) {
    .payment-result { padding: 26px 20px 22px; margin-block: 8px 24px; border-radius: 14px; }
    .payment-result h2 { font-size: 23px; }
    .payment-result .payment-error { padding: 12px 14px; }
    .payment-result .result-actions .button.primary { min-width: 140px; }
}
html[dir="ltr"] .intro-note { border-right: 0; border-left: 1px solid #cfdddd; padding: 8px 0 8px 35px; margin: 10px 32px 0 0; }
html[dir="ltr"] .intro-note .sparkle { left: auto; right: 15px; }
html[dir="ltr"] .text-button { margin-left: 0; margin-right: 20px; }
html[dir="ltr"] .dialog-close { left: auto; right: 16px; }
@media (max-width: 540px) {
    .plan-price .money { white-space: normal; }
    .summary-plan { flex-wrap: wrap; }
    .completion-actions { grid-template-columns: minmax(0, 1fr); }
    .card-fields .fields .field.full { grid-column: 1 / -1; }
}

.payment-result .result-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin-block: 24px; }
.payment-result .result-actions #result-help { margin: 0; }

.payment-result .result-actions .button { margin: 0; }
.payment-result .button[hidden] { display: none !important; }

.section-heading > .trial-note { font-size: 21px; font-weight: 700; letter-spacing: -.5px; color: #34815d; }
@media (max-width: 540px) { .section-heading > .trial-note { font-size: 19px; } }
