/* 1.1.587 owner: the PREMIUM photo view (Gold Star / Diamond Star) and the Standard / Premium picker used when a product is added or edited.
   Premium: the photo stands on a glowing podium, the other photos run down the right side, then heart, share and a teal download pill. */
/* ---------- the viewer ---------- */
.gallery-modal .gallery-card.gp{display:grid;grid-template-columns:minmax(0,1fr) 84px;grid-template-rows:auto auto minmax(0,1fr) auto auto;grid-template-areas:"head head" "ids ids" "stage side" "act act" "similar similar";gap:0 12px;padding:16px 16px 18px;background:#fbfdfd;overflow:hidden}
.gp .drawer-head{grid-area:head}
.gp .gallery-ids{grid-area:ids}
.gp .gallery-stage{grid-area:stage;position:relative;height:auto;min-height:0;border-radius:28px;overflow:hidden;background:radial-gradient(120% 70% at 72% 0,#fff 0,#eaf8f5 46%,#c9ede4 100%)}
/* two soft light arcs behind the product, like the owner's picture */
.gp .gallery-stage::before{content:"";position:absolute;left:-28%;top:-30%;width:150%;height:78%;border-radius:50%;border:2px solid #ffffffb0;box-shadow:inset 0 -26px 60px #ffffff90,0 0 40px #ffffff60;pointer-events:none}
.gp .gallery-stage::after{content:"";position:absolute;left:10%;right:10%;bottom:4%;height:14%;border-radius:50%;background:linear-gradient(#ffffff,#e4f6f2);box-shadow:0 0 0 5px #8af0da99,0 0 30px 10px #46dcc27a,0 18px 24px #0b3a3022;pointer-events:none}
.gp .gallery-stage>img{position:relative;z-index:1;width:100%;height:100%;padding:7% 7% 15%;object-fit:contain;object-position:center bottom;mix-blend-mode:multiply}
.gp #gallery-count{display:none!important}
.gp .gallery-meta{display:contents}
.gallery-modal .gp #gallery-thumbs{grid-area:side;display:flex;grid-auto-flow:row;grid-auto-columns:auto;flex:none;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-content:flex-start;gap:12px;min-height:0;max-width:none;width:auto;overflow-x:hidden;overflow-y:auto;padding:3px;touch-action:pan-y;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.gp #gallery-thumbs::-webkit-scrollbar{display:none}
.gallery-modal .gp .gallery-thumb{position:relative;flex:0 0 auto;display:block;width:100%;height:auto;aspect-ratio:1/1.08;padding:0;overflow:hidden;border:2px solid transparent;border-radius:22px;background:#f1f4f6;box-shadow:inset 0 0 0 1px #e3e8ec}
.gallery-modal .gp .gallery-thumb img{position:absolute;left:7px;top:7px;display:block;width:calc(100% - 14px);height:calc(100% - 14px);max-width:none;max-height:none;object-fit:contain;border-radius:12px;mix-blend-mode:multiply}
.gallery-modal .gp .gallery-thumb.active{border-color:#14b8a6;background:#fff;box-shadow:0 0 0 3px #14b8a62e}
.gp .gallery-info{grid-area:act;display:flex;align-items:center;gap:12px;width:100%;margin-top:16px}
.gp-btn{flex:0 0 66px;display:grid;place-items:center;width:66px;height:56px;padding:0;border:0;border-radius:20px;background:#fff;color:#16222d;box-shadow:0 6px 16px #1e3a5f26,0 1px 3px #1e3a5f1a;cursor:pointer;-webkit-tap-highlight-color:transparent}
.gp-btn svg{width:26px;height:26px}
.gp-heart svg{fill:none;stroke:#ef4444;stroke-width:2.2;stroke-linejoin:round}
.gp-heart.is-on svg{fill:#ef4444}
.gp-heart.is-on{animation:gp-pop .35s cubic-bezier(.3,1.6,.5,1)}
@keyframes gp-pop{0%{transform:scale(.8)}100%{transform:scale(1)}}
.gp-btn:active{transform:translateY(1px)}
.gp-rule{flex:none;width:1px;height:38px;background:#d5dde3}
/* the download button keeps its states (progress, done) but is a teal pill here */
.gp .gallery-dl{flex:1 1 auto;position:relative;display:grid;place-items:center;width:auto;min-width:0;height:56px;border-radius:20px;background:linear-gradient(135deg,#19c4ae,#0e9f8d);color:#fff;overflow:hidden;box-shadow:0 8px 18px #14b8a655}
.gp .gallery-dl .gallery-dl-track,.gp .gallery-dl:not([data-state="idle"]) .gallery-dl-track{position:absolute;inset:0;left:0;top:0;width:100%;height:100%;border:0;border-radius:inherit;background:none;box-shadow:none}
.gp .gallery-dl .gallery-dl-fill{background:#ffffff42;opacity:0}
.gp .gallery-dl:not([data-state="idle"]) .gallery-dl-fill{opacity:1}
.gp .gallery-dl-drop,.gp .gallery-dl-chute,.gp .gallery-dl-label{display:none}
.gp .gallery-dl .gallery-dl-icon{display:block;position:relative;z-index:1;width:28px;height:28px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.gp .gallery-dl:not([data-state="idle"]) .gallery-dl-icon{opacity:0}
.gp .gallery-dl .gallery-dl-check{position:absolute;z-index:2;left:50%;top:50%;width:28px;height:28px;margin:-14px 0 0 -14px;color:#fff}
.gp .gallery-similar{grid-area:similar}
@media (max-width:520px){
 .gallery-modal .gallery-card.gp{grid-template-columns:minmax(0,1fr) 78px;padding:14px 14px 16px;border-radius:30px}
 .gp .gallery-stage{border-radius:26px}
 .gp .gallery-thumb{border-radius:20px}
}
@media (prefers-reduced-motion:reduce){.gp-heart.is-on{animation:none}}
/* ---------- the picker in the product forms: Standard or Premium ---------- */
.ps-pick{grid-column:1/-1;display:grid;gap:10px;margin:2px 0}
.ps-pick>span.ps-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:800}
.ps-pick>small{color:#657484;font-size:12.5px;line-height:1.45}
.ps-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ps-card{position:relative;display:grid;gap:8px;padding:10px;border:2px solid #dfe6e1;border-radius:18px;background:#fff;color:#16222d;cursor:pointer;text-align:left}
.ps-card input{position:absolute;opacity:0;pointer-events:none}
.ps-card:has(input:checked){border-color:#1f9d3a;box-shadow:0 0 0 3px #1f9d3a22}
.ps-card:has(input:focus-visible){outline:3px solid #1f9d3a66;outline-offset:2px}
.ps-card:has(input:disabled){cursor:pointer;background:#f7f8f7}
.ps-mini{position:relative;height:104px;border-radius:12px;overflow:hidden;background:#eef1f6}
.ps-mini i{position:absolute;display:block}
.ps-mini .ps-photo{left:12%;right:12%;top:12%;bottom:26%;border-radius:8px;background:linear-gradient(135deg,#b9c2cf,#8895a7)}
.ps-mini .ps-strip{left:8%;right:8%;bottom:6%;height:14%;border-radius:6px;background:repeating-linear-gradient(90deg,#c9d1db 0 22%,transparent 22% 26%)}
.ps-mini.ps-prem{background:radial-gradient(120% 70% at 72% 0,#fff 0,#eaf8f5 46%,#c9ede4 100%)}
.ps-mini.ps-prem .ps-photo{left:10%;right:36%;top:10%;bottom:26%;background:linear-gradient(135deg,#a9b6c6,#7d8ea3)}
.ps-mini.ps-prem .ps-pod{left:6%;right:32%;bottom:12%;height:12%;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #8af0da99,0 0 14px 4px #46dcc27a}
.ps-mini.ps-prem .ps-side{right:6%;top:10%;bottom:10%;width:20%;border-radius:6px;background:repeating-linear-gradient(180deg,#c9d1db 0 26%,transparent 26% 33%)}
.ps-card b{font-size:14px;font-weight:800}
.ps-card em{font-style:normal;font-size:12px;color:#657484}
.ps-lock{position:absolute;right:8px;top:8px;display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:99px;background:#16222d;color:#ffe08a;font-size:11.5px;font-weight:800}
.ps-lock[hidden],.ps-need[hidden]{display:none}
.ps-card.is-locked .ps-mini{filter:grayscale(.55);opacity:.8}
@media (max-width:420px){.ps-cards{gap:8px}.ps-mini{height:88px}}
