/* Checkout, fitting and receipt follow one reading order on every screen. */
#checkoutView{padding-top:30px;padding-bottom:24px}
#checkoutView .checkout-header{margin-bottom:30px;max-width:850px}
#checkoutView .checkout-back{display:inline-flex;margin-bottom:22px;font-size:14px}
#checkoutView .checkout-header .eyebrow{font-size:12px;letter-spacing:.08em;margin:0 0 10px;color:#a43b20}
#checkoutView .checkout-header h1{font-size:clamp(28px,3vw,40px);margin:0 0 14px;line-height:1.4}
#checkoutView .checkout-header .lead{font-size:16px;line-height:1.85;margin:0;color:#625c53}
#checkoutView .checkout-layout{grid-template-columns:minmax(0,1.25fr) minmax(360px,.9fr);gap:28px}
#checkoutView .checkout-fields{min-width:0}
#checkoutView .checkout-section{padding:28px;margin-bottom:20px}
#checkoutView .checkout-section-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:24px}
#checkoutView .section-index{display:grid;place-items:center;flex:none;width:32px;height:32px;border:1px solid #d5c6b7;border-radius:50%;font-size:12px;font-weight:700;color:#a43b20;margin-top:1px}
#checkoutView .checkout-section-heading h2{font-size:22px;margin:0 0 7px;line-height:1.45;letter-spacing:0}
#checkoutView .checkout-section-heading p{font-size:13px;line-height:1.75;color:#6b6258;margin:0}
#checkoutView .required-help{margin:0 0 18px;font-size:12px}
#checkoutView .field-grid{gap:22px 18px}
#checkoutView .field{margin:0;font-size:14px;line-height:1.6}
#checkoutView .field input,#checkoutView .field textarea{font-size:16px;line-height:1.6;margin-top:8px;padding:11px 12px;background:#fffdf8}
#checkoutView .field small{display:block;font-weight:400;font-size:12px;line-height:1.75;color:#746a5e;margin-top:7px}
#checkoutView .field textarea{min-height:116px;max-height:300px}
#checkoutView .radio-card{display:flex;gap:12px;align-items:flex-start;margin:0 0 12px;padding:19px 20px;border:1px solid #ded3c7;background:#fbf8f1;border-radius:14px}
#checkoutView .radio-card input{flex:none;width:18px;height:18px;margin:4px 0 0}
#checkoutView .radio-card:has(input:checked){border-color:#b74a2a;background:#fff0e3;box-shadow:0 0 0 1px #b74a2a}
#checkoutView .payment-choice-copy{display:flex;flex-direction:column;gap:7px;min-width:0}
#checkoutView .choice-tag{font-size:11px;font-weight:600;letter-spacing:.04em;color:#8a4a31}
#checkoutView .payment-choice-copy strong{font-size:17px;line-height:1.6}
#checkoutView .payment-choice-description{font-size:13px;line-height:1.85;color:#645d53;font-weight:400}
#checkoutView .checkout-details{border-top:1px solid #e6ddd1;margin-top:20px;padding-top:14px}
#checkoutView .checkout-details summary{font-size:13px;font-weight:600;cursor:pointer;padding:8px 0;color:#68594b}
#checkoutView .checkout-details>div{padding:12px 0 0}
#checkoutView .checkout-details p{font-size:13px;line-height:1.9;color:#6b6258;margin-bottom:14px}
#checkoutView .checkout-consents{margin-top:24px;padding-top:4px}
#checkoutView .consent{gap:12px;font-size:14px;line-height:1.9;margin:0;padding:20px 0;border-top:1px solid #e8dfd4}
#checkoutView .consent input{width:19px;height:19px;margin:4px 0 0;flex:none}
#checkoutView .consent-detail{display:block;color:#74695d;font-size:12px;line-height:1.95;margin-top:10px}
#checkoutView .consent-optional{font-size:13px}
#checkoutView .consent-optional small{display:block;font-size:12px;color:#756b60}
#checkoutView .checkout-submit-note{font-size:12px;line-height:1.8;color:#74695d;margin:12px 0 18px}
#checkoutView #submitOrder{width:100%;min-height:52px;border-radius:12px;font-size:16px;justify-content:space-between;padding-inline:22px}
#orderSummary.checkout-summary{position:sticky;top:calc(var(--header) + 20px);padding:28px;margin:0;background:#202720;border-radius:20px}
#orderSummary h2{font-size:23px;line-height:1.5;margin:0 0 22px}
#orderSummary .summary-product{gap:16px;padding-bottom:22px;border-bottom:1px solid #4b5545}
#orderSummary .summary-product img{width:76px;height:86px;object-fit:contain;flex:none}
#orderSummary .summary-product h3{font-size:18px;margin:0 0 5px}
#orderSummary .summary-product p{font-size:13px;line-height:1.7;margin:0}
#orderSummary .summary-list{grid-template-columns:minmax(118px,.9fr) minmax(0,1.1fr);gap:15px 18px;font-size:13px;line-height:1.85;margin:22px 0}
#orderSummary .summary-list dt{font-weight:400;letter-spacing:0}
#orderSummary .summary-list dd{font-weight:500;text-align:right;min-width:0;overflow-wrap:anywhere}
#orderSummary .fee-breakdown{padding-top:20px;border-top:1px solid #4b5545}
#orderSummary .summary-total{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 16px;border-top:1px solid #69735c;padding-top:20px;margin-top:20px}
#orderSummary .summary-total span{font-size:13px;color:#d8dfcd}
#orderSummary .summary-total strong{font-size:25px;line-height:1.5;color:#fffdf6;font-variant-numeric:tabular-nums}
#orderSummary .first-payment{display:flex;flex-direction:column;gap:8px;padding:20px;margin:20px 0 0;font-size:13px;line-height:1.65;border-radius:12px}
#orderSummary .first-payment strong{font-size:28px;line-height:1.35;letter-spacing:.01em;white-space:nowrap}
#orderSummary .discount-pending{border:1px solid #64714e;border-radius:10px;padding:12px 14px;margin:18px 0 0;color:#e3ef91;font-size:12px;line-height:1.85}
#orderSummary .pricing-notice{color:#c8d0be;font-size:11px;line-height:1.9;margin:18px 0 0}
.order-bar #estimate{font-size:17px;line-height:1.6}
.order-bar small{font-size:11px;line-height:1.7;margin-top:3px}
.order-bar .btn{border-radius:12px;min-height:48px;font-size:15px}

