/* Customer catalog uses the Cards base, category-cards and purchase-history styles.
   Only invitation-specific media sizing and checkout layout belong here. */
[hidden]{display:none!important}
#notice:empty{display:none}
.invitation-store .product-card .thumb{aspect-ratio:3/4}
.invitation-store .thumb canvas{display:block;width:100%;height:100%}
.store-order-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.checkout-panel{display:grid;gap:12px;margin:18px 0}
.checkout-panel .inline-check{font-size:14px;line-height:1.5}
.checkout-panel input[type=checkbox]{flex:none;width:20px;height:20px;accent-color:#88462f}
.checkout-panel button{width:100%}
.checkout-panel [role=status]{font-size:14px}
.paid-note{color:#32634e}
.store-editor .private-top,.store-editor .cloud-draft,.store-editor #selected-price{display:none}
/* Undo the standalone preview header, so Cards owns the customer navigation. */
.store-editor header.top{display:block;padding:0;background:var(--bg)}
.store-editor header.top img{height:auto;object-fit:contain}
.store-editor main{max-width:1240px;padding:24px 28px 48px}
.store-editor main>h1{font-size:clamp(1.6rem,3vw,2.2rem);margin:12px 0 24px}
.store-editor .workspace{grid-template-columns:minmax(0,1fr) minmax(320px,440px);gap:32px}
.store-editor .preview{top:170px}
.store-editor .settings{border-color:var(--line);background:var(--paper);padding:22px;min-width:0;scroll-margin-top:12px}
.store-editor #launch-price{margin-top:0}
.store-editor .customer-tabs{max-width:none}
.store-editor .fields input,.store-editor .fields select{border-color:var(--line);background:var(--paper);border-radius:12px;min-height:48px}
.store-editor #generate,.store-editor #downloads .btn{width:100%;justify-content:center;min-height:48px}
.store-editor #downloads{overflow-wrap:anywhere}
.store-editor .btn{justify-content:center}
.store-editor .purchase-history-heading h2{font-weight:600}
@media(max-width:700px){
 .invitation-store nav.main{flex-wrap:wrap}
 .store-editor main{padding:12px 16px 32px}
 .store-editor .workspace{grid-template-columns:1fr;gap:18px}
 .store-editor .preview{position:relative;top:auto}
 .store-editor main>h1{font-size:1.6rem;margin:10px 0 16px}
 .store-editor .settings{padding:16px}
 .store-editor .customer-tabs{margin-bottom:16px}
 .store-editor .customer-tab{font-size:.85rem}
 .checkout-panel button{min-height:44px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media(max-width:700px){
 body.store-editor{overflow:hidden}
 .store-editor header.top{display:none}
 .store-editor main{position:fixed;inset:var(--customer-viewport-top,0px) 0 auto;height:var(--customer-viewport-height,100dvh);max-width:none;padding:0 0 calc(68px + env(safe-area-inset-bottom));display:flex;flex-direction:column;overflow:hidden}
 .store-editor main>.product-back,.store-editor main>h1{display:none}
 .store-editor .customer-mobile-bar{display:flex;flex:none;height:48px;align-items:center;gap:4px;padding:0 8px;border-bottom:1px solid var(--line);background:var(--bg);z-index:22}
 .store-editor .workspace{display:flex;flex-direction:column;flex:1;min-height:0;gap:0;align-items:stretch}
 .store-editor .preview{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;padding:8px 14px;background:#f2e9df;container-type:size}
 .store-editor #animated{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
 .store-editor #lm-monster-preview{width:min(100%,calc((100cqh - 62px) * .75));max-width:420px}
 .store-editor .sample{display:none}
 .store-editor .lm-mp-transport{width:max(100%,200px);max-width:calc(100vw - 28px);position:relative;left:50%;transform:translateX(-50%)}
 .store-editor #lm-monster-preview .lm-mp-buttons button{min-height:30px;padding:4px;font-size:12px}
 .store-editor #lm-monster-preview .lm-mp-open{font-size:12px;padding:8px 14px;min-height:36px;white-space:nowrap}
 .store-editor .settings{flex:0 0 clamp(210px,calc(var(--customer-viewport-height,100dvh) * .34),300px);min-height:0;padding:12px 16px;border:0;border-top:1px solid var(--line);border-radius:0;overflow-y:auto;overscroll-behavior:contain}
 .store-editor #launch-price{font-size:12px;margin:0 0 10px}
 .store-editor .customer-tabs{position:absolute;bottom:0;left:0;right:0;z-index:25;grid-template-columns:repeat(4,minmax(0,1fr));margin:0}
 .store-editor .customer-tab{font-size:.72rem}
 .store-editor[data-typing=true] .settings{flex-basis:45%}
 .store-editor[data-mobile-menu=true] header.top{display:block;position:fixed;z-index:30;top:calc(var(--customer-viewport-top,0px) + 48px);right:8px;left:auto;width:min(260px,calc(100vw - 16px));max-height:calc(var(--customer-viewport-height,100dvh) - 56px);overflow-y:auto;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 24px #49372c30}
 .store-editor[data-mobile-menu=true] header.top .wrap{display:flex;flex-direction:column;align-items:stretch;padding:8px;gap:8px;min-height:0}
 .store-editor[data-mobile-menu=true] header.top .brand{display:none}
 .store-editor[data-mobile-menu=true] header.top nav.main{display:flex;flex-direction:column;gap:0;width:100%;margin:0}
 .store-editor[data-mobile-menu=true] header.top nav.main>*{padding:10px 12px;text-align:left;justify-content:flex-start;font-size:.86rem}
 .store-editor[data-mobile-menu=true] header.top .site-language-control{align-self:flex-start}
 .store-editor[data-mobile-menu=true] header.top nav.main a::after{display:none}
}

#store-preview-stages{position:fixed;inset:0 auto auto -10000px;width:664px;visibility:hidden;pointer-events:none}
.invitation-privacy{border-top:1px solid var(--line);padding:8px 0;text-align:center;font-size:.85rem}
#invitation-catalog #heading{max-width:24ch;text-wrap:balance}
#invitation-catalog .catalog-price[hidden]{display:none}
.invitation-store .sample-cover{width:100%;padding:0;border:0;cursor:pointer;font:inherit}
.invitation-store .sample-cover-label{position:absolute;bottom:8px;left:8px;display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:99px;color:white;background:#49342ce8;font-size:.8rem;font-weight:600;pointer-events:none}
.sample-cover-fallback{display:grid;height:100%;place-items:center;padding:12px;font-weight:600;color:var(--ink)}
.invitation-store .sample-cover-label span{font-size:.75em}
.invitation-store #products .card-action{min-height:44px;text-decoration:none}
#invitation-sample{width:min(420px,calc(100% - 24px));max-height:94dvh;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--paper);color:var(--ink)}
#invitation-sample::backdrop{background:#352a23a8}
.sample-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.sample-header h2{font-size:1.2rem;margin:0}
.sample-header button{font:inherit;color:inherit;min-height:44px;padding-inline:10px;border:0;background:transparent;text-decoration:underline;cursor:pointer}
#sample-player{width:min(100%,47dvh);margin:auto}
#sample-edit{display:flex;margin-top:10px;justify-content:center}
#sample-status:empty{display:none}
@media(max-width:700px){#invitation-catalog #heading{font-size:clamp(1.6rem,7vw,2.2rem)}#products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
