.product-gallery{min-width:0;max-width:100%;margin:0 0 24px;overflow-wrap:anywhere}
.gallery-stage{position:relative;width:var(--product-banner-desktop-width,100%);height:var(--product-banner-desktop-height,320px);max-width:100%;margin:auto;overflow:hidden;border-radius:12px;background:transparent;touch-action:pan-y}
.gallery-slide,.gallery-slide>a{display:block;width:100%;height:100%;position:relative}
.product-gallery [hidden]{display:none!important}
.gallery-slide img,.gallery-slide video{display:block;width:100%;height:100%;object-fit:contain;transform:scale(var(--product-banner-desktop-zoom,1));transform-origin:center}
.gallery-slide video{transform:none}
.gallery-slide .fit-cover{object-fit:cover}
.gallery-slide [data-product-banner-open]{cursor:zoom-in}
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:40px;height:44px;display:grid;place-items:center;border:1px solid #607697;border-radius:10px;background:#142744ec;color:#fff;font-size:30px;line-height:1;cursor:pointer;padding:0}
.gallery-arrow:disabled{opacity:.4;cursor:default}
.gallery-prev{left:8px}.gallery-next{right:8px}
.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;flex-wrap:wrap;font-size:12px}
.gallery-toolbar:empty{display:none}
.gallery-toolbar button{padding:7px 10px;border:1px solid var(--theme-border-color,#dce5f1);border-radius:8px;background:transparent;color:inherit;font-size:12px;line-height:1.4}
.gallery-caption{font-size:12px;line-height:1.6;margin:12px 0 0;color:inherit!important;white-space:pre-line}
.gallery-thumbnails{display:flex;gap:8px;max-width:100%;overflow:auto;margin-top:12px;padding:4px 2px 8px;scrollbar-width:thin}
.gallery-thumbnails button{flex:0 0 56px;width:56px;height:56px;border:2px solid transparent;border-radius:9px;padding:3px;background:#eaf0fc;color:#1b2941}
.gallery-thumbnails [aria-current=true]{border-color:#2159ed;box-shadow:0 0 0 1px #2159ed}
.gallery-thumbnails img{width:100%;height:100%;object-fit:contain;display:block;border-radius:4px}
html[data-theme=dark] .gallery-thumbnails button{background:#243650;color:#e7f0ff}
html[data-theme=dark] .gallery-thumbnails [aria-current=true]{border-color:#9bbcff;box-shadow:0 0 0 1px #9bbcff}
.gallery-editor{min-width:0;border:1px solid var(--theme-border-color,#dce5f1);padding:20px;border-radius:12px}
.gallery-editor-actions{display:flex;align-items:end;gap:16px;flex-wrap:wrap}
.gallery-editor-actions .field{flex:1;min-width:min(100%,200px)}
.gallery-editor-list{display:grid;gap:14px;margin:16px 0}
.gallery-editor-row{display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;padding:14px;border:1px solid var(--theme-border-color,#dce5f1);border-radius:10px;min-width:0}
.gallery-editor-row.is-dragging{opacity:.45}
.gallery-editor-row.is-drop-target{outline:2px solid var(--accent,#2159ed);outline-offset:2px}
.gallery-editor-image{display:grid;place-items:center;background:#edf2fa;border-radius:8px;width:82px;height:82px;overflow:hidden;font-size:11px;color:#405579;text-align:center}
.gallery-editor-image img{width:100%;height:100%;object-fit:contain}
.gallery-editor-fields{display:grid;gap:10px;min-width:0}
.gallery-editor-fields .field{font-size:11px}
.gallery-editor-fields input,.gallery-editor-fields select{font-size:12px;padding:9px 10px;min-height:40px}
.gallery-editor-row .gallery-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;grid-column:1/-1}
.gallery-row-actions button{font-size:11px;border:1px solid var(--theme-border-color,#ccd8ee);background:transparent;color:inherit;border-radius:7px;min-height:36px;padding:6px 10px}
.gallery-row-actions button:disabled{opacity:.45;cursor:default}
.gallery-sort-handle{font-size:12px;cursor:grab;padding:6px;border-radius:6px;border:1px dashed #a7b7d1}
.gallery-row-actions .gallery-delete{margin-left:auto;color:#af2748}
.gallery-editor-row .gallery-row-number{font-size:12px;font-weight:700;margin-right:auto}
html[data-theme=dark] .gallery-editor-image{background:#243650;color:#c7d8f5}
html[data-theme=dark] .gallery-row-actions .gallery-delete{color:#ffb8c5}
.product-share{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:18px}
.product-share .button{font-size:12px;padding:9px 12px}
.product-share-status{flex-basis:100%;font-size:12px;margin:0;color:inherit}
.gallery-variant-button{display:block;padding:5px 0;border:0;background:transparent;color:var(--accent,#2159ed);font-size:11px;text-align:left}
html[data-theme=dark] .gallery-variant-button{color:#9bbcff}
@media(max-width:780px){.gallery-stage{width:var(--product-banner-mobile-width,100%);height:var(--product-banner-mobile-height,240px)}.gallery-slide img{transform:scale(var(--product-banner-mobile-zoom,1))}.gallery-arrow{width:34px;height:40px;font-size:27px}}
@media(max-width:480px){.gallery-editor{padding:14px}.gallery-editor-row{padding:10px;gap:10px;grid-template-columns:56px minmax(0,1fr)}.gallery-editor-image{width:56px;height:56px}.gallery-thumbnails button{flex-basis:48px;width:48px;height:48px}}