/* Success keeps the next payment, file handoff and next request distinct. */
#successView .success-card{max-width:1050px;padding:36px;margin:32px auto;background:#fffdf6;border-top:5px solid #f45b32;box-shadow:none}
#successView .success-header{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding-bottom:26px;border-bottom:1px solid #e5dacc}
#successView .success-header>div{position:relative;padding-left:48px;min-width:0}
#successView .success-mark{position:absolute;left:0;top:0;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;font-size:19px}
#successView .success-header .eyebrow{margin:0 0 6px;font-size:11px;color:#8b4b30;letter-spacing:.05em}
#successView .success-header h1{font-size:clamp(26px,3vw,34px);margin:0 0 12px;line-height:1.45;letter-spacing:-.02em}
#successView .success-header p:last-child{font-size:14px;line-height:1.8;color:#746757;margin:0}
#successView .success-new-order{display:inline-flex;justify-content:center;align-items:center;gap:16px;flex:none;border:1px solid #9d9786;border-radius:10px;padding:12px 16px;min-height:46px;font-size:13px;font-weight:650;line-height:1.6;background:#f2f1e7;white-space:normal}
#successView .success-new-order:hover{background:#e5ead1}
#successView #success{margin:24px 0 0}
#successView .receipt-meta{grid-template-columns:90px minmax(0,1fr);margin:0 0 24px;gap:12px 20px;font-size:13px;line-height:1.8;padding-bottom:24px;border-bottom:1px solid #e5dacc}
#successView .receipt-meta dt{color:#756b5e}
#successView .receipt-meta dd{margin:0;min-width:0;font-weight:500;overflow-wrap:anywhere}
#successView .receipt-finance{display:grid;grid-template-columns:.75fr 1.25fr;border:1px solid #ded9c7;border-radius:16px;overflow:hidden;margin-bottom:20px;background:#f7f5ed}
#successView .receipt-order-total{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:26px}
#successView .receipt-order-total>span{color:#6c6256;font-size:13px}
#successView .receipt-order-total strong{font-size:25px;line-height:1.5;font-weight:650}
#successView .receipt-current-payment{padding:24px 28px;background:#e9efb7}
#successView .receipt-current-payment .eyebrow{font-size:12px;margin:0 0 9px;color:#4e582e}
#successView .receipt-current-payment .total{font-size:15px;font-weight:600;color:#293122;margin:0 0 7px;line-height:1.6}
#successView .receipt-current-amount{display:block;font-size:clamp(30px,4vw,40px);line-height:1.4;letter-spacing:-.02em;color:#202720;font-variant-numeric:tabular-nums}
#successView .receipt-payment-help{font-size:12px;color:#626b42;line-height:1.8;margin:10px 0 0}
#successView .receipt-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 28px}
#successView #success .success-case-cta{display:inline-flex;flex:1 1 320px;width:auto;margin:0;padding:17px 22px;min-height:54px;background:#f45b32;color:#202720;border-radius:12px;font-size:16px;line-height:1.6}
#successView .receipt-session-help{font-size:12px;line-height:1.8;color:#756858;margin:0;flex:1 0 100%}
#successView #copyCaseLink{flex:0 0 auto;margin:0;padding:12px 18px;min-height:46px;border-color:#c3b8a9;color:#65584b;font-size:12px;border-radius:10px}
#successView .handoff-card{padding:26px;border:1px solid #dfd4c5;border-radius:16px;background:#faf6ec}
#successView .handoff-step{display:block;margin-bottom:7px;font-size:11px;letter-spacing:.06em;color:#8a6247;font-weight:650}
#successView .handoff-heading h2{font-size:23px;line-height:1.6;letter-spacing:0;margin:0 0 12px}
#successView .handoff-intro{font-size:14px;line-height:1.9;color:#6e6051;margin:0 0 16px}
#successView .handoff-discount-state{font-size:13px;line-height:1.8;border-left:3px solid #9baf50;background:#eef1d7;color:#4c5a29;padding:10px 14px;margin:0 0 18px;font-weight:600}
#successView .handoff-rules{font-size:13px;color:#645a4d;line-height:1.95;margin:0 0 18px;padding-left:22px}
#successView .handoff-rules li{padding-left:4px;margin-bottom:9px}
#successView .handoff-example{font-size:12px;line-height:1.9;color:#756b5b;border-top:1px solid #e6dac7;padding-top:15px;margin:0 0 20px}
#successView .handoff-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#successView .handoff-actions>a{display:flex;align-items:center;justify-content:center;padding:13px 16px;min-height:48px;border:1px solid #b9b89e;border-radius:10px;font-size:14px;font-weight:650;line-height:1.6;background:#fffdf8;color:#3f4933}
#successView .handoff-actions>a:hover{background:#eef1dd}
#successView .handoff-actions .handoff-line{background:#edf6ed;border-color:#b0cbb0;color:#245f35}
#successView .success-aftercare{display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:center;margin-top:28px;padding:26px 0 0;border-top:1px solid #e5dacc}
#successView .success-aftercare h2{font-size:18px;line-height:1.6;margin:0 0 10px}
#successView .success-aftercare p{font-size:13px;line-height:1.9;color:#756858;margin:0}
#successView #successLine{animation:none;box-shadow:none;min-height:48px;margin:0;padding:10px 16px;border-radius:10px;font-size:14px;background:#edf6ef;color:#245b34}
#successView #successLine:after{display:none}
#successView .success-contact .success-line-id{font-size:12px;margin:10px 0 0;text-align:center}
#successView #copyLineId{display:block;margin:8px auto 0;padding:6px 12px;background:transparent;border:1px solid #c5cbb9;border-radius:8px;color:#4d6042;font-size:12px}
#successView .success-security-note{font-size:11px;line-height:1.9;margin:24px 0 0;color:#887b69}

