@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

.memorial-card-order-page{
    background:linear-gradient(180deg,#fff 0%,#fbf7ff 100%);
    padding:34px 18px 70px;
    font-family:Inter,Arial,sans-serif;
    color:#2e263a;
}
.order-shell{width:min(1080px,100%);margin:0 auto;}
.order-heading{max-width:760px;margin:0 auto 22px;text-align:center;}
.eyebrow{margin:0 0 8px;color:#7c4dff;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.16em;}
.order-heading h1{margin:0;color:#21102f;font-size:clamp(30px,3.5vw,44px);line-height:1.05;font-weight:900;letter-spacing:-.04em;}
.order-heading p{margin:12px auto 0;max-width:620px;color:#6e637b;font-size:14px;line-height:1.65;}
.order-layout{display:grid;grid-template-columns:390px minmax(0,1fr);gap:22px;align-items:start;}
.order-summary-card,.order-form-card{background:#fff;border:1px solid #eadff4;border-radius:24px;box-shadow:0 18px 54px rgba(46,28,70,.09);overflow:hidden;}
.preview-wrap{padding:16px;background:linear-gradient(145deg,#fff,#f7f0ff);border-bottom:1px solid #efe5f7;}
.order-preview-img{display:block;width:100%;border-radius:18px;background:#f8f4fb;box-shadow:0 12px 30px rgba(54,33,89,.10);}
.summary-content{padding:18px 20px 20px;}
.summary-content h2,.form-section-title h2{margin:0;color:#271637;font-size:21px;line-height:1.2;font-weight:900;letter-spacing:-.02em;}
.summary-note,.form-section-title p{margin:7px 0 0;color:#70647d;font-size:13px;line-height:1.55;}
.order-price-box{margin-top:16px;background:#fbf7ff;border:1px solid #eadff4;border-radius:18px;padding:13px 14px;}
.order-price-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0;color:#574a65;font-size:14px;}
.order-price-row strong{color:#21102f;font-weight:900;}
.order-price-row.discount strong{color:#4f9b65;}
.order-price-row.total{margin-top:5px;padding-top:12px;border-top:1px solid #e1d4ef;font-size:17px;font-weight:900;color:#21102f;}
.order-form-card{padding:22px;}
.form-section-title{margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #efe5f7;}
.order-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
.order-form-grid label{display:flex;flex-direction:column;gap:6px;color:#493b5b;font-size:13px;font-weight:800;}
.order-form-grid input,.order-form-grid textarea{width:100%;border:1px solid #ded6e8;border-radius:13px;background:#fff;padding:11px 12px;font:inherit;font-size:14px;color:#2e263a;outline:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;}
.order-form-grid textarea{resize:vertical;min-height:82px;}
.order-form-grid input:focus,.order-form-grid textarea:focus{border-color:#8d68ff;box-shadow:0 0 0 4px rgba(124,77,255,.10);background:#fff;}
.order-form-grid .full{grid-column:1/-1;}
.checkout-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid #efe5f7;}
.order-pay-button{appearance:none;border:0;border-radius:999px;background:linear-gradient(135deg,#7c4dff,#6840da);color:#fff;min-height:48px;padding:0 24px;font-weight:900;font-size:14px;cursor:pointer;box-shadow:0 14px 28px rgba(124,77,255,.24);transition:transform .18s ease,box-shadow .18s ease;}
.order-pay-button:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(124,77,255,.30);}
.paypal-note{margin:0;color:#746985;font-size:12px;line-height:1.45;text-align:right;max-width:220px;}
@media(max-width:900px){.order-layout{grid-template-columns:1fr}.order-summary-card{max-width:520px;margin:0 auto;width:100%;}.checkout-actions{align-items:stretch;flex-direction:column}.paypal-note{text-align:left;max-width:none}.order-pay-button{width:100%;}}
@media(max-width:560px){.memorial-card-order-page{padding:24px 14px 52px}.order-heading{text-align:left}.order-form-card{padding:18px}.order-form-grid{grid-template-columns:1fr}.summary-content h2,.form-section-title h2{font-size:19px}}


.preview-wrap{position:relative;min-height:220px;display:grid;place-items:center;}
.preview-loader{position:absolute;inset:16px;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;border-radius:18px;background:linear-gradient(145deg,#fff,#f7f0ff);color:#3a294f;transition:opacity .22s ease,visibility .22s ease;}
.preview-loader strong{font-size:15px;font-weight:900;}
.preview-loader span{font-size:12px;color:#746985;}
.preview-loader-ring{width:48px;height:48px;border-radius:50%;border:4px solid #eadff4;border-top-color:#7c4dff;animation:previewSpin .9s linear infinite;margin-bottom:5px;}
@keyframes previewSpin{to{transform:rotate(360deg)}}
.order-preview-img{opacity:0;transition:opacity .24s ease;}
.order-preview-ready .preview-loader{opacity:0;visibility:hidden;}
.order-preview-ready .order-preview-img{opacity:1;}
.order-preview-error .preview-loader strong{font-size:0;}
.order-preview-error .preview-loader strong:after{content:'Preview could not be loaded';font-size:15px;}
.coupon-toggle.full{grid-column:1/-1;background:#fbf7ff;border:1px dashed #d8c7ef;border-radius:16px;padding:12px 14px;}
.coupon-toggle-button{appearance:none;border:0;background:transparent;color:#6b4b8a;font-weight:900;font-size:14px;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:4px;}
.coupon-panel{margin-top:12px;display:grid;gap:8px;}
.coupon-panel[hidden]{display:none!important;}
.coupon-panel p{margin:0;color:#776a86;font-size:12px;line-height:1.45;}
.coupon-panel label{display:flex;flex-direction:column;gap:6px;color:#493b5b;font-size:13px;font-weight:800;}


.apply-coupon-button{appearance:none;border:0;border-radius:999px;background:#2f2142;color:#fff;width:max-content;padding:10px 17px;font-weight:900;font-size:13px;cursor:pointer;box-shadow:0 10px 20px rgba(47,33,66,.16);transition:transform .18s ease,box-shadow .18s ease;}
.apply-coupon-button:hover{transform:translateY(-1px);box-shadow:0 14px 26px rgba(47,33,66,.22);}
.order-received-page{min-height:calc(100vh - 160px);display:grid;place-items:center;}
.order-received-card{width:min(760px,100%);background:#fff;border:1px solid #eadff4;border-radius:30px;padding:42px 38px;text-align:center;box-shadow:0 26px 74px rgba(46,28,70,.12);position:relative;overflow:hidden;}
.order-received-card:before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top left,rgba(124,77,255,.12),transparent 38%),radial-gradient(circle at bottom right,rgba(239,218,255,.55),transparent 42%);pointer-events:none;}
.order-received-card>*{position:relative;z-index:1;}
.order-received-icon{width:74px;height:74px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#7c4dff,#bca2ff);color:#fff;font-size:38px;font-weight:900;box-shadow:0 18px 34px rgba(124,77,255,.25);}
.order-received-card h1{margin:0;color:#21102f;font-size:clamp(28px,4vw,42px);line-height:1.08;font-weight:900;letter-spacing:-.04em;}
.order-received-intro{max-width:610px;margin:14px auto 0;color:#6e637b;font-size:15px;line-height:1.7;}
.order-received-summary{margin:26px auto 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;text-align:left;}
.order-received-summary div{background:#fbf7ff;border:1px solid #eadff4;border-radius:18px;padding:14px 15px;}
.order-received-summary span{display:block;color:#7a6f89;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px;}
.order-received-summary strong{display:block;color:#21102f;font-size:15px;font-weight:900;word-break:break-word;}
.order-received-actions{margin-top:28px;display:flex;justify-content:center;}
.return-memorial-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:999px;background:linear-gradient(135deg,#7c4dff,#6840da);color:#fff!important;text-decoration:none;font-weight:900;box-shadow:0 14px 30px rgba(124,77,255,.24);transition:transform .18s ease,box-shadow .18s ease;}
.return-memorial-button:hover{transform:translateY(-1px);box-shadow:0 18px 36px rgba(124,77,255,.30);}
@media(max-width:680px){.order-received-card{padding:32px 20px;border-radius:24px;text-align:left}.order-received-icon{margin-left:0}.order-received-summary{grid-template-columns:1fr}.order-received-actions{justify-content:stretch}.return-memorial-button{width:100%;}}

/* v3.0.7 coupon and confirmation polish */
.coupon-apply-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:2px}.coupon-balance-note{color:#5f536f;font-size:12px;font-weight:800}.coupon-feedback.is-error{color:#9b2d2d!important;font-weight:800}.coupon-feedback.is-success{color:#247545!important;font-weight:800}.order-price-box{position:relative;overflow:hidden}.order-price-box:before{content:'';position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#071957,#c7901f,#745b97)}.order-received-page{background:radial-gradient(circle at top left,rgba(199,144,31,.14),transparent 34%),linear-gradient(180deg,#ffffff 0%,#f8f3ff 100%)}.order-received-wrap{width:min(880px,100%);margin:0 auto}.order-received-card{padding:0;text-align:left;border-radius:34px}.order-received-ribbon{height:12px;background:linear-gradient(90deg,#071957 0%,#745b97 48%,#c7901f 100%)}.order-received-card .eyebrow,.order-received-card h1,.order-received-card .order-received-intro,.order-received-card .order-received-summary,.order-received-card .order-received-next,.order-received-card .order-received-actions{margin-left:42px;margin-right:42px}.order-received-icon{margin:34px 42px 18px}.order-received-card h1{font-size:clamp(30px,4.3vw,48px);max-width:680px}.order-received-intro{max-width:680px;margin-top:14px!important}.order-received-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:28px!important}.order-received-next{margin-top:22px!important;background:#fffaf1;border:1px solid rgba(199,144,31,.22);border-radius:20px;padding:18px 20px}.order-received-next h2{margin:0 0 6px;color:#071957;font-size:18px}.order-received-next p{margin:0;color:#61566d;line-height:1.6}.order-received-actions{justify-content:flex-start;margin-top:26px!important;margin-bottom:38px}@media(max-width:680px){.coupon-apply-row{align-items:stretch;flex-direction:column}.apply-coupon-button{width:100%}.order-received-card .eyebrow,.order-received-card h1,.order-received-card .order-received-intro,.order-received-card .order-received-summary,.order-received-card .order-received-next,.order-received-card .order-received-actions{margin-left:22px;margin-right:22px}.order-received-icon{margin-left:22px}.order-received-summary{grid-template-columns:1fr}.order-received-actions{margin-bottom:28px}.return-memorial-button{width:100%}}

/* v3.0.8 cleaner order received confirmation */
.order-received-page{min-height:calc(100vh - 140px);background:linear-gradient(180deg,#fff 0%,#faf7ff 100%);display:grid;place-items:center;padding:28px 16px;}
.order-received-card{width:min(760px,100%);background:#fff;border:0!important;border-radius:28px;padding:42px 38px;text-align:center;box-shadow:0 22px 60px rgba(34,16,47,.10);overflow:visible;}
.order-received-card:before,.order-received-ribbon{display:none!important;}
.order-received-card .eyebrow,.order-received-card h1,.order-received-card .order-received-intro,.order-received-card .order-received-summary,.order-received-card .order-received-next,.order-received-card .order-received-actions{margin-left:auto!important;margin-right:auto!important;}
.order-received-check{width:auto;height:auto;margin:0 auto 14px;background:transparent;color:#2f9d52;font-size:58px;line-height:1;font-weight:900;text-align:center;text-shadow:none;}
.order-received-icon{display:none!important;}
.order-received-card h1{font-size:clamp(28px,4vw,44px);max-width:680px;text-align:center;}
.order-received-intro{text-align:center;}
.order-received-summary{max-width:650px;}
.order-received-next{max-width:650px;text-align:left;}
.order-received-actions{justify-content:center!important;margin-bottom:0!important;}
@media(max-width:680px){.order-received-card{padding:34px 22px;border-radius:22px}.order-received-check{font-size:50px}.order-received-card h1{text-align:left}.order-received-intro{text-align:left}.order-received-actions{justify-content:stretch!important}}


/* v3.0.9 scoped order confirmation fix */
.order-confirmation-page{
    min-height:calc(100vh - 150px);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:34px 16px 64px;
    background:linear-gradient(180deg,#fff 0%,#fbf8ff 100%);
    font-family:Inter,Arial,sans-serif;
    color:#21102f;
}
.order-confirmation-card{
    width:min(760px,100%);
    background:#fff;
    border:0;
    border-radius:28px;
    padding:42px 38px;
    text-align:center;
    box-shadow:0 18px 50px rgba(34,16,47,.10);
}
.order-confirmation-check{
    display:block;
    margin:0 auto 14px;
    color:#2f9d52;
    font-size:58px;
    line-height:1;
    font-weight:900;
}
.order-confirmation-eyebrow{
    margin:0 0 10px;
    color:#6b4b8a;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.16em;
}
.order-confirmation-card h1{
    margin:0 auto;
    max-width:650px;
    color:#21102f;
    font-size:clamp(28px,4vw,42px);
    line-height:1.08;
    font-weight:900;
    letter-spacing:-.04em;
}
.order-confirmation-intro{
    max-width:620px;
    margin:14px auto 0;
    color:#665a74;
    font-size:15px;
    line-height:1.65;
}
.order-confirmation-summary{
    max-width:650px;
    margin:24px auto 0;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    text-align:left;
}
.order-confirmation-summary div{
    background:#fbf8ff;
    border:1px solid #ece4f4;
    border-radius:16px;
    padding:14px 15px;
}
.order-confirmation-summary span{
    display:block;
    color:#766a84;
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
    margin-bottom:6px;
}
.order-confirmation-summary strong{
    display:block;
    color:#21102f;
    font-size:15px;
    font-weight:900;
    word-break:break-word;
}
.order-confirmation-next{
    max-width:650px;
    margin:22px auto 0;
    background:#f8f8f8;
    border:1px solid #e5e5e5;
    border-radius:18px;
    padding:18px 20px;
    text-align:left;
}
.order-confirmation-next h2{margin:0 0 6px;color:#2b2b2b;font-size:18px;font-weight:900;}
.order-confirmation-next p{margin:0;color:#606060;line-height:1.6;}
.order-confirmation-actions{margin-top:26px;display:flex;justify-content:center;}
@media(max-width:680px){
    .order-confirmation-page{padding:24px 14px 52px;align-items:flex-start;}
    .order-confirmation-card{padding:32px 20px;border-radius:22px;text-align:left;}
    .order-confirmation-check{margin-left:0;font-size:50px;text-align:left;}
    .order-confirmation-card h1{font-size:30px;}
    .order-confirmation-summary{grid-template-columns:1fr;}
    .order-confirmation-actions{justify-content:stretch;}
    .order-confirmation-actions .return-memorial-button{width:100%;}
}

/* v3.0.28 order button sizing */
.order-pay-button{min-height:60px!important;padding:0 34px!important;font-size:17px!important;letter-spacing:.01em!important;}
.checkout-actions{align-items:center!important;}
@media(max-width:900px){.order-pay-button{width:100%!important;min-height:58px!important;font-size:16px!important;}}


/* v3.0.29 order button/status refinements */
.order-pay-button{display:inline-flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;line-height:1.1!important;min-width:260px!important;}
.order-pay-button span{display:block!important;font-weight:900!important;}
.order-pay-button strong{display:block!important;font-size:1.02em!important;font-weight:1000!important;}
.order-pay-button.is-free-order{min-height:70px!important;padding:10px 38px!important;background:linear-gradient(135deg,#24a865,#168451)!important;box-shadow:0 18px 34px rgba(36,168,101,.26)!important;}
.order-status-page{min-height:calc(100vh - 140px);padding:42px 16px 70px;background:linear-gradient(135deg,#fbf7ff 0%,#fff8ef 100%);}
.order-status-shell{width:min(1060px,100%);margin:0 auto;}
.order-status-card{background:#fff;border:1px solid rgba(124,92,255,.14);border-radius:30px;box-shadow:0 24px 70px rgba(48,39,68,.12);padding:30px;overflow:hidden;}
.order-status-hero{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;border-bottom:1px solid #eee7f4;padding-bottom:22px;margin-bottom:24px;}
.order-status-eyebrow{margin:0 0 8px;text-transform:uppercase;letter-spacing:.14em;font-weight:1000;font-size:12px;color:#7c5cff;}
.order-status-hero h1,.order-status-error h1{margin:0 0 10px;font-size:clamp(34px,5vw,54px);line-height:.98;color:#30283d;}
.order-status-hero p,.order-status-error p{margin:0;color:#6d6178;line-height:1.6;}
.order-status-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:10px 16px;font-weight:1000;font-size:13px;white-space:nowrap;background:#fff3c7;color:#7a5400;border:1px solid #ffe39c;}
.order-status-pill.pending-print{background:#eef4ff;color:#224e92;border-color:#cfe0ff;}
.order-status-pill.dispatched{background:#e8f8ef;color:#17643a;border-color:#bde8cf;}
.order-status-grid{display:grid;grid-template-columns:220px 1fr;gap:26px;align-items:start;margin-bottom:24px;}
.order-status-preview{background:#fbf9fd;border:1px solid #eee7f4;border-radius:24px;padding:18px;text-align:center;}
.order-status-preview img{display:block;width:150px;max-width:100%;height:auto;margin:0 auto 10px;border-radius:14px;border:1px solid #eee7f4;background:#fff;}
.order-status-preview span{color:#80748d;font-size:12px;font-weight:800;}
.order-status-summary{background:#fbf9fd;border:1px solid #eee7f4;border-radius:24px;padding:20px;}
.order-status-summary h2{margin:0 0 14px;font-size:22px;color:#30283d;}
.status-row{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #eee7f4;color:#665a72;}
.status-row strong{color:#30283d;text-align:right;}
.status-row.total{border-bottom:0;font-size:18px;font-weight:1000;color:#30283d;}
.order-status-info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px;}
.order-status-info-grid section{background:#fff;border:1px solid #eee7f4;border-radius:22px;padding:18px;box-shadow:0 10px 28px rgba(48,39,68,.06);}
.order-status-info-grid strong{display:block;margin-bottom:9px;color:#30283d;font-size:14px;}
.order-status-info-grid span,.order-status-info-grid small{display:block;color:#6d6178;line-height:1.45;font-size:13px;}
.order-status-actions{display:flex;justify-content:flex-end;}
.order-status-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:999px;background:linear-gradient(135deg,#7c5cff,#6840da);color:#fff!important;font-weight:1000;padding:14px 24px;box-shadow:0 16px 34px rgba(124,92,255,.23);}
.order-status-error{text-align:center;max-width:680px;margin:0 auto;}
.status-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#fff3c7;color:#7a5400;font-weight:1000;font-size:28px;}
@media(max-width:760px){.order-status-card{padding:22px;border-radius:24px}.order-status-hero{display:block}.order-status-pill{margin-top:16px}.order-status-grid,.order-status-info-grid{grid-template-columns:1fr}.order-status-actions{justify-content:stretch}.order-status-button{width:100%;}.order-pay-button{width:100%!important;min-width:0!important;}}
