/* ===========================
   Studio Help Modal
=========================== */

.studio-help-modal{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.75);

    z-index:99999;

}

.studio-help-window{

    width:700px;

    max-width:90%;
    
    max-height:80vh;
    
    margin:60px auto;

    background:#111827;

    border:2px solid #27b3ff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 0 30px rgba(0,0,0,.5);

}

.studio-help-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 24px;

    border-bottom:1px solid rgba(39,179,255,.25);

}

.studio-help-header h2{

    margin:0;

    color:#27b3ff;

}

.studio-help-body{

    padding:24px;

    color:#d1d5db;

    line-height:1.7;

    max-height:calc(80vh - 85px);

    overflow-y:auto;

}

#studio-help-close{

    background:none;

    border:none;

    color:white;

    font-size:22px;

    cursor:pointer;

}

body.studio-modal-open{

    overflow:hidden;

}

/* ================================================================================= */
/* LANDMARK SECTION 1: GLOBAL VIEWPORT & STRUCTURE STYLES                            */
/* ================================================================================= */
body.page-id-30 .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
body.page-id-30 #primary {
    width: 100% !important;
    max-width: none !important;
}
body.page-id-30 .entry-content,
body.page-id-30 .site-content .ast-container,
body.page-id-30 .site-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.page-id-30 .entry-header {
    display: none !important; 
}
.fostered-studio-shell {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto 10px;
    padding: 0 20px;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

/* ================================================================================= */
/* LANDMARK SECTION 2: TOP UTILITY BAR STYLES                                        */
/* ================================================================================= */
.fostered-top-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 24px;
    background: #0b1220;
    border-bottom: 1px solid rgba(56,189,248,.15);
}
.fostered-top-bar a, .fostered-top-bar button {
    color: #cbd5e1;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;    text-decoration: none;
    font-weight: 600;
    transition: .2s;
    background: none;
    border: none;
    padding: 0;
}
.fostered-top-bar a:hover, .fostered-top-bar button:hover {
    color: #38bdf8;
}

/* ================================================================================= */
/* LANDMARK SECTION 3: HEADER LOGO BRANDING STYLES                                   */
/* ================================================================================= */
.fostered-external-branding {
    text-align: left;
    padding: 15px 5px;
}
.studio-logo-mark {
    display: inline-block;
    font-size: 32px;
    margin-right: 10px;
    vertical-align: middle;
}
.studio-logo-text {
    display: inline-block;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a; 
    vertical-align: middle;
    letter-spacing: -0.5px;
}
.studio-logo-text span {
    color: #0284c7; 
}

/* ================================================================================= */
/* LANDMARK SECTION 4: MAIN STUDIO BOX & CONTROL SIDEBAR STYLES                      */
/* ================================================================================= */
.fostered-studio-deck {
    background: linear-gradient(180deg,#0f172a,#020617);
    border: 1px solid rgba(56,189,248,.20);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,.30);
    position: relative;
}
.fostered-studio-workspace {
    min-height: auto;
    padding: 15px 20px;
    color: #ffffff;
}
.studio-main-interface-wrapper {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 20px;
    align-items: start;
}
.studio-left-panel {
    background: #08111f;
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}
.studio-workspace-interactive-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
.studio-canvas-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

/* ================================================================================= */
/* LANDMARK SECTION 5: SHIRT GARMENT CANVAS PREVIEW PANELS STYLES                     */
/* ================================================================================= */
.studio-canvas-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(8, 17, 31, 0.5);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 15px 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}
.studio-canvas-panel.is-active-workspace {
    border-color: #38bdf8;
    background: rgba(56, 18, 248, 0.04);
}
.canvas-view-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}
.studio-canvas-panel.is-active-workspace .canvas-view-tag {
    color: #38bdf8;
}

.studio-canvas-panel:not(.is-active-workspace) .fostered-draggable-layer {
    pointer-events: none !important;
}

/* Allow touch interaction on active handles on mobile */
.fostered-draggable-layer.is-selected-active .fostered-handle,
.fostered-draggable-layer.is-selected-active .rotate-handle {
    pointer-events: auto !important;
}