/* Fitting is a separate request, followed by returning to the saved quantities. */
#fittingForm{max-width:900px;margin:0 auto 30px;padding:32px}
#fittingForm>h2{font-size:22px;margin:30px 0 20px}
#fittingForm>h2:first-child{margin-top:0}
#fittingForm .field-grid{gap:20px}
#fittingForm .field{margin-bottom:20px;line-height:1.8}
#fittingForm .field input,#fittingForm .field select,#fittingForm .field textarea{font-size:16px}
#fittingForm .consent{font-size:14px;line-height:1.85;margin:24px 0;flex-wrap:wrap;gap:8px 12px}
#fittingForm .consent input{width:18px;height:18px;flex:none;margin-top:5px}
#fittingForm .consent .text-link{padding:0}
#fittingForm .fitting-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border-top:1px solid #e5dacc;margin-top:24px;padding-top:24px}
#fittingForm .fitting-actions>button{min-height:50px;border-radius:12px;font-size:15px}
#fittingForm .fitting-resume{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#eef0de;color:#394329;border:1px solid #c2c8a5;border-radius:12px;padding:15px 20px;margin:0;min-height:50px;font-size:14px}
#fittingForm .fitting-return{margin-top:22px;padding:20px;border-radius:14px;background:#f1f2e5}
#fittingForm .fitting-return p{margin:0 0 12px;font-size:13px;line-height:1.85;color:#6b6b52}
#fittingForm[data-submitted=true] .fitting-return{border:1px solid #bdca8b;background:#edf1d6}
#fittingForm[data-submitted=true] .fitting-resume{background:#202720;color:#edf3bd;border-color:#202720;font-size:16px}

