.purchases-page{padding-top:64px;padding-bottom:72px;min-height:65vh}.purchases-heading{max-width:700px;margin-bottom:36px}.purchases-heading h1{font-size:clamp(42px,5vw,68px);font-weight:400;margin:14px 0 18px}.purchases-heading h1 em{color:#718466}.purchases-heading p{color:#63745b;line-height:1.8}.purchases-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.purchases-toolbar p{color:#65745e;font-size:14px}.purchases-list{display:grid;gap:24px;margin-bottom:28px}.purchase-card{padding:30px;border:1px solid #dce4d5;border-radius:24px;background:#fffdf8;box-shadow:0 8px 28px #29443506}.purchase-card-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.purchase-reference h2{font-family:inherit;font-size:23px;letter-spacing:2px;margin:8px 0;overflow-wrap:anywhere}.purchase-reference{min-width:0}.purchase-reference .eyebrow{font-size:10px}.purchase-state{flex-shrink:0;background:#f0eee4;color:#756548;border-radius:99px;padding:8px 14px;font-size:12px;font-weight:600}.purchase-state[data-state=paid]{background:#e7efdf;color:#385635}.purchase-date{color:#73816a;font-size:13px;margin:8px 0 22px}.purchase-lines{list-style:none;padding:0;margin:0;border-top:1px solid #e3e8dd}.purchase-line{display:grid;grid-template-columns:48px 1fr auto;gap:18px;align-items:center;padding:20px 0;border-bottom:1px solid #e3e8dd}.purchase-format{display:grid;place-items:center;width:46px;height:58px;border-radius:8px;background:#eff1e8;color:#6b7e5e;font-size:10px;letter-spacing:1px}.purchase-line h3{font-size:17px;margin:0 0 5px;font-weight:500}.purchase-line p{font-size:12px;color:#73816a;margin:0}.purchase-line>strong{font-size:14px;font-weight:500;white-space:nowrap}.purchase-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-top:24px}.purchase-total{display:flex;flex-direction:column;gap:5px}.purchase-total span{font-size:12px;color:#73816a}.purchase-total strong{font-size:24px;font-weight:500}.purchases-signout{margin-top:48px;padding-top:28px;border-top:1px solid #dce4d5;display:flex;align-items:center;justify-content:space-between;gap:20px}.purchases-signout p{font-size:13px;color:#73816a}.purchases-empty{text-align:center;padding:48px 24px;border:1px dashed #cbd7c1;border-radius:24px;background:#f3f5ed}.purchases-empty p{max-width:470px;margin:16px auto 24px;line-height:1.8;color:#65745e}.purchases-empty-icon{font-size:48px;color:#849776}.purchases-empty h2{font-size:30px;font-weight:400}.purchases-page [hidden]{display:none!important}@media(max-width:600px){.purchases-page{padding-top:36px}.purchase-card{padding:20px}.purchase-card-heading{align-items:flex-start;flex-direction:column;gap:8px}.purchase-line{grid-template-columns:38px 1fr;gap:12px}.purchase-format{width:36px;height:48px}.purchase-line>strong{grid-column:2}.purchase-card-bottom,.purchases-signout{align-items:flex-start;flex-direction:column}.purchase-card-bottom .button{width:100%;justify-content:center}.purchases-toolbar{gap:10px}.purchase-reference h2{font-size:20px}}
.purchase-order-tools{display:flex;align-items:center;gap:12px;flex-shrink:0}.purchase-trash{display:grid;place-items:center;width:38px;height:38px;padding:8px;border:1px solid #ddd9ce;border-radius:50%;color:#8a6c5e;background:transparent;cursor:pointer}.purchase-trash:hover{background:#f3e9e1}.purchase-trash:focus-visible{outline:3px solid #809574;outline-offset:3px}.purchase-trash svg{width:20px;height:20px}.purchase-expiry{font-size:13px;color:#59734c;letter-spacing:0;margin:8px 0 20px}.purchase-payment-modal{max-width:760px}.purchase-payment-body{padding:24px 28px 40px}.purchase-payment-body [data-purchase-payment-frame]{padding:16px 16px 24px;border:1px solid #dce3d5;border-radius:18px;background:#f0f2e9;overflow:hidden}.purchase-payment-body [role=status]:empty{display:none}.purchase-payment-body [hidden]{display:none!important}.purchase-payment-body [role=status]{line-height:1.7}.purchase-payment-modal h2{font-size:28px}.purchase-payment-modal [data-purchase-payment-reference]{font-size:13px;color:#6e8063;margin-top:8px}@media(max-width:600px){.purchase-order-tools{width:100%;justify-content:space-between}.purchase-payment-body{padding:18px 16px 32px}.purchase-payment-body [data-purchase-payment-frame]{padding:12px 8px 20px;border-radius:14px}}

.purchase-remove-modal{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:32px;border:1px solid #dce3d5;border-radius:24px;background:#fafbf6;color:#294435;box-shadow:0 24px 80px #142b3540;overflow:auto}
.purchase-remove-modal::backdrop{background:#1d302a85;backdrop-filter:blur(5px)}
.purchase-remove-icon{display:grid;place-items:center;width:56px;height:56px;margin-bottom:22px;background:#f1e7dc;color:#8a6250;border-radius:18px}
.purchase-remove-icon svg{width:28px;height:28px}
.purchase-remove-modal h2{font-size:30px;line-height:1.2;margin:0 0 16px}
.purchase-remove-modal p{font-size:14px;line-height:1.75;color:#65745e;margin:0}
.purchase-remove-actions{display:flex;gap:12px;margin-top:28px}
.purchase-remove-actions .button{flex:1;justify-content:center;cursor:pointer;padding:13px 18px}
.purchase-remove-confirm{background:#805f50;border-color:#805f50;color:#fff}
.purchase-remove-confirm:hover{background:#684a3d;border-color:#684a3d}
html:has(.purchase-remove-modal[open]){overflow:hidden}
@media(prefers-reduced-motion:no-preference){.purchase-remove-modal[open]{animation:payment-in .22s cubic-bezier(.22,1,.36,1)}}
@media(max-width:480px){.purchase-remove-modal{padding:26px 22px}.purchase-remove-modal h2{font-size:27px}}

/* A confirmed order has no remaining Stripe form or empty payment panel. */
.purchase-payment-modal[data-payment-state="paid"]{max-width:560px}
.purchase-payment-modal[data-payment-state="paid"] .purchase-payment-body{display:grid;gap:22px;padding-bottom:30px}
.purchase-payment-modal[data-payment-state="paid"] [data-purchase-payment-status]{margin:0}
.purchase-payment-modal[data-payment-state="paid"] [data-purchase-payment-download]{justify-self:start}
