.v17-cover-badge{display:inline-flex;align-items:center;gap:6px;color:#185943;font-size:12px;font-weight:700;padding:5px 8px;border-radius:8px;background:#eaf7f0;margin:7px 0}.v17-cover-badge img,.v17-cover-choice img{width:23px;height:23px;flex-shrink:0}.v17-cover-choice{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid #bcd9c8;border-radius:12px;background:#f2faf5;margin:16px 0}.v17-cover-choice input{width:21px;min-height:21px;flex-shrink:0}.v17-cover-choice small{display:block;line-height:1.5;margin-top:4px}.v17-private-price{color:#175c8c;font-size:12px;font-weight:700}.v17-weight-note{font-size:13px;line-height:1.6;padding:10px 12px;background:#fff5df;border-radius:9px;margin:10px 0}.quantity-field{display:flex;gap:8px;align-items:center;min-width:0}.quantity-field input{min-width:0;width:100%;font-size:18px;min-height:48px;text-align:center}.v17-step-button{flex:0 0 48px;width:48px;height:48px;padding:0;border:1px solid #d8d8d8;border-radius:10px;background:#fff;color:#a01b22;font-size:27px;font-weight:700;touch-action:manipulation}.quantity-field span{flex:0 0 auto;min-width:25px}.cart-quantity-edit .v17-step-button{flex-basis:40px;width:40px;height:44px}.cart-quantity-edit input{min-width:60px;max-width:100px;font-size:17px;min-height:44px}.v17-photo-open{border:0;background:none;padding:0;cursor:zoom-in;flex-shrink:0}.v17-photo-open .variant-photo{display:block}.variant-gallery-note{font-size:12px;line-height:1.5}.v17-price-policy-link{display:block;margin:8px 0;color:#175c8c}.v17-weight-form{display:grid;gap:8px;min-width:200px;margin-top:12px;padding:12px;background:#fff4dd;border-radius:9px}.v17-weight-form input{width:100%;min-width:0;font-size:16px}.v17-weight-form label{margin:0}.v17-weight-status{display:block;color:#a25c00;font-size:12px;line-height:1.5}.v17-weight-done{color:#185943}
#photo-viewer{padding:0;margin:0;width:100vw;height:100dvh;max-width:none;max-height:none;border:0;background:#111;color:#fff;overflow:hidden;border-radius:0;z-index:10000}#photo-viewer[open]{display:flex;flex-direction:column}#photo-viewer::backdrop{background:#111}.photo-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px;gap:12px;flex:0 0 auto;min-height:65px;padding-top:max(12px,env(safe-area-inset-top))}.photo-toolbar button,.photo-controls button{min-height:44px;min-width:44px;border:1px solid #555;color:#fff;background:#292929;border-radius:8px;font-size:19px;touch-action:manipulation}#photo-caption{margin:0;font-size:13px;line-height:1.5;max-width:calc(100% - 56px)}#photo-stage{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}#photo-full{display:block;width:100%;height:auto;margin:0 auto;min-width:100%;object-fit:contain;user-select:none;-webkit-user-select:none}.photo-controls{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;flex-wrap:wrap;flex:0 0 auto;padding-bottom:max(12px,env(safe-area-inset-bottom))}.photo-instruction{margin:0 10px 8px;text-align:center;color:#c7c7c7;font-size:12px}
@media(max-width:600px){#variant-modal .dialog-head h2{font-size:18px;overflow-wrap:anywhere}.v17-photo-open .variant-photo{width:76px;height:76px}.quantity-field{gap:5px}.v17-step-button{flex-basis:44px;width:44px}.v17-cover-choice{padding:11px}.photo-controls{gap:6px}.photo-controls button{font-size:17px}#variant-modal .variant-body{padding-bottom:16px}.cart-item-title strong{overflow-wrap:anywhere}.cart-quantity-edit{flex-wrap:wrap}.cart-quantity-edit input{max-width:85px}.v17-weight-note{font-size:12px}}

.v17-private-badge{color:#175c8c;font-size:12px;font-weight:700;margin:7px 0}.cart-quantity-edit{display:flex;align-items:center;gap:6px}.cart-quantity-edit>span:first-child{flex-basis:100%;font-size:12px}.cart-quantity-edit .v17-step-button{flex-shrink:0}

/* Keep photo gestures inside the image surface; controls stay in normal flow. */
#photo-viewer{--photo-surface:#111;--photo-control:#292929;--photo-text:#fff;--photo-muted:#c7c7c7;height:100svh;max-height:100svh;background:var(--photo-surface);color:var(--photo-text)}
#photo-viewer[open]{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}
#photo-viewer>div{min-width:0}
#photo-viewer .photo-toolbar{min-height:0;padding:8px 12px;padding-top:max(8px,env(safe-area-inset-top));gap:12px}
#photo-viewer .photo-heading{min-width:0;flex:1}
#photo-viewer #photo-counter{display:block;font-size:15px;font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums}
#photo-viewer #photo-caption{max-width:none;font-size:13px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--photo-muted)}
#photo-viewer #photo-close{flex:0 0 48px;width:48px;height:48px;padding:0;font-size:26px}
#photo-viewer #photo-stage{position:relative;display:block;min-width:0;min-height:0;overflow:hidden;touch-action:none;overscroll-behavior:contain;cursor:default;isolation:isolate}
#photo-viewer #photo-preview{position:absolute;inset:0;display:block;width:100%;height:100%;margin:0;object-fit:contain;pointer-events:none}
#photo-viewer #photo-stage.has-photo-preview #photo-feedback{align-content:end;text-shadow:0 1px 4px #000;color:#fff}
#photo-viewer #photo-stage.is-zoomed{cursor:grab}
#photo-viewer #photo-stage.is-interacting{cursor:grabbing}
#photo-viewer #photo-full{position:absolute;left:50%;top:50%;display:block;min-width:0;min-height:0;max-width:none;max-height:none;margin:0;object-fit:contain;transform-origin:50% 50%;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;transition:none;will-change:transform}
#photo-viewer #photo-stage.is-settling #photo-full{transition:transform 160ms ease-out}
#photo-viewer #photo-feedback{position:absolute;inset:0;display:grid;place-content:center;padding:24px;margin:0;text-align:center;color:var(--photo-muted);font-size:14px;line-height:1.5;pointer-events:none}
#photo-viewer [hidden]{display:none!important}
#photo-viewer .photo-controls{position:static;display:flex;flex-wrap:nowrap;gap:8px;padding:8px 12px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
#photo-viewer .photo-controls button{min-width:48px;min-height:48px;flex-shrink:0;background:var(--photo-control);color:var(--photo-text)}
#photo-viewer button:active{background:#444}
#photo-viewer #photo-zoom-value{min-width:48px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
#photo-viewer .photo-instruction{min-height:18px;margin:0;padding:0 8px max(8px,env(safe-area-inset-bottom));font-size:12px;line-height:1.5;color:var(--photo-muted)}
@media(max-width:700px){
 #photo-viewer .photo-toolbar{padding-inline:8px;gap:8px}
 #photo-viewer #photo-close{flex-basis:44px;min-width:44px;min-height:44px;width:44px;height:44px}
 #photo-viewer .photo-controls{display:grid;grid-template-columns:44px 44px minmax(40px,1fr) 44px 60px 44px;gap:4px;padding-inline:8px}
 #photo-viewer .photo-controls button{min-width:0;min-height:44px;width:100%;padding:4px;font-size:20px}
 #photo-viewer #photo-reset{font-size:13px;white-space:nowrap}
 #photo-viewer #photo-zoom-value{min-width:0}
 #photo-viewer .photo-controls:has(#photo-prev[hidden]){grid-template-columns:44px minmax(40px,1fr) 44px 60px;justify-content:center;max-width:320px;width:100%;margin-inline:auto}
}
@media(max-height:360px){
 #photo-viewer .photo-toolbar{padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}
 #photo-viewer .photo-controls{padding-top:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}
 #photo-viewer .photo-instruction{display:none}
}
@media(prefers-reduced-motion:reduce){#photo-viewer #photo-stage.is-settling #photo-full{transition:none}}

/* Desktop product albums use a white, two-column gallery above the storefront. */
#photo-viewer #photo-product-name,#photo-viewer #photo-thumbnails,#photo-viewer .photo-stage-nav{display:none}
@media(min-width:1001px) and (min-height:501px){
 #photo-viewer[data-photo-kind=product]{
  --photo-size:min(760px,calc(100svh - 88px),calc(100vw - 364px));
  --photo-surface:var(--tdf-surface,#fff);
  --photo-control:var(--tdf-surface,#fff);
  --photo-text:var(--tdf-text,#17221c);
  --photo-muted:var(--tdf-text-muted,#58645d);
  box-sizing:border-box;inset:0;margin:auto;padding:12px;
  width:calc(var(--photo-size) + 300px);height:calc(var(--photo-size) + 24px);
  max-width:calc(100vw - 64px);max-height:calc(100svh - 64px);
  border-radius:4px;box-shadow:var(--tdf-shadow-sheet,0 24px 64px #0004);
 }
 #photo-viewer[data-photo-kind=product]::backdrop{background:rgba(0,0,0,.45)}
 #photo-viewer[data-photo-kind=product][open]{grid-template-columns:minmax(0,1fr) 260px;grid-template-rows:auto minmax(0,1fr) auto auto;gap:0 16px}
 #photo-viewer[data-photo-kind=product] #photo-stage{grid-column:1;grid-row:1 / -1;background:var(--photo-surface)}
 #photo-viewer[data-photo-kind=product] .photo-toolbar{grid-column:2;grid-row:1;align-items:flex-start;padding:4px 0 16px;gap:4px}
 #photo-viewer[data-photo-kind=product] #photo-product-name{display:block;margin:0 0 8px;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
 #photo-viewer[data-photo-kind=product] #photo-counter{display:inline;font-size:12px;font-weight:500;color:var(--photo-muted)}
 #photo-viewer[data-photo-kind=product] #photo-caption{display:none}
 #photo-viewer[data-photo-kind=product] #photo-close{flex:0 0 44px;min-width:44px;min-height:44px;width:44px;height:44px;border:0;background:transparent;color:var(--photo-muted);border-radius:4px}
 #photo-viewer[data-photo-kind=product] #photo-thumbnails{display:grid;grid-column:2;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));align-content:start;gap:8px;overflow:auto;overscroll-behavior:contain;padding:4px;margin:-4px;scroll-padding:4px}
 #photo-viewer[data-photo-kind=product] .photo-thumbnail{display:block;box-sizing:border-box;min-width:0;min-height:0;width:100%;aspect-ratio:1;padding:3px;border:2px solid transparent;border-radius:2px;background:var(--photo-surface);cursor:pointer;transition:border-color 120ms ease,background-color 120ms ease}
 #photo-viewer[data-photo-kind=product] .photo-thumbnail img{display:block;width:100%;height:100%;object-fit:contain}
 #photo-viewer[data-photo-kind=product] .photo-thumbnail:hover{border-color:var(--tdf-border,#d8e1db)}
 #photo-viewer[data-photo-kind=product] .photo-thumbnail.is-selected{border-color:var(--tdf-primary,#a01b22);background:var(--tdf-page,#f4f7f5)}
 #photo-viewer[data-photo-kind=product] .photo-stage-nav{position:absolute;top:50%;z-index:1;display:grid;place-items:center;transform:translateY(-50%);box-sizing:border-box;min-width:44px;min-height:64px;width:44px;height:64px;padding:0;border:0;border-radius:0;background:rgba(0,0,0,.5);color:#fff;cursor:pointer}
 #photo-viewer[data-photo-kind=product] #photo-stage-prev{left:0}
 #photo-viewer[data-photo-kind=product] #photo-stage-next{right:0}
 #photo-viewer[data-photo-kind=product] .photo-stage-nav:hover{background:rgba(0,0,0,.7)}
 #photo-viewer[data-photo-kind=product] .photo-controls{grid-column:2;grid-row:3;justify-content:flex-start;gap:4px;padding:16px 0 8px;border-top:1px solid var(--tdf-border,#d8e1db)}
 #photo-viewer[data-photo-kind=product] .photo-controls button{min-width:44px;min-height:44px;padding:4px 8px;border:1px solid var(--tdf-border,#d8e1db);border-radius:4px;font-size:18px;cursor:pointer}
 #photo-viewer[data-photo-kind=product] .photo-controls :is(#photo-prev,#photo-next){display:none}
 #photo-viewer[data-photo-kind=product] #photo-zoom-value{min-width:44px;font-size:12px}
 #photo-viewer[data-photo-kind=product] #photo-reset{font-size:12px;white-space:nowrap}
 #photo-viewer[data-photo-kind=product] .photo-instruction{grid-column:2;grid-row:4;padding:0;text-align:left;font-size:12px}
 #photo-viewer[data-photo-kind=product] button:active{background:var(--tdf-page,#f4f7f5)}
 #photo-viewer[data-photo-kind=product] .photo-stage-nav:active{background:rgba(0,0,0,.8)}
 #photo-viewer[data-photo-kind=product] button:focus-visible{outline:3px solid var(--tdf-focus,#175cd3);outline-offset:2px}
}
@media(prefers-reduced-motion:reduce){#photo-viewer .photo-thumbnail{transition:none}}
