/* The selected F identity, applied to every step of the existing buyer flow. */
body.buyer-theme{--green:var(--pw-accent);--green-dark:var(--pw-accent-hover);--paper:#fff;--ink:var(--pw-text);--muted:var(--pw-text-secondary);--line:var(--pw-line);--light:var(--pw-accent-soft);--white:#fff;--orange:var(--pw-accent);--shadow:0 18px 60px #24303b18;background:#fff;color:var(--pw-text);font:400 16px/1.5 var(--pw-font);font-variant-numeric:tabular-nums}
.buyer-theme :is(button,input,select,textarea){font-family:var(--pw-font)}
.buyer-theme :is(h1,h2,h3,h4){font-family:var(--pw-font);font-weight:650;line-height:1.3;letter-spacing:-.5px;overflow-wrap:anywhere}
.buyer-theme :is(p,small,span,b,label){overflow-wrap:anywhere}
.buyer-theme :is(button,a,input,select,summary,[tabindex]):focus-visible{outline:3px solid var(--pw-accent);outline-offset:4px}
.buyer-theme input[type=checkbox]{accent-color:var(--pw-accent);width:20px;height:20px;flex:none}
.buyer-theme .buyer-skip-link{position:fixed;top:-100px;left:14px;z-index:100;padding:10px 16px;border:2px solid var(--pw-accent);border-radius:12px;background:#fff;color:var(--pw-accent)}
.buyer-theme .buyer-skip-link:focus{top:10px}
.buyer-theme .prototype-note{background:#faf8fe;color:var(--pw-text-secondary);border-bottom:1px solid var(--pw-line);min-height:32px;font-size:12px;letter-spacing:0;padding:6px 14px}
.buyer-theme .note-dot{background:var(--pw-accent)}
.buyer-theme .header{max-width:1240px;padding:24px 28px;border-color:var(--pw-line);gap:14px}
.buyer-theme .brand{gap:8px}
.buyer-theme .brand-mark{font:750 26px/1 var(--pw-font);color:var(--pw-accent);background:none;border-radius:0;width:auto;height:auto;min-width:29px;letter-spacing:-1.5px}
.buyer-theme .brand-name{font:750 22px/1.3 var(--pw-font);letter-spacing:-.8px;color:var(--pw-text)}
.buyer-theme .brand-caption{display:none}
.buyer-theme :is(.icon-button,.cart-button){min-height:44px;height:44px;border-radius:999px;font-size:14px}
.buyer-theme .icon-button{width:44px;border-color:var(--pw-line);color:var(--pw-text);background:#fff}
.buyer-theme .cart-button{background:var(--pw-accent);padding:0 18px;color:#fff}
.buyer-theme .count{font-size:12px;min-width:22px;height:22px;line-height:22px}
.buyer-theme .page{max-width:1240px;padding:32px 28px 120px}
.buyer-theme .content-narrow{max-width:780px}
.buyer-theme .hero{display:block;padding:0 0 24px}
.buyer-theme .hero-copy{max-width:920px}
.buyer-theme .hero h1{font:650 36px/1.2 var(--pw-font);letter-spacing:-1px;margin:10px 0 14px;max-width:100%}
.buyer-theme .hero h1 em{font-style:normal;color:inherit}
.buyer-theme .hero-description{font-size:16px;line-height:1.7;color:var(--pw-text-secondary);max-width:65ch}
.buyer-theme .hero-art{display:none}
.buyer-theme .eyebrow{font-size:13px;line-height:1.5;letter-spacing:0;text-transform:none;color:var(--pw-text-secondary)}
.buyer-theme .hero label{display:block;font-size:14px;font-weight:600;margin:22px 0 8px}
.buyer-theme #buyer-group{max-width:420px;min-height:48px;padding:11px 14px;border:1px solid var(--pw-field-border);border-radius:12px;background:#fff;color:var(--pw-text);font:400 16px/1.5 var(--pw-font)}
.buyer-theme .group-chip{font-size:13px;line-height:1.5;background:var(--pw-accent-soft);color:var(--pw-accent);margin-top:16px;padding:8px 13px}
.buyer-theme :is(.fine,.sales-window,.secure,.download-caption){font-size:12px!important;line-height:1.65;color:var(--pw-text-secondary)}
.buyer-theme .hero .fine{margin-top:12px}
.buyer-theme .sales-window{max-width:65ch;margin-top:10px}
.buyer-theme .gallery-top{padding:22px 0;border-color:var(--pw-line);flex-wrap:wrap}
.buyer-theme .tabs{background:#f3f4f6;border-radius:999px;padding:4px;gap:4px;max-width:100%}
.buyer-theme .tab{min-height:44px;font-size:14px;padding:10px 17px;line-height:1.3;color:var(--pw-text-secondary)}
.buyer-theme .tab small{font-size:12px;opacity:1}
.buyer-theme .tab.active{color:var(--pw-accent);background:#fff;box-shadow:0 1px 4px #24303b0b}
.buyer-theme .gallery-tip{font-size:12px;color:var(--pw-text-secondary)}
.buyer-theme .photo-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 20px}
.buyer-theme .photo-card{border:1px solid var(--pw-line);border-radius:22px;padding:10px 10px 14px;background:#fff;min-width:0;align-self:start}
.buyer-theme .photo-card.is-common{grid-column:span 2}
.buyer-theme .photo-cover{border-radius:16px;background:#f3f4f6;aspect-ratio:3/4}
.buyer-theme .is-common .photo-cover{aspect-ratio:16/9}
.buyer-theme .is-common .photo-cover img{object-fit:contain}
.buyer-theme .photo-cover img{transition:none;object-fit:contain;background:#f7f8fa}
.buyer-theme .photo-cover:hover img{transform:none}
.buyer-theme .heart{width:44px;height:44px;top:8px;right:8px;background:#fffffff2;color:var(--pw-text-secondary);border:1px solid var(--pw-line);box-shadow:none}
.buyer-theme .heart.active{background:var(--pw-accent-soft);border-color:var(--pw-accent-edge);color:var(--pw-accent)}
.buyer-theme .heart svg{width:18px;height:18px}
.buyer-theme .photo-number{font-size:12px;letter-spacing:0;background:#2b353ac9;border-radius:8px;padding:4px 8px}
.buyer-theme .photo-added{font-size:12px;top:10px;left:8px;padding:6px 10px;border-radius:999px;background:var(--pw-accent);color:#fff;max-width:calc(100% - 62px)}
.buyer-theme .photo-meta{padding:12px 3px 0;gap:8px;flex-wrap:wrap;align-items:center}
.buyer-theme .photo-meta h3{font-size:14px;line-height:1.5;letter-spacing:0;flex:1 1 120px}
.buyer-theme .add-small{min-height:44px;padding:10px 14px;border-radius:999px;font-size:13px;line-height:1.3;background:var(--pw-accent-soft);color:var(--pw-accent);justify-content:center;flex:1 1 120px}
.buyer-theme .add-small:disabled{background:var(--pw-disabled-bg);color:var(--pw-disabled-text);opacity:1}
.buyer-theme .photo-sub{font-size:12px;color:var(--pw-text-secondary);margin:8px 3px 0;line-height:1.6}
.buyer-theme .footnote{font-size:12px;color:var(--pw-text-secondary);line-height:1.7;gap:24px;padding-top:20px;margin-top:36px;border-color:var(--pw-line)}
.buyer-theme .footnote .text-link{min-height:36px;display:inline-flex;align-items:center;font-size:12px}
.buyer-theme :is(.text-link,.back,.logout){color:var(--pw-accent);font-size:14px;line-height:1.5;min-height:44px;display:inline-flex;align-items:center;gap:6px}
.buyer-theme .button{min-height:48px;border:1px solid transparent;border-radius:999px;background:var(--pw-accent);color:#fff;font:600 16px/1.4 var(--pw-font);padding:11px 20px;gap:9px;transition:background 120ms}
.buyer-theme .button:hover:not(:disabled){background:var(--pw-accent-hover);color:#fff}
.buyer-theme .button:is(.secondary,.outline){background:#fff;border-color:var(--pw-accent);color:var(--pw-accent)}
.buyer-theme .button:is(.secondary,.outline):hover:not(:disabled){background:var(--pw-accent-soft)}
.buyer-theme .button:disabled{background:var(--pw-disabled-bg);border-color:var(--pw-line);color:var(--pw-disabled-text);opacity:1;cursor:not-allowed}
.buyer-theme .floating-cart{width:min(500px,calc(100% - 32px));padding:16px 22px;border-radius:999px;background:var(--pw-accent);color:#fff;box-shadow:0 8px 26px #7440cf28;min-height:56px}
.buyer-theme .floating-cart b{font-size:15px;line-height:1.5}
.buyer-theme .floating-cart span{font-size:14px;white-space:nowrap}
.buyer-theme .page-title{font:650 34px/1.2 var(--pw-font);letter-spacing:-.8px;margin:0 0 12px}
.buyer-theme .subtitle{font-size:16px;line-height:1.7;color:var(--pw-text-secondary)}
.buyer-theme :is(.panel,.order,.cart-line,.purchase){background:#fff;border:1px solid var(--pw-line);border-radius:24px;padding:24px}
.buyer-theme .panel{margin-top:24px}
.buyer-theme .cart-list{gap:16px;margin-top:26px}
.buyer-theme .cart-line{padding:18px;gap:18px}
.buyer-theme .cart-thumb{width:90px;border-radius:14px;background:#f7f8fa}
.buyer-theme .cart-details h3{font-size:16px;line-height:1.5;margin-right:28px}
.buyer-theme :is(.line-product,.line-action,.photo-context){font-size:13px;line-height:1.65;color:var(--pw-text-secondary)}
.buyer-theme .line-product{margin-top:8px}
.buyer-theme .line-price{font-size:16px;color:var(--pw-text)}
.buyer-theme .line-bottom{flex-wrap:wrap;gap:12px;margin-top:16px}
.buyer-theme .remove{min-width:44px;min-height:44px;right:8px;top:8px;color:var(--pw-text-secondary);border-radius:999px}
.buyer-theme .remove:hover{background:var(--pw-danger-soft);color:var(--pw-danger)}
.buyer-theme .quantity{background:#f3f4f6;border-radius:999px;gap:3px}
.buyer-theme .quantity button{width:44px;height:44px;border-radius:999px;color:var(--pw-accent);font-size:20px}
.buyer-theme .quantity button:hover:not(:disabled){background:var(--pw-accent-soft)}
.buyer-theme .quantity span{font-size:16px;min-width:24px;color:var(--pw-text)}
.buyer-theme .summary-row{font-size:16px;line-height:1.5;gap:16px}
.buyer-theme .summary-row.total{font-size:24px}
.buyer-theme .empty{padding:44px 18px}
.buyer-theme .empty h2{font:650 26px/1.3 var(--pw-font)}
.buyer-theme .empty p{font-size:16px;max-width:48ch;color:var(--pw-text-secondary);margin:12px auto}
.buyer-theme .empty-icon{background:var(--pw-accent-soft);color:var(--pw-accent)}
.buyer-theme .steps{font-size:12px;gap:8px;color:var(--pw-text-secondary);margin:22px 0 28px;flex-wrap:wrap}
.buyer-theme .step{gap:7px;white-space:normal}
.buyer-theme .step i{width:26px;height:26px;font-size:12px;flex:none;background:#f0f2f5;color:var(--pw-text-secondary)}
.buyer-theme .step.active{color:var(--pw-accent)}
.buyer-theme .step.active i{background:var(--pw-accent);color:#fff}
.buyer-theme .steps .dash{background:var(--pw-line);width:18px}
.buyer-theme .auth-box{max-width:460px;margin:10px auto 0;border:1px solid var(--pw-line);border-radius:28px;padding:28px}
.buyer-theme .auth-box .page-title{font-size:30px}
.buyer-theme .auth-icon{color:var(--pw-accent);background:var(--pw-accent-soft);border-radius:16px}
.buyer-theme .field{margin-top:24px}
.buyer-theme .field label{font-size:14px;line-height:1.5;margin-bottom:8px}
.buyer-theme .field input{height:52px;border:1px solid var(--pw-field-border);border-radius:12px;background:#fff;color:var(--pw-text);font:400 18px/1.5 var(--pw-font);letter-spacing:0;padding:12px 14px}
.buyer-theme .field input.code{font-size:24px;letter-spacing:.4em}
.buyer-theme .field-error{font-size:13px;line-height:1.6;color:var(--pw-danger);min-height:20px}
.buyer-theme .field input[aria-invalid=true]{border-color:var(--pw-danger)}
.buyer-theme .demo-tip{background:var(--pw-warning-soft);color:#785700;border:1px solid #e7dba8;border-radius:14px;padding:14px 16px;font-size:13px;line-height:1.65}
.buyer-theme .auth-footer{font-size:13px;line-height:1.6;color:var(--pw-text-secondary)}
.buyer-theme .payment-total{font-size:38px;line-height:1.2;letter-spacing:-1px;color:var(--pw-text)}
.buyer-theme .payment-panel{max-width:460px}
.buyer-theme .payment-note{font-size:14px;line-height:1.65;color:var(--pw-text-secondary)}
.buyer-theme :is(.payment-error,.request-error,.file-unavailable){background:var(--pw-danger-soft);border:1px solid #efc0c8;border-radius:14px;padding:14px 16px;font-size:14px;color:var(--pw-danger)}
.buyer-theme .request-error{max-width:1184px;margin:20px auto 0}
.buyer-theme .success-circle{background:var(--pw-success-soft);color:var(--pw-success)}
.buyer-theme .status-chip{font-size:12px;padding:7px 11px;background:var(--pw-success-soft);color:var(--pw-success);border-radius:999px;line-height:1.4}
.buyer-theme .success-items p{font-size:14px}
.buyer-theme .order-item{font-size:14px;color:var(--pw-text);line-height:1.65;gap:16px;padding:10px 0}
.buyer-theme .order-item > span{min-width:0;flex:1}
.buyer-theme .order-item b{flex:none}
.buyer-theme .order-foot{font-size:16px;padding-top:16px;margin-top:14px;border-color:var(--pw-line);gap:12px}
.buyer-theme .order-head{align-items:flex-start;gap:14px}
.buyer-theme .order-head strong{font-size:14px;overflow-wrap:anywhere;min-width:0}
.buyer-theme .order-head .status-chip{flex:none}
.buyer-theme .account-tabs{gap:10px;border:0;background:#f3f4f6;border-radius:999px;padding:4px;margin:24px 0}
.buyer-theme .account-tab{flex:1;min-height:44px;border:0;border-radius:999px;font-size:14px;line-height:1.4;padding:10px;color:var(--pw-text-secondary)}
.buyer-theme .account-tab.active{color:var(--pw-accent);background:#fff}
.buyer-theme .account-top{align-items:flex-start}
.buyer-theme .purchases{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.buyer-theme .purchase{padding:10px;border-radius:22px;min-width:0}
.buyer-theme .purchase > img{border-radius:14px;aspect-ratio:3/4;object-fit:contain;background:#f7f8fa}
.buyer-theme .purchase-info{padding:12px 4px 4px}
.buyer-theme .purchase-info h3{font-size:15px;line-height:1.5}
.buyer-theme .purchase-info .button{min-height:44px;font-size:14px;border-radius:999px;margin-top:14px}
.buyer-theme .file-select{font-size:13px;line-height:1.5;min-height:44px;color:var(--pw-text);align-items:flex-start}
.buyer-theme .file-download-toolbar{gap:10px;flex-wrap:wrap}
.buyer-theme .file-download-toolbar .button{font-size:14px;min-height:44px;padding:10px 16px}
.buyer-theme :is(.file-download-notice,.notice){font-size:14px;background:var(--pw-accent-soft);color:var(--pw-text);border:1px solid var(--pw-accent-edge);border-radius:16px;padding:16px;line-height:1.65}
.buyer-theme .modal-backdrop{background:#2b353a6b;backdrop-filter:none;padding:24px;z-index:60}
.buyer-theme .modal{background:#fff;border:1px solid var(--pw-line);border-radius:28px;max-height:92dvh;box-shadow:var(--shadow)}
.buyer-theme .product-modal{width:min(820px,100%);grid-template-columns:minmax(0,.9fr) minmax(0,1fr)}
.buyer-theme .modal-photo{background:#f7f8fa;min-height:440px;align-self:stretch}
.buyer-theme .modal-photo img{width:100%;height:100%;object-fit:contain}
.buyer-theme .modal-close{width:44px;height:44px;border:1px solid var(--pw-line);background:#fffffff2;color:var(--pw-text-secondary);box-shadow:none;z-index:2}
.buyer-theme .product-options{padding:48px 26px 26px;min-width:0}
.buyer-theme .product-options h2{font:650 26px/1.3 var(--pw-font);margin:8px 0 12px}
.buyer-theme .product-options p{font-size:14px;line-height:1.6;color:var(--pw-text-secondary)}
.buyer-theme .product-options label{font-size:14px;line-height:1.5;margin:22px 0 8px}
.buyer-theme .product-options select{min-height:48px;border:1px solid var(--pw-field-border);border-radius:12px;color:var(--pw-text);font-size:16px;padding:10px 12px;background:#fff}
.buyer-theme .product-options .summary-row > span{font-size:14px!important}
.buyer-theme .product-price{font-size:28px;color:var(--pw-text)}
.buyer-theme .about{padding:32px;max-width:620px}
.buyer-theme .about h2{font:650 28px/1.3 var(--pw-font)}
.buyer-theme .about p{font-size:15px;line-height:1.7;color:var(--pw-text-secondary)}
.buyer-theme .toast{background:var(--pw-text);color:#fff;border-radius:16px;font-size:14px;line-height:1.5;box-shadow:var(--shadow)}
.buyer-theme #network-status:not(:empty){background:#fff;border:1px solid var(--pw-line);color:var(--pw-text-secondary);font-size:13px;border-radius:12px;max-width:calc(100vw - 30px)}
@media(max-width:899px){.buyer-theme .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.buyer-theme .photo-card.is-common{grid-column:1/-1}.buyer-theme .is-common .photo-cover{aspect-ratio:2/1}.buyer-theme .photo-meta h3{flex-basis:100%}}
@media(max-width:599px){.buyer-theme .prototype-note{font-size:11px;line-height:1.5;padding:6px 10px}.buyer-theme .header{padding:18px;gap:12px}.buyer-theme .brand-name{font-size:20px}.buyer-theme .brand-mark{font-size:25px}.buyer-theme .header-actions{gap:8px}.buyer-theme .cart-button{font-size:13px;padding-inline:13px}.buyer-theme .page{padding:26px 18px 115px}.buyer-theme .hero h1{font-size:28px;line-height:1.25;letter-spacing:-.6px;margin-top:10px}.buyer-theme .hero-description{font-size:15px;max-width:none}.buyer-theme .hero-description br{display:none}.buyer-theme .hero .eyebrow{max-width:none}.buyer-theme .hero label{margin-top:20px}.buyer-theme .gallery-top{padding:20px 0}.buyer-theme .tabs{width:100%}.buyer-theme .tab{flex:1;justify-content:center;padding-inline:12px}.buyer-theme .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.buyer-theme .photo-card{padding:8px 8px 12px;border-radius:20px}.buyer-theme .photo-cover{border-radius:14px}.buyer-theme .is-common .photo-cover{aspect-ratio:16/9}.buyer-theme .photo-meta{padding-top:10px}.buyer-theme .photo-meta h3{font-size:13px}.buyer-theme .add-small{font-size:13px;padding:10px 8px}.buyer-theme .heart{width:40px;height:40px;top:6px;right:6px}.buyer-theme .photo-added{top:8px;left:6px;font-size:11px;padding:5px 8px;max-width:calc(100% - 54px)}.buyer-theme .photo-sub{font-size:12px}.buyer-theme .floating-cart{padding:14px 18px}.buyer-theme .floating-cart b{font-size:14px}.buyer-theme .floating-cart span{font-size:13px}.buyer-theme .page-title{font-size:28px}.buyer-theme .subtitle{font-size:15px}.buyer-theme .panel{padding:20px 18px;border-radius:22px}.buyer-theme .cart-line{padding:14px;gap:12px}.buyer-theme .cart-thumb{width:65px;border-radius:10px}.buyer-theme .cart-details h3{font-size:14px;margin-right:25px}.buyer-theme .line-product{font-size:13px;margin-top:8px}.buyer-theme .line-bottom{margin-top:12px}.buyer-theme .quantity button{width:40px;height:44px}.buyer-theme .line-price{font-size:15px}.buyer-theme .auth-box{padding:22px 18px;border-radius:24px}.buyer-theme .auth-box .page-title{font-size:27px}.buyer-theme .steps{gap:6px;font-size:12px}.buyer-theme .steps .dash{width:8px}.buyer-theme .step{gap:4px}.buyer-theme .step i{width:23px;height:23px}.buyer-theme .purchases{grid-template-columns:1fr}.buyer-theme .purchase{display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;padding:12px}.buyer-theme .purchase > img{height:auto;align-self:start}.buyer-theme .purchase-info{padding:0;min-width:0}.buyer-theme .purchase-info .button{font-size:14px}.buyer-theme .account-top .page-title{font-size:27px}.buyer-theme .account-tabs{border-radius:16px}.buyer-theme .account-tab{font-size:13px;padding:10px 7px}.buyer-theme .order{padding:18px}.buyer-theme .order-item{font-size:14px;gap:12px}.buyer-theme .order-head{flex-wrap:wrap}.buyer-theme .footnote{gap:18px;font-size:12px}.buyer-theme .footnote > span{min-width:0;flex:1}.buyer-theme .modal-backdrop{padding:10px;align-items:center}.buyer-theme .modal{max-height:94dvh;border-radius:24px;padding-bottom:env(safe-area-inset-bottom)}.buyer-theme .product-modal{display:block}.buyer-theme .modal-photo{height:210px;min-height:0}.buyer-theme .product-options{padding:22px 20px 24px}.buyer-theme .product-options h2{font-size:24px}.buyer-theme .product-options label{margin-top:18px}.buyer-theme .product-options .button{font-size:15px}.buyer-theme .about{padding:52px 22px 24px}.buyer-theme .payment-total{font-size:34px}.buyer-theme .gallery-tip{display:none}}
@media(max-width:359px){.buyer-theme .header{padding-inline:14px}.buyer-theme .brand-name{font-size:18px}.buyer-theme .cart-button{padding-inline:11px}.buyer-theme .cart-button > span:not(.count){display:none}.buyer-theme .page{padding-inline:14px}.buyer-theme .heart{width:36px;height:36px}.buyer-theme .steps{font-size:11px}.buyer-theme .step i{width:21px;height:21px}.buyer-theme .photo-grid{gap:14px 10px}}
@media(prefers-reduced-motion:reduce){.buyer-theme *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.buyer-theme .text-link{font-size:14px!important;color:var(--pw-accent)!important}
@media(pointer:coarse),(max-width:599px){.buyer-theme .heart{width:44px;height:44px}}

.buyer-theme .hero .group-chip{display:none}
.buyer-theme .buyer-gallery-info{margin:12px 0 0;color:var(--pw-text-secondary);font-size:13px}
.buyer-theme .buyer-gallery-info summary{min-height:44px;display:list-item;padding:12px 0;cursor:pointer;color:var(--pw-accent);font-size:13px}
.buyer-theme .buyer-gallery-info .sales-window{margin-top:0}

.buyer-theme .cart-checkout{margin:0 0 24px;padding:18px 20px;border:1px solid var(--pw-line);border-radius:22px;background:#fff}
.buyer-theme .cart-checkout .summary-row.total{margin-top:0}
.buyer-theme .payment-panel > .button:first-child{margin-top:0;margin-bottom:20px}

/* The image defines the desktop dialog height; product controls scroll separately.
   This preserves the whole frame without letterboxing or cropping on product changes. */
@media(min-width:600px){
 .buyer-theme .product-modal{display:block;position:relative}
 .buyer-theme .product-modal .modal-photo{width:47.3684%;min-height:0;height:auto;background:transparent}
 .buyer-theme .product-modal .modal-photo img{display:block;width:100%;height:auto;object-fit:contain}
 .buyer-theme .product-modal .product-options{position:absolute;inset:0 0 0 47.3684%;overflow-y:auto;overscroll-behavior:contain}
 .buyer-theme .product-modal .product-buybar{position:sticky;bottom:0;background:#fff;padding-top:12px}
}
@media(max-width:599px){
 .buyer-theme .product-modal .modal-photo{height:auto;min-height:0;background:transparent}
 .buyer-theme .product-modal .modal-photo img{display:block;width:100%;height:auto;object-fit:contain}
}

.buyer-theme .product-note{margin-top:16px;font-size:12px;color:var(--pw-text-secondary)}
.buyer-theme .product-note summary{cursor:pointer}
.buyer-theme .product-buybar{margin-top:16px}
.buyer-theme .product-buybar .product-price{margin:0 0 12px}
.buyer-theme .product-buybar .button{margin-top:0}

/* Mobile reading density: photographs are the first task, controls remain easy to tap. */
.buyer-theme :is(.buyer-terms-short,.buyer-full-title){display:none}
@media(max-width:599px){
 body.buyer-theme{font-size:13px;line-height:1.45}
 .buyer-theme .prototype-note{min-height:25px;padding:4px 10px;font-size:10px;line-height:1.45}
 .buyer-theme .header{padding:9px 12px;gap:8px}
 .buyer-theme .brand{gap:5px}
 .buyer-theme .brand-name{font-size:18px;letter-spacing:-.6px}
 .buyer-theme .brand-mark{font-size:23px;min-width:26px}
 .buyer-theme .header-actions{gap:6px}
 .buyer-theme .cart-button{padding-inline:11px;font-size:12px}
 .buyer-theme .count{min-width:20px;height:20px;line-height:20px;font-size:11px}
 .buyer-theme .page{padding:14px 12px 92px}
 .buyer-theme .hero{padding:0 0 4px}
 .buyer-theme .hero h1{font-size:22px;line-height:1.23;letter-spacing:-.45px;margin:0 0 8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
 .buyer-theme .hero .eyebrow{font-size:12px;margin-bottom:6px}
 .buyer-theme .hero-copy:has(#buyer-group) > .eyebrow{display:none}
 .buyer-theme .hero-description{display:none}
 .buyer-theme .buyer-gallery-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;margin-top:10px}
 .buyer-theme .buyer-group-field{min-width:0}
 .buyer-theme .buyer-group-field > label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .buyer-theme #buyer-group{width:100%;max-width:none;min-height:44px;padding:8px 10px;border-radius:10px;font-size:16px}
 .buyer-theme .buyer-gallery-info{margin:0;font-size:12px}
 .buyer-theme .buyer-gallery-info > summary{min-height:44px;padding:11px 2px;font-size:12px;white-space:nowrap}
 .buyer-theme .buyer-terms-wide{display:none}
 .buyer-theme .buyer-terms-short{display:inline}
 .buyer-theme .buyer-gallery-info[open]{grid-column:1/-1}
 .buyer-theme .buyer-full-title{display:block;font-size:13px;line-height:1.5;margin:0 0 10px}
 .buyer-theme .buyer-gallery-controls:not(:has(.buyer-group-field)){display:block}
 .buyer-theme .gallery-top{padding:9px 0 12px}
 .buyer-theme .tabs{padding:3px;gap:2px}
 .buyer-theme .tab{min-height:44px;padding:8px 10px;font-size:12px;gap:5px}
 .buyer-theme .tab small{font-size:11px}
 .buyer-theme .photo-grid{gap:12px 9px}
 .buyer-theme .photo-card{padding:6px 6px 9px;border-radius:16px}
 .buyer-theme .photo-cover{border-radius:11px}
 .buyer-theme .photo-meta{padding-top:6px;gap:4px}
 .buyer-theme .photo-meta h3{font-size:12px;line-height:1.35}
 .buyer-theme .add-small{font-size:12px;padding:8px;min-height:44px;flex-basis:100px}
 .buyer-theme .photo-sub{font-size:11px;line-height:1.4;margin-top:4px}
 .buyer-theme .photo-number{font-size:10px;padding:3px 6px}
 .buyer-theme .photo-added{font-size:10px;padding:4px 7px}
 .buyer-theme .page-title{font-size:23px;line-height:1.2;margin-bottom:7px}
 .buyer-theme .subtitle{font-size:13px;line-height:1.45}
 .buyer-theme .back{font-size:12px;margin-bottom:10px}
 .buyer-theme .steps{font-size:11px;margin:12px 0 14px;gap:5px}
 .buyer-theme .step{gap:3px}
 .buyer-theme .step i{width:21px;height:21px;font-size:11px}
 .buyer-theme .steps .dash{width:6px}
 .buyer-theme .button{font-size:14px;min-height:44px;padding:9px 14px}
 .buyer-theme :is(.panel,.order,.cart-line){padding:12px;border-radius:16px}
 .buyer-theme .panel{margin-top:14px}
 .buyer-theme .cart-checkout{padding:12px;margin:0 0 14px;border-radius:16px}
 .buyer-theme .cart-list{margin-top:14px;gap:10px}
 .buyer-theme .cart-details h3{font-size:13px;line-height:1.35}
 .buyer-theme :is(.line-product,.photo-context){font-size:12px;line-height:1.4}
 .buyer-theme .line-product{margin-top:4px}
 .buyer-theme .line-bottom{margin-top:8px;gap:6px}
 .buyer-theme .line-price{font-size:14px}
 .buyer-theme .summary-row{font-size:14px;margin-bottom:8px}
 .buyer-theme .summary-row.total{font-size:20px}
 .buyer-theme .cart-checkout .button{margin-top:12px}
 .buyer-theme .secure{margin-top:8px}
 .buyer-theme :is(.fine,.sales-window,.secure,.download-caption){font-size:12px!important;line-height:1.45}
 .buyer-theme .auth-box{padding:16px 14px;border-radius:18px}
 .buyer-theme .auth-box .page-title,.buyer-theme .account-top .page-title{font-size:23px}
 .buyer-theme .auth-icon{width:40px;height:40px;margin-bottom:12px}
 .buyer-theme .field{margin-top:16px}
 .buyer-theme .field label{font-size:13px;margin-bottom:5px}
 .buyer-theme .field input{height:46px;font-size:16px;padding:9px 12px}
 .buyer-theme .field input.code{font-size:22px}
 .buyer-theme :is(.demo-tip,.notice,.payment-note,.payment-error,.request-error,.file-unavailable,.file-download-notice){font-size:12px;line-height:1.45;padding:10px 12px;border-radius:12px}
 .buyer-theme .auth-footer{font-size:12px;line-height:1.45}
 .buyer-theme .payment-total{font-size:28px;margin:5px 0}
 .buyer-theme .payment-panel{margin-top:14px}
 .buyer-theme .payment-panel > .button:first-child{margin-bottom:12px}
 .buyer-theme .qr{margin:14px auto}
 .buyer-theme .success-circle{width:48px;height:48px;margin:5px auto 14px}
 .buyer-theme .success-items{margin:14px 0}
 .buyer-theme .order-item{font-size:12px;line-height:1.45;padding:6px 0;gap:8px}
 .buyer-theme .order-head strong{font-size:12px}
 .buyer-theme .order-foot{font-size:14px;padding-top:10px;margin-top:8px}
 .buyer-theme .status-chip{font-size:11px;padding:5px 8px}
 .buyer-theme .account-top{margin-bottom:12px;gap:8px}
 .buyer-theme .account-tabs{margin:14px 0;padding:3px;gap:3px}
 .buyer-theme .account-tab{font-size:12px;padding:8px;min-height:44px}
 .buyer-theme .purchases{gap:10px}
 .buyer-theme .purchase{padding:10px;grid-template-columns:72px minmax(0,1fr);gap:10px;border-radius:16px}
 .buyer-theme .purchase-info h3{font-size:13px}
 .buyer-theme .purchase-info .button{font-size:12px;margin-top:8px}
 .buyer-theme .file-select{font-size:12px}
 .buyer-theme .file-download-toolbar .button{font-size:12px;padding:8px 12px}
 .buyer-theme .floating-cart{padding:10px 14px;min-height:48px;width:calc(100% - 24px)}
 .buyer-theme .floating-cart b{font-size:13px}
 .buyer-theme .floating-cart span{font-size:12px}
 .buyer-theme .footnote{font-size:11px;margin-top:22px;padding-top:14px;gap:12px}
 .buyer-theme .footnote .text-link{font-size:12px!important}
 .buyer-theme .modal-backdrop{padding:8px}
 .buyer-theme .modal{border-radius:18px}
 .buyer-theme .product-options{padding:16px 14px 18px}
 .buyer-theme .product-options h2{font-size:19px;line-height:1.25;margin:5px 0 8px}
 .buyer-theme .product-options :is(p,.photo-context){font-size:12px;line-height:1.4}
 .buyer-theme .product-options .eyebrow{font-size:11px;line-height:1.4}
 .buyer-theme .product-options label{font-size:12px;margin:12px 0 5px}
 .buyer-theme .product-options select{min-height:44px;font-size:16px;padding:8px 10px}
 .buyer-theme .product-options .summary-row{margin-top:12px}
 .buyer-theme .product-options .summary-row > span{font-size:13px!important}
 .buyer-theme .product-price{font-size:22px}
 .buyer-theme .product-note{font-size:12px;margin-top:10px}
 .buyer-theme .product-buybar{margin-top:12px}
 .buyer-theme .product-buybar .product-price{margin-bottom:9px}
 .buyer-theme .product-options .button{font-size:14px}
 .buyer-theme .about{padding:48px 16px 18px}
 .buyer-theme .about h2{font-size:23px}
 .buyer-theme .about p{font-size:13px;line-height:1.5}
}


/* Keep the mobile purchase action on screen; the preview takes the remaining height. */
@media(max-width:599px),(max-width:950px) and (max-height:500px){
 .buyer-theme .product-modal{display:flex;flex-direction:column;height:min(700px,calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-height:none;padding:0;overflow:hidden}
 .buyer-theme .product-modal .modal-close{width:44px;height:44px;top:8px;right:8px}
 .buyer-theme .product-modal .modal-photo{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;width:100%;height:auto;background:#fff;overflow:hidden}
 .buyer-theme .product-modal .modal-photo img{width:100%;height:100%;object-fit:contain}
 .buyer-theme .product-modal .product-options{position:static;inset:auto;flex:0 0 auto;width:auto;padding:10px 12px 12px;overflow:visible;border-top:1px solid var(--pw-line)}
 .buyer-theme .product-modal .product-options > :is(.eyebrow,.photo-context){display:none}
 .buyer-theme .product-modal .product-options h2{font-size:16px;line-height:1.25;margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .buyer-theme .product-modal .product-options label{font-size:12px;line-height:1.35;margin:4px 0}
 .buyer-theme .product-modal .product-options select{font-size:16px;min-height:44px;padding:8px 10px}
 .buyer-theme .product-modal .product-hint{font-size:12px;line-height:1.35;margin-top:5px!important}
 .buyer-theme .product-modal .product-options > .fine{font-size:11px!important;line-height:1.35}
 .buyer-theme .product-modal .product-options .summary-row{margin:6px 0 0}
 .buyer-theme .product-modal .quantity button{width:44px;height:44px}
 .buyer-theme .product-modal .product-note{font-size:12px;line-height:1.35;margin:4px 0 0}
 .buyer-theme .product-modal .product-note > summary{min-height:44px;align-content:center;padding:12px 0;cursor:pointer}
 .buyer-theme .product-modal .product-note .fine{font-size:11px!important;line-height:1.35}
 .buyer-theme .product-modal .product-buybar{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin-top:6px;padding:0;position:static}
 .buyer-theme .product-modal .product-buybar .product-price{font-size:22px;line-height:1.2;margin:0;white-space:nowrap}
 .buyer-theme .product-modal .product-buybar .button{font-size:13px;min-height:44px;padding:8px 10px;margin:0}
}
@media(min-width:600px) and (max-width:950px) and (max-height:500px){
 .buyer-theme .product-modal{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .buyer-theme .product-modal .modal-photo{width:100%;height:100%}
 .buyer-theme .product-modal .product-options{align-self:stretch;min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;border-top:0;border-left:1px solid var(--pw-line);padding-right:12px}
 .buyer-theme .product-modal .modal-close{left:8px;right:auto}
 .buyer-theme .product-modal .product-options h2{margin-bottom:4px}
 .buyer-theme .product-modal .product-hint{display:none}
}
@media(max-width:599px) and (max-height:500px){
 .buyer-theme .product-modal{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(96px,.4fr) minmax(0,.6fr)}
 .buyer-theme .product-modal .modal-photo{height:100%;min-height:0}
 .buyer-theme .product-modal .product-options{align-self:stretch;min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:950px) and (max-height:500px){
 .buyer-theme .product-modal .product-buybar{position:sticky;bottom:0;z-index:1;background:#fff;border-top:1px solid var(--pw-line);padding:6px 0}
}
@media(max-width:599px){
 .buyer-theme .empty{padding:24px 12px}
 .buyer-theme .empty h2{font-size:22px}
 .buyer-theme .empty p{font-size:13px;line-height:1.45;margin:8px auto}
 .buyer-theme .empty-icon{width:44px;height:44px;margin-bottom:12px}
}
/* Cart-only promotion entry stays next to the authoritative total. */
.buyer-theme .buyer-promotion{margin-bottom:14px;text-align:left}
.buyer-theme .buyer-promotion label{display:block;font-size:13px;margin-bottom:6px}
.buyer-theme .buyer-promotion form>div{display:flex;gap:8px;min-width:0}
.buyer-theme .buyer-promotion input{min-width:0;width:100%;flex:1;font-size:16px;text-transform:uppercase}
.buyer-theme .buyer-promotion .button{font-size:13px;padding:8px 12px;min-height:44px;flex:0 0 auto}
.buyer-theme .buyer-promotion p{font-size:12px;line-height:1.5;overflow-wrap:anywhere;margin:8px 0}

.buyer-theme .buyer-promotion input{min-height:44px;padding:8px 10px;border:1px solid var(--pw-line);border-radius:10px;background:#fff}
.buyer-theme .summary .buyer-promotion .button.secondary{width:auto;margin:0;background:#fff;color:var(--pw-accent);border-color:var(--pw-accent)}

/* Group portraits need room for the full frame and the complete order form. */
@media(min-width:600px) and (min-height:501px){
 .buyer-theme .product-modal.is-common{display:grid;width:min(1180px,100%);grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center}
 .buyer-theme .product-modal.is-common .modal-photo{position:static;width:100%;height:auto;min-height:0;align-self:center;background:transparent}
 .buyer-theme .product-modal.is-common .modal-photo img{display:block;width:100%;height:auto;max-height:calc(92dvh - 2px);object-fit:contain}
 .buyer-theme .product-modal.is-common .product-options{position:static;inset:auto;width:auto;max-height:calc(92dvh - 2px);overflow-y:auto;overscroll-behavior:contain}
 .buyer-theme .product-modal.is-common .product-buybar{position:static}
}
.buyer-theme .digital-selection-note{margin-top:8px;line-height:1.4}
.buyer-theme .digital-selection-note .text-link{min-height:44px;vertical-align:middle;padding:8px 0}

/* Compact entry gate reuses the approved Onest / white / F palette. */
.gallery-access-box{max-width:420px;margin-inline:auto}
@media(max-width:600px){.gallery-access-box{padding:20px 16px;margin-block:16px}.gallery-access-box .page-title{font-size:23px;line-height:1.2}.gallery-access-box .subtitle{font-size:14px;line-height:1.45}.gallery-access-box .field{margin-block:18px}.gallery-access-box input{font-size:16px;min-height:44px}.gallery-access-box .auth-footer{font-size:12px}.gallery-access-box .auth-icon{margin-bottom:14px}}
.album-buyer{max-width:1000px}
.album-buyer .page-title{font-size:28px;margin-bottom:8px}
.album-buyer h2{font-size:20px}
.album-buyer select,.album-buyer input{display:block;width:100%;max-width:100%;min-height:44px;border:1px solid #aeb9c7;border-radius:10px;background:#fff;color:inherit;padding:8px 10px;font:inherit}
.album-buyer label{display:block;margin-top:12px;margin-bottom:5px;font-weight:600}
.album-buyer-actions{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.album-buyer .album-buyer-actions .button{width:auto;flex:1 1 auto;padding:10px 16px;min-height:44px}
.album-buyer-controls{padding:12px;background:#f6f2fc;border-radius:12px;margin:12px 0}
.album-buyer-controls p{margin:0 0 8px}
.album-new-child{margin:14px 0}
.album-new-child .button{margin-top:10px}
.album-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.album-photo{min-width:0;border:2px solid #d6dbe2;padding:7px;border-radius:12px;overflow:hidden}
.album-photo.selected{border-color:var(--pw-accent,#7440cf);background:#f7f3fd}
.album-photo p{font-size:12px;overflow-wrap:anywhere;margin:6px 0}
.album-photo .button{width:100%;min-height:42px;padding:8px;font-size:13px}
.album-preview{display:block;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.album-preview img{display:block;width:100%;height:190px;object-fit:contain;border-radius:6px}
.album-example{display:block;width:100%;max-width:480px;max-height:280px;object-fit:contain;margin:8px 0}
.album-photo-dialog{border:0;border-radius:16px;padding:10px;width:min(760px,94vw);max-height:94dvh}
.album-photo-dialog::backdrop{background:#1d252ac4}
.album-photo-dialog img{display:block;width:100%;max-height:78dvh;object-fit:contain}
.album-photo-dialog .button{margin-bottom:6px}
@media(max-width:699px){.album-buyer .page-title{font-size:22px}.album-buyer h2{font-size:18px}.album-buyer{font-size:14px}.album-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.album-preview img{height:165px}.album-buyer-controls{padding:10px}}
/* Album class: shortlist first, then fixed orientation slots on pages. */
.album-spread{padding:16px;margin:16px 0;border:1px solid #cbd0db;border-radius:16px;background:#faf9fd}.album-spread h3{margin:0 0 12px}.album-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:center}.album-slot-wrap{min-width:0}.album-slot-wrap small{display:block;overflow-wrap:anywhere;margin-top:5px}.album-slot{width:100%;aspect-ratio:1;border:2px dashed #9a84bc;border-radius:10px;background:#fff;color:#6842a3;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;padding:8px;cursor:pointer}.album-slot.portrait{aspect-ratio:2/3}.album-slot.landscape{aspect-ratio:3/2}.album-slot img{width:100%;height:100%;object-fit:contain}.album-slot-plus{font-size:36px;line-height:1.2}.album-slot-picker{position:fixed;inset:0;z-index:200;background:rgba(20,20,30,.5);display:flex;align-items:center;justify-content:center;padding:12px}.album-picker-body{width:min(850px,100%);max-height:90dvh;overflow:auto;background:white;border-radius:18px;padding:18px}.album-picker-body .album-buyer-actions{position:sticky;top:0;background:#fff;padding:8px 0;z-index:1}@media(max-width:600px){.album-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.album-spread{padding:12px}.album-slot{font-size:12px}.album-picker-body{padding:12px}.album-picker-body h2{font-size:18px}}
/* Let the class photos lead; keep instructions and controls compact. */
.album-buyer{max-width:1280px;padding-top:14px}.album-buyer .page-title{font-size:24px;margin:0 0 3px}.album-caption{font-size:13px;margin:0 0 7px;color:#5b6570}.album-intro{font-size:14px;line-height:1.45;margin:0 0 10px;max-width:800px;color:#283238}.album-child-row{display:flex;align-items:center;gap:10px;max-width:480px}.album-buyer .album-child-row label{margin:0;white-space:nowrap;font-size:13px}.album-child-row select{flex:1;min-width:0}.album-buyer .album-new-child{margin:6px 0;font-size:13px}.album-buyer-controls{margin:8px 0;padding:8px 10px}.album-buyer-controls>p{font-size:12px;margin:0 0 4px}.album-buyer-controls>details{font-size:12px}.album-buyer-actions{margin:6px 0 0;gap:6px;align-items:center}.album-buyer .album-buyer-actions .button{padding:8px 12px;font-size:13px}.album-refresh{position:relative;flex:0 0 auto;font-size:12px}.album-refresh>summary{padding:12px 8px;cursor:pointer;min-height:44px}.album-refresh[open]>.button{position:absolute;right:0;top:100%;z-index:5;background:#fff;box-shadow:0 4px 18px #0002;white-space:nowrap}.album-gallery-heading{margin:12px 0 8px}.album-photo{padding:5px}.album-preview img{height:300px}.album-picker-body .album-preview img{height:210px}
@media(max-width:699px){.album-buyer{padding:10px 10px 20px}.album-buyer .page-title{font-size:20px}.album-intro{font-size:13px;margin-bottom:8px}.album-buyer .album-buyer-actions .button{font-size:12px;padding:8px 9px}.album-photo-grid{gap:7px}.album-preview img{height:clamp(180px,55vw,265px)}.album-photo p{font-size:11px;margin:4px 0}.album-photo .button{min-height:44px;font-size:12px}.album-picker-body .album-preview img{height:175px}.album-buyer h2.album-gallery-heading{font-size:16px;margin-top:10px}}
.album-flow-status{display:flex;gap:10px;align-items:center;justify-content:space-between}.album-flow-status>p{font-size:12px;margin:0}.album-selection-counter{display:flex;align-items:center;gap:12px;margin-top:4px}.album-selection-counter strong{font-size:46px;line-height:1.1;color:var(--pw-accent,#7440cf);font-variant-numeric:tabular-nums}.album-selection-counter span{font-size:15px;font-weight:600}.album-selection-counter small{display:block;font-size:12px;font-weight:400;color:#59656d}.album-next-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#fffefc;padding:10px 0 calc(10px + env(safe-area-inset-bottom));border-top:1px solid #ddd;margin-top:12px}.album-next-bar .button{min-height:44px}.album-page-texts{display:grid;gap:10px;margin-top:14px}.album-page-texts label{margin:0}.album-page-texts input{margin-top:5px}.album-refresh[open]>div{position:absolute;right:0;top:100%;z-index:20;background:white;box-shadow:0 4px 18px #0002;padding:6px;min-width:180px;border-radius:10px}.album-refresh[open]>div>.button{width:100%;white-space:nowrap;margin:3px 0;position:static}.album-flow-status .album-refresh{margin-left:auto}@media(max-width:699px){.album-selection-counter strong{font-size:40px}.album-next-bar{font-size:13px}.album-next-bar .button{font-size:13px;padding:10px 14px}}
.album-next-bar>.button{width:auto;flex:1 1 0;min-width:0}.album-next-bar>b{flex:0 0 auto}
.album-photo-dialog[open]{display:flex;flex-direction:column;width:min(1000px,96vw);height:min(900px,94dvh);max-height:94dvh;padding:8px;overflow:hidden;box-sizing:border-box}.album-view-header{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}.album-view-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.album-view-count{font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}.album-photo-dialog .album-view-header .button{width:44px;min-height:44px;padding:0;margin:0;flex:0 0 44px;font-size:25px}.album-view-stage{display:flex;align-items:center;gap:6px;flex:1;min-height:0;overflow:hidden}.album-photo-dialog .album-view-main{width:calc(100% - 100px);height:100%;max-height:none;min-width:0;object-fit:contain}.album-view-arrow{height:52px;flex:0 0 44px;width:44px;border:0;border-radius:50%;background:#f1edf7;color:#6239b1;font-size:34px;cursor:pointer}.album-view-arrow:disabled{opacity:.3;cursor:default}.album-view-thumbs{display:flex;flex:0 0 auto;gap:6px;overflow-x:auto;padding:8px 2px 2px;min-height:70px;scrollbar-width:thin}.album-view-thumb{width:52px;height:64px;flex:0 0 52px;padding:2px;border:2px solid transparent;border-radius:6px;background:#f1edf7;cursor:pointer}.album-photo-dialog .album-view-thumb img{width:100%;height:100%;max-height:none;object-fit:contain}.album-view-thumb.is-active{border-color:var(--pw-accent,#7440cf);background:#e4d7fa}.album-view-thumb:focus-visible,.album-view-arrow:focus-visible{outline:2px solid #7440cf;outline-offset:2px}@media(max-width:600px){.album-photo-dialog[open]{width:96vw;height:90dvh;max-height:90dvh;padding:6px}.album-view-stage{position:relative;gap:0}.album-photo-dialog .album-view-main{width:100%}.album-view-arrow{position:absolute;z-index:1;left:2px;background:#f7f2ffed}.album-view-arrow[data-action="album-buyer-view-next"]{left:auto;right:2px}.album-view-name{font-size:12px}.album-view-thumbs{padding-top:6px}}
.album-view-like-bar{display:flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;padding-top:6px;min-width:0}.album-photo-dialog .album-view-like-bar .button{width:auto;min-width:130px;min-height:44px;margin:0;padding:8px 18px}.album-view-save-status{font-size:12px;margin:0;color:#59656d;max-width:220px}.album-layout-example{margin:12px 0;padding:10px;background:white;border:1px solid #d5d9e1;border-radius:12px}.album-layout-example figcaption{font-size:12px;color:#53616b;margin-bottom:6px}.album-layout-example .album-example{max-width:760px;max-height:360px;margin:0;object-fit:contain}@media(max-width:600px){.album-view-like-bar{gap:6px}.album-view-save-status{font-size:11px;max-width:150px}.album-layout-example{padding:6px}.album-layout-example .album-example{max-height:240px}}
/* Album polish: short photo filters, readable examples and compact completion guidance. */
.album-photo-filters{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.album-buyer .album-photo-filters>.button{width:auto;min-height:44px;padding:8px 13px;font-size:13px}.album-photo-filters>.button[aria-pressed="true"]{border-color:var(--pw-accent,#7440cf);background:#efe7fc;color:#58309e}.album-photo-filters span{font-variant-numeric:tabular-nums;margin-left:4px}.album-filter-empty{padding:16px 12px;background:#f7f5fa;border:1px solid #ddd6e7;border-radius:10px;font-size:14px}
.album-example-open{display:block;width:100%;border:0;padding:0;background:transparent;cursor:zoom-in;text-align:left}.album-example-open:focus-visible{outline:2px solid var(--pw-accent,#7440cf);outline-offset:4px;border-radius:4px}.album-example-dialog{overscroll-behavior:contain;border:0;border-radius:16px;width:min(1100px,96vw);max-height:92dvh;padding:12px;box-sizing:border-box;overflow:hidden}.album-example-dialog[open]{display:flex;flex-direction:column}.album-example-dialog::backdrop{background:#1d252ac4}.album-example-dialog header{display:flex;align-items:center;gap:10px;min-width:0;flex:0 0 auto;margin-bottom:8px}.album-example-dialog h2{font-size:18px;line-height:1.3;margin:0;flex:1;min-width:0;overflow-wrap:anywhere}.album-buyer .album-example-dialog header .button{width:44px;min-height:44px;flex:0 0 44px;padding:0;font-size:25px}.album-example-dialog>img{display:block;min-height:0;width:100%;max-height:calc(92dvh - 85px);object-fit:contain}
.album-constructor-progress{flex:1 1 100%;display:flex;gap:8px;align-items:center;justify-content:space-between;min-width:0}.album-constructor-progress p{display:flex;flex-wrap:wrap;gap:4px 12px;margin:0;min-width:0;font-size:12px;color:#283238;font-variant-numeric:tabular-nums}.album-constructor-progress .button{width:auto;min-height:44px;flex:0 0 auto;padding:6px 10px;font-size:12px}.album-constructor-progress [hidden]{display:none}.album-slot,.album-page-texts input{scroll-margin-block:100px}.album-layout-footer{row-gap:6px}
@media(max-width:600px){.album-buyer .album-photo-filters>.button{font-size:12px;padding-inline:10px}.album-example-dialog{padding:8px}.album-example-dialog h2{font-size:15px}.album-constructor-progress p{gap:2px 8px;font-size:11px}.album-constructor-progress .button{font-size:11px;padding-inline:8px;min-height:44px}}
/* Keep each real page's example, photo choices and text in one compact workspace. */
.album-photo-dialog .album-view-like-bar{gap:0}.album-view-save-status:not(:empty){margin-left:10px}
.album-slot-picker .album-photo .button.secondary:hover,.album-picker-targets>.button.secondary:hover:not([aria-pressed="true"]){background:#eee5fb;color:#58309e;border-color:#7440cf}
.album-picker-targets{display:flex;gap:6px;overflow-x:auto;padding:6px 2px;margin-top:8px;overscroll-behavior-x:contain}.album-buyer .album-picker-targets>.button{flex:0 0 auto;width:auto;min-height:44px;min-width:76px;padding:8px 12px;font-size:12px}.album-picker-targets>.button[aria-pressed="true"]{background:var(--pw-accent,#7440cf);border-color:var(--pw-accent,#7440cf);color:white}.album-picker-targets>.button.is-filled:not([aria-pressed="true"]){background:#e7f4ee;color:#246c4d;border-color:#b8dbc9}.album-picker-targets>.button:focus-visible{outline:2px solid #7440cf;outline-offset:2px}.album-picker-progress{font-size:12px;line-height:1.4;margin:4px 0 8px;color:#59656d}.album-picker-retry{padding:10px;background:#fff6eb;border:1px solid #e2c59b;border-radius:10px}.album-picker-retry p{font-size:12px;margin:0 0 6px}
.album-spreads-grid{display:grid;gap:12px;align-items:start}.album-spreads-grid>.album-spread{margin:0!important;min-width:0}.album-page-texts>label:only-child{grid-column:1/-1}
.album-buyer .album-spread{margin:12px 0;padding:14px;background:#fff;border-color:#d4cfdf;border-radius:14px}
.album-spread-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px;min-width:0}.album-buyer .album-spread-heading h2{font-size:18px;line-height:1.3;margin:0;min-width:0;overflow-wrap:anywhere}.album-page-count{flex:0 0 auto;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;padding:5px 8px;border-radius:7px;background:#f1edf7;color:#6842a3}.album-page-count.is-complete{background:#e7f4ee;color:#246c4d}
.album-spread-workspace{display:grid;gap:18px;min-width:0}.album-spread-workspace.has-example{grid-template-columns:minmax(160px,240px) minmax(0,1fr)}.album-spread-content{min-width:0}.album-page-instruction{font-size:13px;line-height:1.4;margin:0 0 10px;overflow-wrap:anywhere}
.album-spread .album-layout-example{align-self:start;margin:0;padding:8px;background:#f8f6fc;border-color:#e3dced}.album-spread .album-example-open{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;color:#58309e;min-width:0;font:inherit}.album-spread .album-example-open .album-example{display:block;width:100%;height:155px;max-height:155px;object-fit:contain}.album-example-open>span{font-size:12px;font-weight:600;line-height:1.35}.album-example-open small{display:block;font-size:11px;font-weight:400;margin-top:2px;color:#59656d}
.album-spread .album-slots{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start;max-width:670px}.album-spread .album-slots[data-count="1"]{grid-template-columns:minmax(0,180px)}.album-spread .album-slots[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr));max-width:420px}.album-slot-label{display:flex;flex-wrap:wrap;gap:2px 6px;margin:0 0 5px;font-size:12px;line-height:1.35}.album-slot-label span{font-size:11px;color:#59656d}.album-spread .album-slot{position:relative;aspect-ratio:auto;height:174px;padding:5px;gap:4px;font-size:12px;border-radius:9px;touch-action:manipulation}.album-spread .album-slot.has-photo{border-style:solid;border-color:#c2b1db;padding-bottom:31px}.album-slot-replace{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;min-height:28px;background:#f1eafa;color:#5c339d;font-size:12px;font-weight:600}.album-slot:focus-visible{outline:2px solid var(--pw-accent,#7440cf);outline-offset:3px}.album-slot:hover{border-color:var(--pw-accent,#7440cf)}.album-slot-filename{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#59656d;font-size:11px}.album-spread .album-page-texts{grid-template-columns:repeat(2,minmax(0,1fr));max-width:670px;margin-top:12px;gap:10px}.album-page-texts label{min-width:0;font-size:13px;overflow-wrap:anywhere}.album-page-texts label small{font-weight:400;color:#59656d}.album-page-texts label>p{margin:5px 0 0;font-weight:400;overflow-wrap:anywhere}
.album-picker-heading{display:flex;align-items:start;justify-content:space-between;gap:10px}.album-picker-heading h2{margin:0 0 3px}.album-picker-heading p{font-size:13px;margin:0;overflow-wrap:anywhere}.album-buyer .album-picker-heading>.button{width:44px;min-height:44px;flex:0 0 44px;font-size:24px;padding:0}.album-picker-hint{font-size:12px;color:#59656d;margin:10px 0}.album-picker-body>.album-buyer-actions{position:static}.album-slot-picker .album-photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.album-slot-picker .album-photo .button{width:100%;min-height:44px}.album-slot-picker .album-preview img{height:190px}
@media(max-width:699px){.album-page-texts input{font-size:16px}}
@media(min-width:1200px){.album-spreads-grid{grid-template-columns:minmax(0,1fr)}.album-spread-workspace.has-example{grid-template-columns:150px minmax(0,1fr);gap:14px}.album-spread .album-example-open .album-example{height:115px;max-height:115px}.album-spread .album-slots{gap:8px}}
@media(max-width:699px){.album-buyer .album-spread{padding:10px;margin:10px 0}.album-buyer .album-spread-heading h2{font-size:16px}.album-spread-heading{margin-bottom:9px;gap:8px}.album-page-count{font-size:11px}.album-spread-workspace.has-example{grid-template-columns:minmax(0,1fr);gap:10px}.album-spread .album-example-open{flex-direction:row;text-align:left;gap:10px}.album-spread .album-example-open .album-example{width:100px;height:78px;max-height:78px;flex:0 0 100px}.album-spread .album-layout-example{padding:6px}.album-spread .album-slots{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.album-spread .album-slots[data-count="1"]{grid-template-columns:minmax(0,150px)}.album-spread .album-slot{height:150px}.album-spread .album-page-texts{grid-template-columns:minmax(0,1fr);gap:8px}.album-page-instruction{font-size:12px;margin-bottom:8px}.album-slot-picker .album-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.album-slot-picker .album-preview img{height:160px}.album-picker-heading p{font-size:12px}}

/* Photo likes use a fixed vector heart and readable type, independent of glyph fallback. */
.buyer-theme .album-buyer .album-like-button,
.buyer-theme .album-photo-dialog .album-view-like-bar .album-like-button{display:flex;align-items:center;justify-content:center;gap:8px;font-family:var(--pw-font);font-size:16px;font-weight:600;line-height:1.3;letter-spacing:0;min-height:44px;padding:9px 14px}
.buyer-theme .album-like-button .album-like-icon{display:block;flex:0 0 20px;width:20px;height:20px;min-width:20px;aspect-ratio:1}
.buyer-theme .album-like-button>span{flex:0 1 auto;min-width:0}

.album-parent-guide{margin:8px 0 10px;padding:10px 12px;border:1px solid var(--pw-accent-edge);border-radius:12px;background:var(--pw-accent-soft);font-size:13px;line-height:1.45;color:var(--pw-text)}
.album-parent-guide>b{display:block;font-size:14px;margin-bottom:4px}.album-parent-guide>p{margin:3px 0}.album-parent-guide>p:last-child{margin-bottom:0}
@media(max-width:600px){.album-parent-guide{padding:8px 10px;font-size:12px}.album-parent-guide>b{font-size:13px}}

.album-object-context{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;margin:3px 0 6px;font-size:14px;line-height:1.4}.album-object-context>span{font-weight:600}.album-object-context:empty{display:none}.album-buyer-controls[hidden],.album-flow-status[hidden]{display:none}.album-cover-back{margin-top:14px;padding-top:12px;border-top:1px solid var(--pw-line)}.album-cover-back>h3{font-size:15px;margin:0 0 6px}.album-cover-back>.album-page-texts{margin-top:6px}

.album-view-title{flex:1;min-width:0}.album-view-title>.album-view-name{display:block}.album-view-context{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;font-weight:400;line-height:1.3;margin-top:2px}.album-view-context:empty,.album-picker-object:empty{display:none}.album-picker-heading .album-picker-object{font-weight:600;font-size:12px}

/* Album action hierarchy: forward actions, toggles, tabs, utilities and removal. */
.buyer-theme .album-buyer .album-next-bar>[data-action="album-buyer-next"],
.buyer-theme .album-buyer .album-next-bar>[data-action="album-buyer-submit"],
.buyer-theme .album-slot-picker [data-action="album-buyer-place"],
.buyer-theme .album-photo-dialog [data-action="album-buyer-view-place"]{min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:10px;background:var(--pw-accent);color:#fff;font-size:14px;line-height:1.35;font-weight:600}
.buyer-theme .album-buyer .album-next-bar>[data-action]:hover:not(:disabled),
.buyer-theme .album-slot-picker [data-action="album-buyer-place"]:hover:not(:disabled),
.buyer-theme .album-photo-dialog [data-action="album-buyer-view-place"]:hover:not(:disabled){background:var(--pw-accent-hover);color:#fff}
.buyer-theme .album-buyer .album-next-bar>[data-action]:disabled{background:#edf0f3;color:#68747d;border-color:#dce1e6;opacity:1}
.buyer-theme .album-buyer .album-photo .album-like-button,
.buyer-theme .album-photo-dialog .album-view-like-bar .album-like-button{position:relative;isolation:isolate;width:max-content;max-width:100%;min-width:0;min-height:44px;margin:0 auto;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:#506069;font-size:15px;line-height:1.35;gap:6px}
.buyer-theme .album-buyer .album-photo .album-like-button::before,
.buyer-theme .album-photo-dialog .album-view-like-bar .album-like-button::before{content:'';position:absolute;inset:4px 0;z-index:-1;border-radius:7px;background:#f0f3f5;pointer-events:none}
.buyer-theme .album-buyer .album-photo .album-like-button[aria-pressed="true"],
.buyer-theme .album-photo-dialog .album-view-like-bar .album-like-button[aria-pressed="true"]{color:#6331b8}
.buyer-theme .album-buyer .album-photo .album-like-button[aria-pressed="true"]::before,
.buyer-theme .album-photo-dialog .album-view-like-bar .album-like-button[aria-pressed="true"]::before{background:#eee5fb}
.buyer-theme .album-buyer .album-photo .album-like-button:hover:not(:disabled)::before,
.buyer-theme .album-photo-dialog .album-view-like-bar .album-like-button:hover:not(:disabled)::before{background:#e4d7f7}
.buyer-theme .album-like-button .album-like-icon{width:18px;height:18px;min-width:18px;flex:0 0 18px}
.buyer-theme .album-buyer .album-photo-filters{gap:14px;border-bottom:1px solid var(--pw-line);padding:0;margin-bottom:10px}
.buyer-theme .album-buyer .album-photo-filters>.button{width:auto;min-height:44px;padding:8px 4px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#5f6c72;font-size:13px;font-weight:500;box-shadow:none}
.buyer-theme .album-buyer .album-photo-filters>.button[aria-pressed="true"]{border-bottom-color:var(--pw-accent);color:#6331b8;font-weight:600}
.buyer-theme .album-buyer .album-picker-targets>.button{min-height:44px;min-width:64px;padding:6px 10px;border:1px solid #d6dde3;border-radius:7px;background:#f4f6f8;color:#3d4d57;font-size:12px}
.buyer-theme .album-buyer .album-picker-targets>.button[aria-pressed="true"]{background:#eee5fb;border-color:#7440cf;color:#58309e;box-shadow:inset 0 -2px #7440cf}
.buyer-theme .album-buyer .album-picker-targets>.button.is-filled:not([aria-pressed="true"]){background:#e7f4ee;border-color:#b8dbc9;color:#246c4d}
.buyer-theme .album-buyer .album-buyer-actions>[data-action="album-buyer-back"]{flex:0 1 auto;min-height:44px;width:auto;padding:8px 12px;border:1px solid #d6dde3;border-radius:8px;background:#fff;color:#34434d;font-size:13px}
.buyer-theme .album-buyer .album-buyer-actions>[data-action="album-buyer-clear-slot"]{flex:0 1 auto;min-height:44px;width:auto;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#a13542;font-size:13px}
.buyer-theme .album-buyer .album-buyer-actions>[data-action="album-buyer-clear-slot"]:hover:not(:disabled){background:#fff0f2;color:#922c39}
.buyer-theme .album-buyer .album-constructor-progress>[data-action="album-buyer-missing"]{min-height:44px;padding:6px 2px;border:0;border-radius:4px;background:transparent;color:#6331b8;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.buyer-theme .album-buyer .album-slot-picker .album-picker-heading>.button,
.buyer-theme .album-buyer .album-photo-dialog .album-view-header>.button,
.buyer-theme .album-buyer .album-example-dialog header>.button{position:relative;isolation:isolate;width:44px;height:44px;min-height:44px;flex:0 0 44px;border:0;border-radius:8px;background:transparent;color:#4b5b65;font-size:24px;line-height:1;padding:0}
.buyer-theme .album-buyer .album-slot-picker .album-picker-heading>.button::before,
.buyer-theme .album-buyer .album-photo-dialog .album-view-header>.button::before,
.buyer-theme .album-buyer .album-example-dialog header>.button::before{content:'';position:absolute;inset:4px;z-index:-1;border-radius:7px;background:#edf1f4;pointer-events:none}
.buyer-theme .album-buyer .album-view-arrow{height:44px;width:44px;flex-basis:44px;font-size:26px;background:#eef1f4;color:#3d4d57}
.buyer-theme .album-buyer .album-slot-replace{background:#eef1f4;color:#40505a;font-weight:500}
@media(max-width:699px){
 .buyer-theme .album-buyer .album-next-bar{padding-top:6px;padding-bottom:calc(6px + env(safe-area-inset-bottom));gap:4px 8px}
 .buyer-theme .album-buyer .album-next-bar>.button{min-height:44px;padding:8px 12px;font-size:13px}
 .buyer-theme .album-buyer .album-constructor-progress{gap:6px}
 .buyer-theme .album-buyer .album-constructor-progress p{font-size:11px;gap:2px 6px}
 .buyer-theme .album-buyer .album-constructor-progress>[data-action="album-buyer-missing"]{font-size:11px;padding-inline:0}
 .buyer-theme .album-buyer .album-photo-filters{gap:12px}
 .buyer-theme .album-buyer .album-photo .album-like-button{font-size:14px;padding-inline:10px}
 .buyer-theme .album-buyer .album-slot-picker .album-photo [data-action="album-buyer-place"]{font-size:13px;padding:8px 10px}
 .buyer-theme .album-buyer .album-buyer-actions{gap:4px 10px;margin:4px 0}
 .buyer-theme .album-buyer .album-buyer-actions>.button{font-size:12px;padding:6px 8px}
 .buyer-theme .album-buyer .album-picker-targets>.button{min-width:60px;font-size:12px;padding:6px 8px}
 .buyer-theme .album-buyer .album-picker-body{padding:10px}
}

/* Album checkout: final review reuses the approved page previews. */
.album-checkout-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d8cee9;border-radius:12px;padding:16px;margin:16px 0;background:#faf8ff}
.album-checkout-summary p{margin:4px 0 0}.album-checkout-summary strong{font-size:24px;white-space:nowrap}
.album-checkout-finish{border-top:1px solid #d8dee5;margin-top:16px;padding:16px 0}
.album-checkout-actions{display:flex;justify-content:space-between;gap:12px}.album-checkout-actions .button{min-height:44px;height:auto;white-space:normal}
@media(max-width:600px){.album-checkout-summary{padding:12px;gap:10px}.album-checkout-summary strong{font-size:20px}.album-checkout-actions{flex-direction:column-reverse}.album-checkout .album-spread{padding:12px}}
.buyer-theme .gallery-entry-context{display:flex;flex-direction:column;gap:4px;padding:10px 12px;margin:0 0 18px;border-radius:10px;background:#f5f0fc;text-align:left;color:#29363b;overflow-wrap:anywhere;font-size:15px;line-height:1.35}.buyer-theme .gallery-entry-context span{font-size:14px;font-weight:500}@media(max-width:599px){.buyer-theme .gallery-entry-context{font-size:14px;margin-bottom:12px;padding:9px 11px}}

/* One photograph owns its formats; SKU quotes and quantities stay independent. */
.buyer-theme .cart-photo-group{display:block}
.buyer-theme .cart-photo-heading{display:flex;align-items:flex-start;gap:16px;min-width:0}
.buyer-theme .cart-photo-heading .cart-thumb{padding:0;display:block;border:0;cursor:zoom-in;min-width:44px}
.buyer-theme .cart-photo-heading .cart-thumb img{object-fit:contain}
.buyer-theme .cart-photo-heading .cart-details{padding:0}
.buyer-theme .cart-photo-heading h3{margin-right:0}
.buyer-theme .cart-preview-link{font-size:12px;min-height:44px;text-align:left}
.buyer-theme .cart-photo-formats{margin-top:14px}
.buyer-theme .cart-format{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:4px 8px;padding:14px 0;border-top:1px solid var(--pw-line);min-width:0}
.buyer-theme .cart-format .line-product{margin:0;color:var(--pw-text);font-weight:600}
.buyer-theme .cart-format :is(.photo-sub,.fine){margin:3px 0 0}
.buyer-theme .cart-format .remove{position:static;align-self:start;display:grid;place-items:center;padding:0;min-width:44px;min-height:44px}
.buyer-theme .cart-format .line-bottom{grid-column:1/-1;margin:6px 0 0}
.buyer-theme .cart-photo-total{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--pw-line);padding-top:12px;font-size:14px}
.buyer-theme .cart-photo-total strong{white-space:nowrap;font-size:17px}
.buyer-theme .cart-photo-group>.line-action{margin-top:8px;font-size:13px}

/* Navigation overlays the protected preview without changing image geometry. */
.buyer-theme :is(.product-modal,.photo-preview-modal) .modal-photo,
.buyer-theme .product-modal.is-common .modal-photo{position:relative}
.buyer-theme .photo-dialog-navigation{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none;z-index:1}
.buyer-theme .photo-dialog-arrow{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #cbd2da;border-radius:50%;background:#ffffffed;color:#35434e;pointer-events:auto}
.buyer-theme .photo-dialog-arrow:disabled{background:#ffffffbd;color:#7c8792;opacity:.65}
.buyer-theme .photo-dialog-arrow:not(:disabled):hover{background:#fff;border-color:var(--pw-accent);color:var(--pw-accent)}
.buyer-theme .photo-dialog-arrow svg{width:22px;height:22px;flex:none}
.buyer-theme .photo-dialog-position{padding:4px 8px;border-radius:7px;background:#ffffffed;color:#35434e;font-size:12px;line-height:1.4;white-space:nowrap}
.buyer-theme .photo-preview-modal{display:flex;flex-direction:column;width:min(900px,100%);height:min(820px,calc(100dvh - 48px));overflow:hidden}
.buyer-theme .photo-preview-modal .modal-photo{display:flex;align-items:center;justify-content:center;flex:1 1 0;min-height:0;background:#f7f8fa;overflow:hidden}
.buyer-theme .photo-preview-modal .modal-photo img{width:100%;height:100%;object-fit:contain}
.buyer-theme .photo-preview-caption{flex:0 0 auto;padding:14px 20px;border-top:1px solid var(--pw-line)}
.buyer-theme .photo-preview-caption h2{font-size:18px;line-height:1.35;margin:0}
.buyer-theme .photo-preview-caption .photo-context{margin:4px 0 0}
@media(max-width:599px){
 .buyer-theme .cart-photo-heading{gap:12px}
 .buyer-theme .cart-photo-formats{margin-top:10px}
 .buyer-theme .cart-format{padding:10px 0}
 .buyer-theme .cart-photo-total{padding-top:10px;font-size:13px}
 .buyer-theme .cart-photo-total strong{font-size:15px}
 .buyer-theme .photo-dialog-position{font-size:11px}
 .buyer-theme .photo-preview-modal{height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:none;padding:0}
 .buyer-theme .photo-preview-caption{padding:10px 12px}
 .buyer-theme .photo-preview-caption h2{font-size:15px}
}

/* Inspect a protected photo in the same dialog, then return to the chosen format. */
.buyer-theme .product-modal .product-photo-zoom{display:block;position:relative;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:transparent;cursor:zoom-in;line-height:0}
.buyer-theme .product-modal .product-photo-zoom:focus-visible{outline-offset:-4px}
.buyer-theme .product-photo-zoom .photo-zoom-label{position:absolute;top:8px;left:8px;display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border:1px solid #d7dde4;border-radius:8px;background:#fffffff0;color:#35434e;font-size:12px;line-height:1.3;pointer-events:none}
.buyer-theme .product-photo-zoom .photo-zoom-label svg{flex:none;width:16px;height:16px}
.buyer-theme .photo-enlarged-backdrop{padding:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
.buyer-theme .product-photo-enlarged{display:grid;grid-template-rows:auto minmax(0,1fr) auto;position:relative;width:100%;max-width:none;height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));max-height:none;min-height:0;padding:0;overflow:hidden;border-radius:16px;background:#f7f8fa}
.buyer-theme .photo-enlarged-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:8px 10px;background:#fff;border-bottom:1px solid var(--pw-line)}
.buyer-theme .photo-enlarged-header h2{min-width:0;margin:0;font-size:15px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.buyer-theme .photo-enlarged-header .modal-close{display:grid;place-items:center;position:static;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
.buyer-theme .photo-enlarged-stage{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden}
.buyer-theme .photo-enlarged-stage img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.buyer-theme .photo-enlarged-footer{display:flex;justify-content:center;padding:8px 12px;background:#fff;border-top:1px solid var(--pw-line)}
.buyer-theme .photo-enlarged-footer .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 16px;margin:0;font-size:14px;line-height:1.35}
@media(max-height:450px){.buyer-theme .photo-enlarged-header{padding-block:4px}.buyer-theme .photo-enlarged-footer{padding-block:4px}}
.buyer-theme .child-recipient-box{max-width:500px;margin-inline:auto}.buyer-theme .child-recipient-box .fine{font-size:13px;line-height:1.45}.buyer-theme .child-recipient-box .field{margin:18px 0}.buyer-theme .child-recipient-box input{font-size:16px;min-height:44px}.buyer-theme .child-recipient-box .field-error{min-height:0;margin:5px 0 0}.buyer-theme .child-recipient-box .field-error:empty{display:none}

#order-contact-phone-hint{margin-top:12px}

/* Buyer review 2026-10-28: review items before proceeding; keep photo controls apart. */
.buyer-theme .cart-list + .cart-checkout{margin-top:24px;margin-bottom:24px}
.buyer-theme .buyer-preview-notice{margin:0 0 20px;padding:16px;border:1px solid var(--pw-line);border-radius:12px;background:#f5f0ff;line-height:1.5}
@media(min-width:600px) and (max-width:950px) and (max-height:500px){
 .buyer-theme .product-modal .product-photo-zoom .photo-zoom-label{left:60px;max-width:calc(100% - 68px);box-sizing:border-box}
}

/* Reserve space for the focus ring even when the mobile keyboard is open. */
.buyer-theme .auth-box .field input{display:block;scroll-margin-block:24px}
.buyer-theme .auth-box .field > :is(.fine,.field-error){margin-top:12px}
.buyer-theme .auth-box .field label{margin-bottom:12px}
.buyer-theme .recipient-total{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px 16px;border-top:1px solid var(--pw-line);padding-top:20px;margin:24px 0 20px;font-size:16px}
.buyer-theme .recipient-total strong{font-size:24px;white-space:nowrap}
.buyer-theme .buyer-orders .order-head strong{overflow-wrap:anywhere}
.buyer-theme .buyer-orders .order-item > span{min-width:0;overflow-wrap:anywhere}
.buyer-theme .buyer-orders .order-item > b{white-space:nowrap}
.buyer-theme .order-downloads{margin-top:20px;padding-top:20px;border-top:1px solid var(--pw-line)}
.buyer-theme .order-downloads h2{font-size:18px;margin:0 0 12px}
.buyer-theme .order-downloads .file-download-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:16px}
.buyer-theme .order-downloads .file-download-toolbar .button{width:auto;flex:1 1 180px}
.buyer-theme .order-downloads .purchase-info{overflow-wrap:anywhere}
.buyer-theme .order-downloads .purchases{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:599px){.buyer-theme .order-downloads .purchases{grid-template-columns:1fr}.buyer-theme .buyer-orders .order{padding:16px 12px}.buyer-theme .order-downloads .purchase{grid-template-columns:72px minmax(0,1fr)}}

.buyer-theme .account-back{display:inline-flex;width:auto;min-height:48px;padding:12px 20px;margin-bottom:24px;font-size:16px}
