/* CFS Quote Experience. Namespaced to avoid changing working checkout and cart CSS. */
.cfs-xp-confirmation {max-width:1050px;margin:1.5rem auto 2rem;padding:25px 28px;border:1px solid #dce3e7;border-top:4px solid #eb7531;border-radius:5px;background:#fff;color:#1e303c;box-sizing:border-box}
.cfs-xp-confirmation *, .cfs-xp-email-card *, .cfs-xp-popover *, .cfs-xp-overlay *, .cfs-xp-restore-main *{box-sizing:border-box}
.cfs-xp-confirm-lead{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:start}
.cfs-xp-confirm-check{background:#e5f3ec;color:#17704b;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:700}
.cfs-xp-confirmation .cfs-xp-eyebrow{margin:0 0 6px;font-weight:700;text-transform:uppercase;font-size:11px;letter-spacing:1px;color:#a74a12}
.cfs-xp-confirmation h2{font:700 27px/1.25 Archivo,Inter,Arial,sans-serif;margin:0 0 9px;color:#1e303c}
.cfs-xp-confirmation h3{font:700 18px/1.35 Archivo,Inter,Arial,sans-serif;color:#1e303c;margin:18px 0 12px}
.cfs-xp-confirmation p{line-height:1.55;margin:4px 0 11px;color:#42515c}
.cfs-xp-confirm-muted{font-size:13px}
.cfs-xp-reference{padding:15px 18px;background:#f3f5f6;border:1px solid #dfe5e7;border-radius:4px;min-width:166px;text-align:left}
.cfs-xp-reference small,.cfs-xp-reference span{display:block;color:#4b5a64;font-size:11px}
.cfs-xp-reference strong{display:block;font-size:22px;line-height:1.5;color:#1b2d38}
.cfs-xp-received-items{padding:0;margin:0;list-style:none;border-top:1px solid #e1e5e8}
.cfs-xp-received-items li{display:grid;grid-template-columns:1fr auto;gap:4px 16px;padding:10px 0;border-bottom:1px solid #e1e5e8;font-size:14px;line-height:1.4}
.cfs-xp-received-items strong{white-space:nowrap}
.cfs-xp-received-items small{grid-column:1/-1;color:#596975}
.cfs-xp-confirm-steps{background:#f7f8f9;margin-top:22px;padding:17px 20px;border-radius:4px}
.cfs-xp-confirm-steps h3{margin:0 0 13px}
.cfs-xp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.cfs-xp-steps>div{padding:8px 12px 10px;background:#fff;border:1px solid #e0e5e9}
.cfs-xp-steps span{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fce7d9;color:#96430e;margin-bottom:9px;font-weight:700}
.cfs-xp-steps strong{display:block;font-size:14px}
.cfs-xp-steps p{font-size:13px;margin:5px 0}
.cfs-xp-confirmation .cfs-xp-confirm-no-payment{font-size:13px;margin:13px 0 0}
.cfs-xp-confirmation .cfs-xp-confirm-help{margin:17px 0 0;font-size:14px}
.cfs-xp-confirm-help a{color:#2b5e7c;text-decoration:underline}
.cfs-xp-popover{position:fixed;z-index:99998;background:#fff;color:#1d2e3a;box-shadow:0 16px 50px rgba(16,34,46,.22);border:1px solid #dae2e6;border-radius:9px;max-height:75vh;overflow:auto;font:14px/1.45 Inter,Arial,sans-serif}
.cfs-xp-popover[hidden]{display:none!important}
.cfs-xp-panel-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-bottom:1px solid #dfe6ea}
.cfs-xp-panel-top strong{font-size:17px;color:#1a2c38}
.cfs-xp-close,.cfs-xp-dialog-close{cursor:pointer;font-size:24px;background:transparent;border:0;color:#243844;line-height:1;padding:5px 9px}
.cfs-xp-panel-loading,.cfs-xp-panel-empty{padding:16px 18px;color:#526471}
.cfs-xp-preview-items{list-style:none;margin:0;padding:0 16px;max-height:325px;overflow:auto}
.cfs-xp-preview-items li{display:grid;grid-template-columns:62px 1fr;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid #ebeff1}
.cfs-xp-preview-image{width:62px;height:62px;display:flex;align-items:center;justify-content:center;background:#f5f6f7;border-radius:4px;overflow:hidden}
.cfs-xp-preview-image img{width:100%;height:100%;object-fit:cover}
.cfs-xp-preview-items strong{display:block;font-size:13px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}
.cfs-xp-preview-items small{display:block;margin-top:6px;color:#536470}
.cfs-xp-preview-items .cfs-xp-extra{display:block;color:#536470;font-size:13px}
.cfs-xp-preview-total{display:flex;justify-content:space-between;gap:12px;padding:13px 17px;font-size:13px;background:#f6f8f9}
.cfs-xp-preview-total strong{white-space:nowrap;color:#1e303c}
.cfs-xp-preview-disclaimer{font-size:12px;line-height:1.45;color:#647482;padding:0 17px;margin:10px 0}
.cfs-xp-view-cart,.cfs-xp-preview-save,.cfs-xp-email-row button,.cfs-xp-save-dialog button[type=submit],.cfs-xp-restore-actions button{display:block;width:calc(100% - 34px);margin:11px 17px;padding:12px 14px;font-size:14px;font-weight:700;text-align:center;text-decoration:none;background:#eb7531;color:#1e2429;border:0;border-radius:5px;cursor:pointer}
.cfs-xp-preview-save{background:#f2f4f6;color:#1f3b4c;border:1px solid #cbd6db}
.cfs-xp-preview-save:disabled{opacity:.5;cursor:not-allowed}
.cfs-xp-email-card{padding:16px 18px;margin:20px 0;background:#f6f8f9;border:1px solid #dce3e8;border-radius:5px}
.cfs-xp-email-card h3{margin:0 0 8px;color:#1f303b;font-size:17px}
.cfs-xp-email-card p{font-size:13px;line-height:1.5;margin:0 0 11px;color:#4f5d68}
.cfs-xp-save-form label:not(.cfs-xp-hp){display:block;font-size:13px;font-weight:700;margin-bottom:6px}
.cfs-xp-email-row{display:flex;gap:9px;align-items:stretch}
.cfs-xp-save-form input[type=email]{min-width:0;flex:1;width:100%;border:1px solid #b5c2ca;border-radius:4px;padding:11px;color:#1c2d38;background:#fff;font-size:14px}
.cfs-xp-email-card .cfs-xp-email-row button{width:auto;margin:0;white-space:nowrap}
.cfs-xp-save-form .cfs-xp-email-note{margin:9px 0;font-size:11px;color:#64717b}
.cfs-xp-hp{position:absolute!important;clip:rect(0 0 0 0)!important;width:1px!important;height:1px!important;overflow:hidden!important}
.cfs-xp-save-feedback{font-size:13px;color:#205b4a;min-height:1px;margin-top:6px}
.cfs-xp-overlay{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(19,32,41,.55)}
.cfs-xp-save-dialog{position:relative;background:#fff;color:#1c2d38;border-radius:8px;padding:25px 25px 19px;width:min(460px,100%);box-shadow:0 20px 70px rgba(0,0,0,.25)}
.cfs-xp-save-dialog h2{font-size:23px;line-height:1.3;margin:4px 24px 10px 0;color:#1d2e3a}
.cfs-xp-save-dialog p{font-size:14px;line-height:1.5;color:#52636e}
.cfs-xp-dialog-close{position:absolute;right:12px;top:12px}
.cfs-xp-save-dialog input[type=email]{display:block;width:100%}
.cfs-xp-save-dialog button[type=submit]{width:100%;margin:11px 0 0}
.cfs-xp-restore-main{padding:40px 18px;background:#f3f5f6;min-height:55vh}
.cfs-xp-restore-box{max-width:740px;margin:0 auto;padding:24px 26px;background:#fff;color:#1d303d;border:1px solid #dce3e8}
.cfs-xp-restore-box h1{font-size:26px;line-height:1.25;margin:0 0 16px}
.cfs-xp-restore-box p{font-size:15px;line-height:1.55;color:#43535d}
.cfs-xp-restore-warning{border-left:3px solid #ad5420;padding:12px;background:#fff5ed}
.cfs-xp-restore-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cfs-xp-restore-actions button{width:auto;margin:8px 0}
.cfs-xp-restore-actions a{color:#2b5e7c}
@media(max-width:740px){.cfs-xp-confirmation{padding:19px 16px;margin:12px}.cfs-xp-confirm-lead{grid-template-columns:34px 1fr;gap:12px}.cfs-xp-confirm-check{width:34px;height:34px}.cfs-xp-reference{grid-column:1/-1;min-width:0}.cfs-xp-steps{grid-template-columns:1fr}.cfs-xp-confirmation h2{font-size:22px}.cfs-xp-email-row{flex-direction:column}.cfs-xp-email-card .cfs-xp-email-row button{width:100%}.cfs-xp-popover{max-height:76vh}}

/* v0.2.21: Optional project context for both saved-cart entry points. */
.cfs-xp-save-fields{display:grid;gap:11px;margin:9px 0 12px}
.cfs-xp-save-field{min-width:0}
.cfs-xp-save-form input[name="project_name"],.cfs-xp-save-form textarea[name="project_notes"]{display:block;width:100%;min-width:0;border:1px solid #b5c2ca;border-radius:4px;padding:11px;color:#1c2d38;background:#fff;font:inherit;font-size:14px;line-height:1.45;box-shadow:none}
.cfs-xp-save-form textarea[name="project_notes"]{resize:vertical;min-height:78px}
.cfs-xp-save-dialog .cfs-xp-save-form label:not(.cfs-xp-hp){display:block;margin:12px 0 6px;font-size:13px;font-weight:700;color:#263945}
.cfs-xp-save-dialog .cfs-xp-save-form input[type=email]{padding:11px;border:1px solid #b5c2ca;border-radius:4px;color:#1c2d38;background:#fff;font-size:14px}
.cfs-xp-save-dialog{max-height:min(90vh,740px);overflow:auto}
.cfs-xp-email-card .cfs-xp-email-row button{width:100%;white-space:normal}
@media(max-width:520px){.cfs-xp-save-dialog{padding:19px 17px 16px}}

/* Same save-cart modal launches from the compact cart-page action. */
.cfs-xp-email-card .cfs-xp-cart-save-open{width:auto;max-width:100%;margin:10px 0 12px;background:#eb7531;color:#1e2429;border:0;padding:12px 18px}

/* v0.2.22: explicit saved-cart disclosure links, no marketing opt-in. */
.cfs-xp-save-dialog .cfs-xp-save-form .cfs-xp-policy-ack{display:flex!important;align-items:flex-start;gap:10px;margin:12px 0!important;font-size:12px!important;font-weight:400!important;line-height:1.5;color:#425360!important}
.cfs-xp-policy-ack input[type=checkbox]{flex:0 0 18px;min-width:18px;width:18px;height:18px;margin:1px 0 0;accent-color:#c45c19}
.cfs-xp-policy-ack a{color:#225c7c;text-decoration:underline}