@media(max-width:1050px){
 #checkoutView .checkout-layout{grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr);gap:20px}
 #checkoutView .checkout-section,#orderSummary.checkout-summary{padding:22px}
 #orderSummary .summary-list{grid-template-columns:minmax(105px,.95fr) minmax(0,1.05fr);gap:14px}
}
@media(max-width:850px){
 #checkoutView .checkout-layout{grid-template-columns:minmax(0,1fr)}
 #orderSummary.checkout-summary{position:static;grid-row:1}
 #successView .success-header{flex-direction:column;gap:20px}
 #successView .success-new-order{align-self:stretch;justify-content:space-between}
}
@media(max-width:600px){
 #checkoutView{padding-top:22px}
 #checkoutView .checkout-header{margin-bottom:24px}
 #checkoutView .checkout-back{margin-bottom:16px;font-size:12px}
 #checkoutView .checkout-header h1{font-size:28px;line-height:1.5}
 #checkoutView .checkout-header .lead{font-size:14px;line-height:1.9}
 #checkoutView .checkout-section,#orderSummary.checkout-summary{padding:22px 18px;border-radius:16px}
 #checkoutView .checkout-section-heading{gap:12px;margin-bottom:20px}
 #checkoutView .checkout-section-heading h2{font-size:20px}
 #checkoutView .checkout-section-heading p{font-size:12px}
 #checkoutView .field-grid{grid-template-columns:1fr;gap:20px}
 #checkoutView .radio-card{padding:17px 15px}
 #checkoutView .payment-choice-copy strong{font-size:16px}
 #checkoutView .payment-choice-description{font-size:12px}
 #orderSummary .summary-list{grid-template-columns:minmax(105px,.9fr) minmax(0,1.1fr);gap:13px 15px;font-size:12px}
 #orderSummary .first-payment{padding:16px}
 #orderSummary .first-payment strong{font-size:26px}
 .order-bar .wrap{width:calc(100% - 32px);gap:14px}
 .order-bar #estimate{font-size:13px;line-height:1.65}
 .order-bar .btn{font-size:12px;padding:12px 14px;min-width:128px}
 .order-bar small{font-size:10px;line-height:1.7}
 #successView .success-card{padding:24px 18px;margin:22px auto;border-radius:20px}
 #successView .success-header{padding-bottom:22px}
 #successView .success-header>div{padding-left:0;padding-top:42px}
 #successView .success-header h1{font-size:27px}
 #successView .success-header p:last-child{font-size:13px;line-height:1.9}
 #successView .success-new-order{font-size:13px}
 #successView .receipt-meta{grid-template-columns:70px minmax(0,1fr);gap:12px 14px;font-size:12px}
 #successView .receipt-finance{grid-template-columns:1fr}
 #successView .receipt-order-total{flex-direction:row;justify-content:space-between;align-items:baseline;gap:16px;padding:18px}
 #successView .receipt-order-total strong{font-size:21px}
 #successView .receipt-order-total>span{font-size:12px}
 #successView .receipt-current-payment{padding:20px}
 #successView .receipt-current-amount{font-size:34px}
 #successView .receipt-actions{gap:12px;margin-bottom:24px}
 #successView #success .success-case-cta{flex-basis:100%;font-size:15px;padding:15px}
 #successView #copyCaseLink{width:100%;margin:0}
 #successView .handoff-card{padding:20px 16px}
 #successView .handoff-heading h2{font-size:20px}
 #successView .handoff-intro{font-size:13px}
 #successView .handoff-rules{font-size:12px;line-height:2}
 #successView .handoff-discount-state{font-size:12px}
 #successView .handoff-example{font-size:11px}
 #successView .handoff-actions{grid-template-columns:1fr;gap:10px}
 #successView .handoff-actions>a{font-size:13px}
 #successView .success-aftercare{grid-template-columns:1fr;gap:20px;padding-top:22px;margin-top:24px}
 #successView .success-aftercare h2{font-size:18px}
 #successView .success-security-note{font-size:10px}
 #fittingForm{padding:22px 18px;border-radius:18px}
 #fittingForm .field-grid{grid-template-columns:1fr;gap:0}
 #fittingForm .fitting-actions{flex-direction:column;align-items:stretch;gap:12px}
 #fittingForm .fitting-actions>button{width:100%}
 #fittingForm .fitting-return{padding:16px}
 #fittingForm .fitting-resume{width:100%;font-size:13px;padding:14px}
}


