#cg-box-studio{box-sizing:border-box;width:100%;flex-basis:100%;border:1px solid #d7dfe8;border-radius:12px;margin:20px 0;padding:22px;background:#f7f9fc;color:#14243a}#cg-box-studio *{box-sizing:border-box}#cg-box-studio [hidden]{display:none!important}.bs-heading>span{font-size:11px;font-weight:800;letter-spacing:2px;color:#386e88}.bs-heading h3{margin:5px 0;font-size:24px}.bs-heading p{font-size:14px}.bs-dims{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}#cg-box-studio label{font-size:13px;font-weight:600;display:block}#cg-box-studio input:not([type=checkbox]),#cg-box-studio select{width:100%;margin:4px 0 8px;height:36px;font-size:14px;background:#fff}#cg-box-studio button,.bs-upload{font-size:12px!important;padding:7px 11px!important;min-height:34px!important;line-height:1.3!important;border:1px solid #c1cedb!important;border-radius:5px!important;background:white!important;color:#14243a!important;margin:0!important;text-transform:none!important;letter-spacing:0!important;cursor:pointer}.bs-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.bs-upload input{display:none}.bs-views{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(200px,1fr);gap:12px}.bs-flat,.bs-folded{padding:12px;background:#fff;border:1px solid #dce4ed;border-radius:8px;min-width:0}.bs-view-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.bs-view-title label{max-width:110px}#bs-net{width:100%;min-height:260px;display:flex;align-items:center;touch-action:none}#bs-net svg{width:100%;height:auto;max-height:500px;overflow:visible;user-select:none}#cg-box-studio small{display:block;font-size:11px;line-height:1.5;color:#59697a}.bs-scene{height:260px;perspective:900px;display:flex;align-items:center;justify-content:center;overflow:hidden}#bs-cube{position:relative;width:0;height:0;transform-style:preserve-3d}.bs-face3{position:absolute;left:0;top:0;border:1px solid #b0a99f;background-size:100% 100%;backface-visibility:hidden}.bs-edit{padding:14px;margin:14px 0;background:#eaf0f6;border-radius:8px}.bs-edit>label{max-width:180px}#bs-text-props{display:grid;grid-template-columns:2fr 1fr 1.5fr 1fr;gap:10px}#bs-props>label,#bs-image-props{max-width:220px}#bs-selection{display:block;margin:8px 0;font-size:14px}#bs-safe-warning,#bs-custom-note{padding:10px;background:#fff0d8;color:#7e4a08;font-size:13px}#bs-status{font-size:13px;font-weight:600}#cg-box-studio input[type=range]{padding:0}#cg-box-studio input[type=checkbox]{width:auto}@media(max-width:800px){.bs-views{grid-template-columns:1fr}.bs-scene{height:240px}#cg-box-studio{padding:12px}#bs-text-props{grid-template-columns:1fr 1fr}.bs-dims{grid-template-columns:1fr 1fr}}

#cg-box-studio{container-type:inline-size} @container(max-width:650px){.bs-views{grid-template-columns:1fr}}

/* Main gallery interactive preview */
.woocommerce-product-gallery[data-bs-hidden="1"],#cg-box-gallery-stage[hidden]{display:none!important}
#cg-box-gallery-stage{width:100%;padding:14px;background:#f7f9fc;border:1px solid #d7dfe8;border-radius:12px;box-sizing:border-box;scroll-margin-top:100px;color:#14243a}
#cg-box-gallery-stage .bs-folded{border:0;padding:8px}
#cg-box-gallery-stage .bs-scene{height:380px;touch-action:none}
#cg-box-gallery-stage label{display:block;font-size:13px;font-weight:600}
#cg-box-gallery-stage input[type=range]{width:100%;margin:8px 0 14px}
#cg-box-gallery-stage small{display:block;font-size:11px;line-height:1.5;color:#59697a}
#cg-box-gallery-stage button,.bs-open-main{font-size:13px;padding:8px 12px;border:1px solid #b9c9da;border-radius:6px;background:white;color:#14243a;text-transform:none;letter-spacing:0;line-height:1.3;cursor:pointer}
#cg-box-gallery-stage .bs-return-photos{background:#14243a;color:white}
.bs-preview-anchor{grid-column:1/-1}.bs-preview-anchor p{font-size:13px}.bs-orbit-help{font-size:13px;line-height:1.5;color:#526075}
#cg-box-gallery-stage .bs-toolbar{display:flex;flex-wrap:wrap;gap:6px}
@media(max-width:549px){#cg-box-gallery-stage .bs-scene{height:300px}}

/* Mailer: one 3D preview in the gallery, full-width unfolded editor. */
#cg-box-studio.bs-main-preview-only .bs-views{grid-template-columns:minmax(0,1fr)!important}
.bs-gallery-choices{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}
.bs-gallery-choices button{border:2px solid #d7dfe8;background:#fff;border-radius:6px;padding:5px;margin:0;min-height:56px;cursor:pointer;color:#14243a}
.bs-gallery-choices button[aria-pressed="true"]{border-color:#15549b;box-shadow:0 0 0 1px #15549b}
.bs-gallery-choices .bs-photo-choice img{display:block;width:64px;height:64px;object-fit:contain}
.bs-gallery-choices .bs-open-main{padding:10px 15px}