/* ================================================================================= */
/* LANDMARK SECTION 6: DESIGN INPUT PROPERTIES & RANGE SLIDER STYLES                 */
/* ================================================================================= */
.studio-panel-title {
    font-family: 'Orbitron', sans-serif;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.studio-controls-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.studio-property {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.studio-property label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 600;
}
.studio-property input[type="text"],
.studio-property select {
    background: #111827;
    border: 1px solid rgba(56,189,248,0.15);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}
.studio-property input[type="range"] {
    width: 100%;
    margin: 6px 0;
}

/* ================================================================================= */
/* LANDMARK SECTION 7: DRAGGABLE LAYER OVERLAYS & PREVIEW WORKSPACE STYLES          */
/* ================================================================================= */
.studio-canvas-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    width: 100%;
}
.fostered-canvas-base {
    position: relative;
    width: 100% !important;
    max-width: 580px;         
    aspect-ratio: 1 / 1;      
    height: auto !important;  
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    overflow: hidden;
    border: 1px solid rgba(56,189,248,0.1);
    border-radius: 8px;
    display: block;
    box-sizing: border-box;
}
.fostered-draggable-layer {
    position: absolute;
    box-sizing: border-box;
    line-height: 0;
    touch-action: none;
    padding: 4px;
}
.fostered-draggable-layer.is-selected-active {
    outline: 2px solid #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56,189,248,0.5);
}
.fostered-graphic-box {
    border: none;
    cursor: move;
    border-radius: 4px;
}
.fostered-text-box {
    border: none;
    cursor: move;
    padding: 8px;
    border-radius: 4px;
}

.fostered-draggable-layer.is-selected-active.fostered-graphic-box {
    border-color: #00bcd4 !important;
}
.fostered-draggable-layer.is-selected-active.fostered-text-box {
    border-color: #ffb74d !important;
}
.fostered-user-artwork-render {
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
}
.fostered-text-render-block {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: pre-wrap; 
    pointer-events: none;
    user-select: none;
    line-height: 1.2;
    font-weight: 700;
}

/* =====================================================
   Resize Handles
===================================================== */

.fostered-handle{
    position:absolute;
    width:18px;
    height:18px;
    border-radius:50%;
    background:#38bdf8;
    border:2px solid #ffffff;
    box-shadow:0 2px 6px rgba(0,0,0,.35);
    display:none;
    z-index:1000;
    touch-action:none;
}

.fostered-handle::after,
.rotate-handle::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
}

.fostered-draggable-layer.is-selected-active .fostered-handle{
    display:block;
}

.handle-br{
    bottom:-9px;
    right:-9px;
    cursor:nwse-resize;
}

.rotate-handle{

    position:absolute;

    width:18px;
    height:18px;

    background:#ef4444;

    border:2px solid #fff;

    transform:rotate(45deg);

    left:50%;
    top:-36px;

    margin-left:-9px;

    cursor:grab;

    display:none;

    z-index:1001;

    box-shadow:0 2px 6px rgba(0,0,0,.35);

}

.fostered-draggable-layer.is-selected-active .rotate-handle{

    display:block;

}

