/* JTG 3.0.1: touch targets, scrollable dialogs, no flashing cart confirmations. */
.m1-gallery{padding:0;width:min(840px,calc(100% - 24px));border:1px solid #dbe3ee;border-radius:20px;max-height:92vh;max-height:92dvh;color:#20334e;background:white;box-shadow:0 20px 80px #10203333}.m1-gallery::backdrop{background:#14263880}.m1-modal{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh}.m1-modal header,.m1-modal footer{padding:16px 20px;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-shrink:0}.m1-modal header{border-bottom:1px solid #e3e8ef}.m1-modal h2{font-size:20px;font-weight:700}.m1-modal small{color:#7569aa;font-size:11px;letter-spacing:.12em}.m1-modal button,.m1-editor button,.m1-editor input,.m1-editor select{touch-action:manipulation}.m1-modal button,.m1-editor button{min-height:44px;min-width:44px;border:1px solid #dae2ee;border-radius:10px;padding:9px 14px;background:white;color:#273f5f;font-size:14px}.m1-modal .m1-primary,.m1-editor .m1-primary{background:#293e61;color:white}.m1-modal button:disabled,.m1-editor button:disabled{opacity:.5}.m1-gallery-body{padding:18px 20px;overflow:auto;overscroll-behavior:contain;min-height:0}.m1-photo-stage{position:relative;max-width:100%;margin:auto}.m1-photo-stage>img{display:block;width:100%;height:min(42vh,380px);object-fit:contain;background:#f7f9fc;border-radius:12px}.m1-picker-stage{width:100%}.m1-picker-stage>img{height:auto;max-height:none;object-fit:fill}.m1-spots{position:absolute;inset:0;pointer-events:none}.m1-spots .m1-spot{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:2px solid #7761aa;background:#ffffffe8;color:#513e84;padding:0;border-radius:50%;min-width:36px;min-height:36px;width:5%;aspect-ratio:1}.m1-spots .m1-spot[aria-pressed=true]{background:#6a53a4;color:white}.m1-spots .m1-spot:disabled{background:#fff8;opacity:1;color:#983d58;border-color:#983d58}.m1-gallery-nav{display:flex;justify-content:space-between;align-items:center;margin:12px 0}.m1-thumbs{display:flex;gap:9px;overflow-x:auto;padding:5px}.m1-thumbs img{width:64px;height:64px;object-fit:contain}.m1-thumbs button[aria-current=true]{outline:2px solid #8b78b9}.m1-description{white-space:pre-wrap;line-height:1.7;padding:10px 0;font-size:14px}.m1-alternatives{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.m1-alternatives [aria-pressed=true]{background:#eee8f7;border-color:#7660aa}.m1-media-icon{position:absolute!important;right:10px;top:10px;z-index:3;min-width:44px;min-height:44px;border-radius:12px!important;background:#fffffff2!important;border:1px solid #dce3ee!important;box-shadow:0 2px 7px #14243b15;padding:8px!important;color:#4b5278!important;touch-action:manipulation}.m1-media-icon svg{width:21px;height:21px;pointer-events:none}.m1-card-wrap{position:relative;min-width:0}.m1-card-wrap>.sa-product{height:100%}.m1-welcome{text-align:center;background:#fffaf1;border:1px solid #f0e4ce;border-radius:14px;padding:15px;margin:8px 0 20px;color:#80643d;line-height:1.8}.m1-cart-note{position:fixed;left:50%;transform:translateX(-50%);bottom:max(18px,env(safe-area-inset-bottom));z-index:280;display:flex;align-items:center;gap:12px;padding:9px 12px 9px 16px;border-radius:13px;background:#24354d;color:white;box-shadow:0 5px 18px #18283f22;max-width:calc(100vw - 24px);font-size:13px;transition:opacity .16s ease}.m1-cart-note button{min-height:44px;padding:8px 12px;border-radius:9px;white-space:nowrap;background:white;color:#24354d;touch-action:manipulation}.m1-editor{max-width:1050px;margin:0 auto;padding:20px;color:#24364f}.m1-editor header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.m1-editor h1{font-size:27px;font-weight:700}.m1-editor input,.m1-editor textarea,.m1-editor select{font:inherit;font-size:16px;border:1px solid #d5deea;border-radius:9px;padding:10px;max-width:100%;width:100%;background:white}.m1-editor label{display:block;font-size:13px;margin:14px 0 7px}.m1-editor .m1-panel{padding:18px;background:white;border:1px solid #e0e6ef;border-radius:15px;margin:15px 0}.m1-editor .m1-muted{font-size:13px;color:#69778a;margin:8px 0;line-height:1.6}.m1-photos{display:flex;flex-wrap:wrap;gap:10px}.m1-photo{padding:9px;border:1px solid #e0e6ef;border-radius:12px;width:154px}.m1-photo img{width:132px;height:115px;object-fit:contain}.m1-photo button{font-size:12px;margin:3px 2px;padding:6px}.m1-savebar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-top:14px;margin-top:14px;border-top:1px solid #dce3ed}.m1-error{color:#a53754;white-space:pre-wrap;line-height:1.6}.m1-saved{color:#66509a;white-space:pre-wrap;line-height:1.6}.m1-map-editor{position:relative;max-width:650px;margin:14px 0}.m1-map-editor>img{width:100%;height:auto}.m1-map-editor .m1-map-dot{position:absolute;transform:translate(-50%,-50%);border-radius:50%;background:#6a53a4;color:white;font-size:11px;padding:5px}.m1-link{display:inline-flex;padding:10px 14px;border:1px solid #dce3ef;border-radius:10px;margin:8px 0;color:#5c5089;background:white;font-size:13px}.m1-editor button:focus-visible,.m1-modal button:focus-visible{outline:3px solid #a58cc9;outline-offset:2px}@media(max-width:640px){.m1-gallery{margin:auto 0 0;width:100%;max-width:100%;border-radius:20px 20px 0 0}.m1-modal header,.m1-modal footer,.m1-gallery-body{padding:14px}.m1-modal footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}.m1-photo-stage>img{height:min(36vh,280px)}.m1-picker-stage>img{height:auto}.m1-cart-note{width:calc(100vw - 24px);gap:8px}.m1-cart-note span{flex:1;min-width:0}.m1-editor{padding:12px}.m1-photo{width:calc(50% - 5px)}.m1-photo img{width:100%}.m1-savebar button{flex:1}.m1-photo-stage{touch-action:pan-y pinch-zoom}}@media(prefers-reduced-motion:reduce){.m1-cart-note{transition:none}}