/* An uncertain submission remains available while the customer browses home. */
#homePendingNotice[hidden],#pendingRecoveryStatus[hidden]{display:none!important}
#homePendingNotice{width:100%;max-width:480px;margin:0 auto;display:flex;flex-direction:column;gap:18px;min-width:0}
body.pending-order #homeView #experience #order{display:flex;flex-direction:column;justify-content:center}
body.pending-order #homeView #experience #order>:not(#homePendingNotice){display:none!important}
body.pending-order #homeView #experience #homePendingNotice h2{font-size:30px;line-height:1.5;letter-spacing:-.03em;margin:0;color:#e3ef91}
#homePendingNotice .home-pending-description{font-size:15px;line-height:1.9;color:#e3e8dc;margin:0}
#homePendingNotice .pending-order-details{font-size:15px;font-weight:650;line-height:1.7;color:#f7f5ef;background:#323d2f;border:1px solid #67784f;border-radius:12px;padding:14px 16px;margin:0;overflow-wrap:anywhere}
#homePendingNotice .pending-order-details:empty{display:none}
#homePendingNotice .pending-recovery-actions{display:flex;flex-direction:column;gap:8px}
#homePendingNotice .home-pending-action{display:flex;align-items:center;justify-content:center;min-height:52px;padding:13px 18px;background:#e3ef91;color:#202720;border-radius:12px;font-size:16px;font-weight:750;line-height:1.6;text-align:center;transform:none}
#homePendingNotice .home-pending-action:disabled{cursor:wait;opacity:.7}
#homePendingNotice .home-pending-resume{display:flex;align-items:center;justify-content:center;min-height:44px;padding:9px 12px;color:#dce4c9;font-size:14px;font-weight:500;line-height:1.7;text-align:center;text-decoration:underline;text-underline-offset:4px}
#homePendingNotice .home-pending-resume:hover{color:#f1f6df}
#homePendingNotice .pending-recovery-status{margin:0;padding:12px 14px;border:1px solid #67784f;border-radius:10px;background:#323d2f;color:#e3ef91;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
#homePendingNotice .pending-recovery-status:empty{display:none}
#homePendingNotice .home-pending-action:hover{background:#edf5b4}
#homePendingNotice small{display:block;margin:0;font-size:13px;line-height:1.85;color:#cfd5c8}
@media(max-width:950px){body.pending-order #homeView #experience #order{height:auto;min-height:0;justify-content:flex-start}#homePendingNotice{padding:12px 0;gap:20px}body.pending-order #homeView #experience #homePendingNotice h2{font-size:27px}}
@media(max-width:370px){#homePendingNotice{gap:18px}body.pending-order #homeView #experience #homePendingNotice h2{font-size:25px}#homePendingNotice .home-pending-description{font-size:14px}#homePendingNotice .home-pending-action{font-size:15px}}