/* ================================================================================= */
/* LANDMARK SECTION 8: MOBILE DESIGN PANEL & DRAWER CONTROL STYLES                   */
/* ================================================================================= */
.desktop-panel-only {
    display: flex;
}
.mobile-tool-trigger-bar {
    display: none;
    background: #08111f;
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mobile-tool-trigger-bar span {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #38bdf8;
    letter-spacing: 1px;
}
.drawer-text-config {
    display: none;
    background: #08111f;
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 15px;
}
.mobile-photo-controls-group,
.mobile-text-controls-group {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.mobile-control-row-three-col {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    align-items: end;
}
.mobile-control-row-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ================================================================================= */
/* LANDMARK SECTION 7.5: PRODUCT BOUNDARY OVERLAY                                   */
/* ================================================================================= */
.fostered-product-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    
    /* Crucial: lets click and touch events pass right through to user photo layers */
    pointer-events: none; 
    
    /* High depth index keeps boundaries perfectly on top of customer photos */
    z-index: 999; 
}

/* ================================================================================= */
/* LANDMARK SECTION 9: ACTION BUTTONS & BOTTOM INTERFACE TRAY STYLES                 */
/* ================================================================================= */
.studio-sub-canvas-tray {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: rgba(8, 11, 20, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 12px 20px;
}
.fostered-action-cluster {
    display: flex;
    gap: 12px;
}
.fostered-studio-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}
.fostered-studio-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: #1e293b !important;
    border-color: #334155 !important;
}
.fostered-studio-btn.img-btn { background: #1e293b; color: #fff; border-color: rgba(255,255,255,0.1); }
.fostered-studio-btn.text-btn { background: #1e293b; color: #fff; border-color: rgba(255,255,255,0.1); }

.fostered-studio-btn.flip-view-btn { 
    background: #0369a1; 
    color: #fff; 
    border-color: #0284c7; 
    display: none !important;
}
.fostered-studio-btn.cart-submit-btn { background: linear-gradient(180deg,#10b981 0%,#047857 100%); color: #fff; }
.fostered-hint-text {
    font-size: 12px;
    color: #64748b;
    margin: 6px 0 0 0;
    text-align: center;
}

/* ================================================================================= */
/* LANDMARK SECTION 10: IN-STOCK SIZE VALIDATION SHROUD LOCK STYLES                  */
/* ================================================================================= */
.studio-gate-lock-shroud {
    position: absolute;
    top: 50px; 
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 30px;
    box-sizing: border-box;
    text-align: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.studio-gate-lock-shroud.is-unlocked {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.gate-lock-box {
    max-width: 440px;
    background: #08111f;
    border: 1px solid rgba(56,189,248,0.3);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.gate-lock-box h3 {
    font-family: 'Orbitron', sans-serif;
    color: #38bdf8;
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
}
.gate-lock-box p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* ================================================================================= */
/* MODAL OVERLAY STYLES FOR TEXT ENGINE WORKFLOW                                      */
/* ================================================================================= */
.fostered-modal-backdrop {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-content-container {
    background: #08111f;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-title-row h3 {
    font-family: 'Orbitron', sans-serif;
    color: #38bdf8;
    margin: 0;
    font-size: 16px;
    letter-spacing: 1px;
}
.close-modal-x-btn {
    background: none; border: none; color: #64748b; font-size: 20px; cursor: pointer; transition: color 0.2s;
}
.close-modal-x-btn:hover { color: #ef4444; }
.modal-textarea-input {
    width: 100%; height: 100px; background: #111827; border: 1px solid rgba(56,189,248,0.2);
    border-radius: 8px; color: #fff; padding: 12px; font-family: inherit; font-size: 14px;
    resize: none; box-sizing: border-box; margin-bottom: 16px;
}
.modal-textarea-input:focus { border-color: #38bdf8; outline: none; }

/* ================================================================================= */
/* INTERACTIVE MODAL COMPONENT HUD CLASSES                                           */
/* ================================================================================= */
.fostered-modal-shroud { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(3,6,13,0.95); z-index:99999; align-items:center; justify-content:center; padding:20px; box-sizing:border-box; backdrop-filter: blur(8px); }
.fostered-modal-vault { background:#0a1122; border: 1px solid rgba(56,189,248,0.3); width:100%; max-width:400px; padding:30px; border-radius:12px; text-align:center; box-shadow: 0 20px 40px rgba(0,0,0,0.8); }
.fostered-modal-vault h3 { font-family:'Orbitron', sans-serif; color:#38bdf8; font-size:16px; margin:0 0 10px 0; letter-spacing:1px; }
.fostered-modal-vault p { font-family:'Montserrat', sans-serif; color:#94a3b8; font-size:12px; margin:0 0 20px 0; line-height:1.5; }
.fostered-modal-vault input[type="email"] { width:100%; padding:12px; background:#03060d; border:1px solid #334155; border-radius:8px; color:#fff; font-size:14px; text-align:center; box-sizing:border-box; margin-bottom:15px; }

.fostered-processing-shroud { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: radial-gradient(circle at center, #0c152b 0%, #040812 100%); z-index: 100000; align-items: center; justify-content: center; text-align: center; font-family: 'Orbitron', sans-serif; padding: 30px; box-sizing: border-box; }
.fostered-processing-box { max-width: 540px; width: 100%; background: rgba(5,9,20,0.85); border: 1px solid rgba(56,189,248,0.35); padding: 40px; border-radius: 16px; box-shadow: 0 25px 60px rgba(0,0,0,0.8), inset 0 0 30px rgba(56,189,248,0.04); backdrop-filter: blur(12px); }
.fostered-processing-box h2 { font-size: 24px; font-weight: 900; margin: 0 0 15px 0; letter-spacing: 2px; color: #38bdf8; text-shadow: 0 0 12px rgba(56,189,248,0.4); text-transform: uppercase; }
.fostered-processing-box p { font-family: 'Montserrat', sans-serif; font-size: 14px; color: #ffffff; margin: 0 0 35px 0; font-weight: 500; line-height: 1.6; }
.fostered-spinner { width: 55px; height: 55px; border: 4px solid rgba(56,189,248,0.1); border-top-color: #38bdf8; border-radius: 50%; margin: 0 auto 25px auto; animation: fostered_spin_loop 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.fostered-processing-box .fostered-status-ticker { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; color: #38bdf8; background: rgba(56,189,248,0.06); border: 1px solid rgba(56,189,248,0.15); padding: 8px 18px; border-radius: 20px; display: inline-block; }
@keyframes fostered_spin_loop { to { transform: rotate(360deg); } }

.fostered-choice-container { display: none; flex-direction: column; gap: 12px; margin-top: 5px; width: 100%; max-width: 400px; margin-left: auto; margin-right: auto; }
.fostered-choice-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 30px; font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none !important; transition: all 0.2s; cursor: pointer; border: 1px solid transparent; box-shadow: 0 4px 15px rgba(0,0,0,0.5); text-align: center; box-sizing: border-box; color: #fff !important; }
.btn-lab-upsell { background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%); border-color: rgba(56,189,248,0.2); }
.btn-lab-upsell:hover { transform: translateY(-2px); filter: brightness(1.15); }
.btn-browse-all { background: rgba(12, 21, 43, 0.8); border: 1px solid rgba(56, 189, 248, 0.45); color: #38bdf8 !important; }
.btn-browse-all:hover { background: rgba(56, 189, 248, 0.12); color: #ffffff !important; }
.btn-go-cart { background: linear-gradient(180deg, #10b981 0%, #047857 100%); }
.btn-go-cart:hover { transform: translateY(-2px); filter: brightness(1.15); }

@media (min-width: 769px) {
    .drawer-text-config,
    #drawer-text-config {
        display: none !important;
    }
    .studio-mobile-accordion-wrapper {
        display: contents !important;
    }
    .studio-mobile-accordion-btn {
        display: none !important;
    }
}

.desktop-control-title-row {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 100%;
}
.desktop-control-num-box {
    width: 48px !important; 
    max-width: 48px !important;
    padding: 3px 4px !important;
    background: #111827 !important;
    border: 1px solid rgba(56,189,248,0.3) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    text-align: center !important;
    font-family: inherit !important;
    box-sizing: border-box !important;
    height: 24px !important;
}
.desktop-control-num-box:focus {
    border-color: #38bdf8;
    outline: none;
}

.mobile-control-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 2px !important;
}
.mobile-control-num-box {
    width: 42px !important; 
    max-width: 42px !important;
    height: 20px !important;
    padding: 0px 2px !important;
    background: #111827 !important;
    border: 1px solid rgba(56,189,248,0.2) !important;
    color: #38bdf8 !important; 
    border-radius: 4px !important;
    font-size: 10px !important;
    text-align: center !important;
    font-family: inherit !important;
}

.desktop-control-row-three-col {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1.2fr !important;
    gap: 10px !important;
    align-items: end !important;
    width: 100% !important;
    margin-bottom: 4px !important;
}

/* ================================================================================= */
/* LANDMARK SECTION 11: RESPONSIVE SCREEN BREAKPOINT TRANSLATIONS                  */
/* ================================================================================= */
@media (max-width: 991px) {
    .studio-canvas-row { 
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .fostered-external-branding { padding: 10px 5px !important; text-align: center; }
    .studio-logo-mark { font-size: 28px !important; }
    .studio-logo-text { font-size: 20px !important; }
    .fostered-studio-workspace { padding: 10px !important; }
    .studio-main-interface-wrapper { grid-template-columns: 1fr !important; gap: 5px !important; }
    .desktop-panel-only { display: none !important; }
    .mobile-tool-trigger-bar { display: flex !important; }
    
    .studio-canvas-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }
    
    .studio-mobile-accordion-wrapper {
        display: block !important;
        width: 100% !important;
        margin-top: 5px;
    }
    
    .studio-mobile-accordion-btn {
        width: 100%;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px !important;
        background: #111827 !important;
        color: #38bdf8 !important;
        border: 1px solid rgba(56,189,248,0.25) !important;
        border-radius: 8px !important;
        font-family: inherit !important;
        font-size: 13px !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
    }

    .studio-mobile-accordion-tray {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        margin-top: 0;
        width: 100% !important;
    }

    .studio-mobile-accordion-tray.is-expanded {
        max-height: 2000px; 
        opacity: 1;
        visibility: visible;
        margin-top: 12px;
    }
    
    .studio-canvas-panel { 
        display: flex !important;
        width: 100% !important; 
        padding: 15px 0 !important;
        position: relative !important;
    }
    
    /* CSS Target Shroud to handle mobile focused-accordion display mutations cleanly */
    .studio-canvas-panel.mobile-view-hidden {
        display: none !important;
    }
    
    .fostered-canvas-base { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; }
    .studio-sub-canvas-tray { flex-direction: column !important; padding: 12px !important; gap: 10px !important; }
    .fostered-action-cluster { display: flex !important; flex-wrap: wrap; gap: 8px !important; width: 100% !important; }
    .fostered-action-cluster .fostered-studio-btn { flex: 1 1 calc(50% - 4px) !important; padding: 10px 12px !important; }
    
    .fostered-studio-btn.flip-view-btn { display: inline-block !important; flex: 1 1 100% !important; order: 3; } 
    .cart-submit-btn { width: 100% !important; padding: 12px 15px !important; }
}

.cart-submit-btn {
    width: 100% !important;
    padding: 12px 15px !important;
}

/* Cart mockup thumbnail */
.fostered-cart-thumbnail{
    width:100px !important;
    height:100px !important;
    object-fit:contain !important;
    border-radius:6px !important;
}
/* Advanced layer controls */
.studio-layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}
.fostered-layer-action{background:#111827;border:1px solid rgba(56,189,248,.2);color:#cbd5e1;border-radius:8px;padding:8px 6px;font-size:10px;font-weight:700;cursor:pointer}
.fostered-layer-action:hover:not(:disabled){color:#38bdf8;border-color:#38bdf8}
.fostered-layer-action:disabled{opacity:.35;cursor:not-allowed}
.fostered-embroidered-render{filter:url(#fostered-embroidery-filter) drop-shadow(1px 1px 1.2px rgba(0,0,0,.30));}
.fostered-text-embroidered-render{filter:url(#fostered-text-embroidery-filter) drop-shadow(1px 1px 1.2px rgba(0,0,0,.30));}
.fostered-orientation-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.fostered-orientation-option{background:#08111f;border:1px solid rgba(56,189,248,.25);border-radius:14px;color:#fff;padding:20px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px}
.fostered-orientation-option span{font-size:30px}.fostered-orientation-option strong{font-size:15px}.fostered-orientation-option small{color:#94a3b8}.fostered-orientation-option.is-selected{border-color:#38bdf8;box-shadow:0 0 18px rgba(56,189,248,.18)}
.fostered-stock-svg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;max-height:55vh;overflow:auto}
.fostered-stock-svg-card{background:#08111f;border:1px solid rgba(56,189,248,.2);border-radius:12px;color:#fff;padding:10px;cursor:pointer}.fostered-stock-svg-card img{width:100%;height:90px;object-fit:contain;background:#fff;border-radius:8px}.fostered-stock-svg-card strong{display:block;margin-top:8px;font-size:11px}.fostered-stock-empty{padding:30px;text-align:center;color:#94a3b8}
@media(max-width:768px){.studio-layer-actions{grid-template-columns:1fr 1fr}.fostered-orientation-options{grid-template-columns:1fr 1fr}}
.fostered-canvas-base[data-orientation="vertical"]{aspect-ratio:3 / 4;}
.fostered-canvas-base[data-orientation="horizontal"]{aspect-ratio:4 / 3;}

/* v11.2 design-control expansion: alignment, transforms, history, B&W */
.studio-action-section{margin-top:12px;padding-top:10px;border-top:1px solid rgba(56,189,248,.12)}
.studio-action-section-title{font-size:10px;letter-spacing:1.2px;color:#38bdf8;font-weight:800;margin-bottom:7px}
.studio-transform-actions{margin-top:0}
.studio-history-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:6px}
.fostered-bw-render{filter:grayscale(1)}

/* Temporary vertical center guide used while dragging a design layer.
   It is editing-only UI and is removed from proof/production captures. */
.fostered-center-snap-guide {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-1px);
    background: rgba(56, 189, 248, 0.85);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
    pointer-events: none;
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.08s ease;
}
.fostered-center-snap-guide.is-visible { opacity: 1; }
