/* ==========================================================================
   Tiger Lumise Custom — v2.1.0
   CustomInk-inspired UI overlay for the Lumise product designer.
   Responsive: Desktop (sidebar + welcome + product bar) + Mobile (bottom bars).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Z-INDEX SCALE
   10000  sidebar (desktop) / idle toolbar (mobile)
   10001  object toolbar
   10002  bottom sheets (add text, edit text)
   10003  panels (color, shape, outline, SVG colors)
   10004  font panel (fullscreen mobile / side panel desktop)
   10005  art browser (fullscreen mobile / side panel desktop)
   10006  welcome panel + product bar (desktop)
   -------------------------------------------------------------------------- */


/* ==========================================================================
   A. DESKTOP LAYOUT — Lumise editor overrides (inside the editor iframe)
   ========================================================================== */

@media (min-width: 769px) {

    /* Replace the native icon column with our sidebar (same 70px slot) */
    #LumiseDesign .lumise-left-nav-wrp { visibility: hidden !important; }

    /* Native side panels open next to our sidebar */
    #LumiseDesign #lumise-left .lumise-tab-body-wrp {
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    }

    /* We provide our own text tools */
    #lumise-text.lumise-tab-body-wrp.active,
    #lumise-text-tools,
    #lumise-svg-colors,
    #lumise-svg-colors * { display: none !important; }

    /* Clean white header like CustomInk */
    #LumiseDesign #lumise-navigations {
        background: #fff !important;
        border-bottom: 1px solid #e6e6e6 !important;
        box-shadow: none !important;
    }
    #LumiseDesign #lumise-navigations > ul > li,
    #LumiseDesign #lumise-navigations > ul > li > span,
    #LumiseDesign #lumise-navigations > ul > li > a,
    #LumiseDesign #lumise-navigations #lumise-design-undo,
    #LumiseDesign #lumise-navigations #lumise-design-redo { color: #222 !important; }
    #LumiseDesign #lumise-navigations svg,
    #LumiseDesign #lumise-navigations svg path { fill: #222 !important; }
    #LumiseDesign #lumise-navigations #lumise-cart-action {
        background: #222 !important;
        color: #fff !important;
        border-radius: 8px !important;
        border: 0 !important;
        font-weight: 700 !important;
    }
    #LumiseDesign #lumise-navigations #back-btn a,
    #LumiseDesign #lumise-navigations .back_shop {
        background: #fff !important;
        color: #222 !important;
        border: 1.5px solid #999 !important;
        border-radius: 8px !important;
    }

    /* Soft grey canvas background */
    #LumiseDesign #lumise-main { background: #eceef0 !important; }
    #LumiseDesign #lumise-main.tiger-shifted .lumise-stage {
        transform: translateX(var(--tiger-shift, 0px));
        transition: transform .25s ease;
    }

    /* Front / Back views — right-hand card */
    #LumiseDesign #lumise-stage-nav {
        position: absolute !important;
        top: 70px !important;
        right: 16px !important;
        left: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        width: auto !important;
        background: #fff !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1) !important;
        padding: 8px 6px !important;
        z-index: 60 !important;
    }
    #LumiseDesign #lumise-stage-nav ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #LumiseDesign #lumise-stage-nav li[data-nav] { display: none !important; }
    #LumiseDesign #lumise-stage-nav li[data-stage] {
        list-style: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 76px !important;
        height: auto !important;
        padding: 4px 4px 6px !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        cursor: pointer !important;
        float: none !important;
    }
    #LumiseDesign #lumise-stage-nav li[data-stage] img {
        width: 62px !important;
        height: 62px !important;
        object-fit: contain !important;
        border: 0 !important;
        margin: 0 !important;
    }
    #LumiseDesign #lumise-stage-nav li[data-stage] span {
        display: block !important;
        font-size: 12px !important;
        color: #333 !important;
        margin-top: 3px !important;
        position: static !important;
        background: none !important;
    }
    #LumiseDesign #lumise-stage-nav li[data-stage].active {
        box-shadow: inset 0 -3px 0 #ff6a00 !important;
        border-radius: 8px 8px 0 0 !important;
    }

    /* Hide mobile-only elements on desktop */
    #tiger-idle-toolbar,
    #tiger-start-panel { display: none !important; }
}


/* ==========================================================================
   B. MOBILE LAYOUT — Lumise workspace overrides
   ========================================================================== */

@media (max-width: 768px) {

    #LumiseDesign #lumise-workspace {
        overflow: hidden !important;
        position: relative !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    #LumiseDesign #lumise-main {
        margin-top: 0 !important;
    }

    #LumiseDesign #lumise-stages {
        position: absolute !important;
        bottom: 58px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 50 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #LumiseDesign #lumise-stage-nav {
        margin: 0 auto !important;
        transform: translateY(-8px) !important;
    }

    #LumiseDesign #lumise-workspace::after {
        content: none !important;
    }

    /* Hide native Lumise text panel on mobile */
    #lumise-text.lumise-tab-body-wrp.active {
        display: none !important;
    }

    /* Hide native text sub-panels */
    #lumise-text-tools > li[data-tool="spacing"] > ul[data-view="sub"],
    #lumise-text-tools > li[data-tool="text-effect"] > ul[data-view="sub"] {
        display: none !important;
    }

    #lumise-svg-colors,
    #lumise-svg-colors * {
        display: none !important;
    }

    #lumise-text-tools {
        display: none !important;
    }

    /* Hide desktop-only elements on mobile */
    #tiger-desktop-sidebar,
    #tiger-welcome-panel,
    #tiger-product-bar {
        display: none !important;
    }
}


/* ==========================================================================
   1. DESKTOP SIDEBAR (dark, CustomInk style)
   ========================================================================== */

#tiger-desktop-sidebar {
    display: none;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0;
    top: 54px;
    bottom: 0;
    width: 70px;
    background: #1f1f21;
    z-index: 10000;
    padding: 10px 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
#tiger-desktop-sidebar::-webkit-scrollbar { display: none; }
body.tiger-standalone #tiger-desktop-sidebar { bottom: 64px; }

@media (min-width: 769px) {
    #tiger-desktop-sidebar { display: flex; }
}

#tiger-desktop-sidebar .td-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-height: 66px;
    margin: 2px 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 8px 2px 6px;
    color: #fff;
    transition: background 0.15s, color 0.15s;
}
#tiger-desktop-sidebar .td-btn:hover { background: rgba(255, 255, 255, 0.08); }
#tiger-desktop-sidebar .td-btn.active { background: rgba(255, 255, 255, 0.14); }
#tiger-desktop-sidebar .td-btn.active .td-icon { color: #ff6a00; }

#tiger-desktop-sidebar .td-icon {
    display: block;
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    color: #fff;
}
#tiger-desktop-sidebar .td-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
}
#tiger-desktop-sidebar .td-label {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    color: #fff;
}
#tiger-desktop-sidebar .td-badge {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #d62d20;
    font-size: 9px;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 3px;
    line-height: 1.5;
    border: 1px solid #d62d20;
}


/* ==========================================================================
   2. DESKTOP WELCOME PANEL ("What's next for you?")
   ========================================================================== */

#tiger-welcome-panel {
    display: none;
    position: fixed;
    left: 82px;
    top: 66px;
    bottom: 14px;
    width: 440px;
    max-width: calc(50vw - 60px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 40px 36px 30px;
    box-sizing: border-box;
    z-index: 200;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    flex-direction: column;
    overflow-y: auto;
}
body.tiger-standalone #tiger-welcome-panel { bottom: 78px; }

@media (min-width: 769px) {
    #tiger-welcome-panel { display: flex; }
    #tiger-welcome-panel.tiger-hidden { display: none !important; }
}

#tiger-welcome-panel h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin: 0 0 30px;
    text-align: center;
    letter-spacing: -0.2px;
}

#tiger-welcome-panel .tw-grid {
    display: grid;
    grid-template-columns: repeat(2, 140px);
    justify-content: center;
    gap: 22px 28px;
}

#tiger-welcome-panel .tw-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 0;
    border-radius: 10px;
    background: transparent;
    padding: 10px 6px;
    cursor: pointer;
    gap: 10px;
    color: #333;
    transition: background 0.15s;
}
#tiger-welcome-panel .tw-card:hover { background: #f6f6f6; }
#tiger-welcome-panel .tw-card:hover .tw-card-icon { color: #ff6a00; }

#tiger-welcome-panel .tw-card-icon {
    display: block;
    width: 84px;
    height: 64px;
    color: #333;
}
#tiger-welcome-panel .tw-card-icon svg { width: 100%; height: 100%; display: block; }

#tiger-welcome-panel .tw-card-label {
    font-size: 15px;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

#tiger-welcome-panel .tw-upload-info {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
}
#tiger-welcome-panel .tw-upload-info h3 {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin: 0 0 12px;
}
#tiger-welcome-panel .tw-upload-info p {
    font-size: 14px;
    color: #333;
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#tiger-welcome-panel .tw-upload-info p .tw-p-icon { font-size: 15px; }


/* ==========================================================================
   3. DESKTOP BOTTOM PRODUCT BAR
   ========================================================================== */

#tiger-product-bar {
    display: none;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 10006;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    gap: 16px;
}

@media (min-width: 769px) {
    #tiger-product-bar { display: flex; }
}

#tiger-product-bar .tp-add-products {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #999;
    border-radius: 22px;
    background: #fff;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    color: #333;
    transition: border-color 0.15s, color 0.15s;
}

#tiger-product-bar .tp-add-products:hover {
    border-color: #ff6a00;
    color: #ff6a00;
}

#tiger-product-bar .tp-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

#tiger-product-bar .tp-product-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
}

#tiger-product-bar .tp-product-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

#tiger-product-bar .tp-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#tiger-product-bar .tp-product-links {
    display: flex;
    gap: 12px;
}

#tiger-product-bar .tp-product-links a {
    font-size: 12px;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
    white-space: nowrap;
}

#tiger-product-bar .tp-product-links a:hover {
    color: #ff6a00;
}

#tiger-product-bar .tp-product-color-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

#tiger-product-bar .tp-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: inline-block;
    flex-shrink: 0;
}

#tiger-product-bar .tp-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}

#tiger-product-bar .tp-save-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #999;
    border-radius: 8px;
    background: #fff;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #333;
    white-space: nowrap;
    transition: border-color 0.15s;
}

#tiger-product-bar .tp-save-btn:hover {
    border-color: #333;
}

#tiger-product-bar .tp-price-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 8px;
    background: #222;
    color: #fff;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}

#tiger-product-bar .tp-price-btn:hover {
    background: #000;
}


/* ==========================================================================
   4. MOBILE START PANEL (centered on empty canvas)
   ========================================================================== */

#tiger-start-panel {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

#tiger-start-panel button {
    width: 100%;
    height: 44px;
    border-radius: 4px;
    border: 2px solid #ff6a00;
    background: #fff;
    color: #ff6a00;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s;
}

#tiger-start-panel button:first-child {
    background: #ff6a00;
    color: #fff;
}

#tiger-start-panel button:active {
    transform: scale(0.98);
}


/* ==========================================================================
   5. MOBILE IDLE TOOLBAR (bottom bar — no object selected)
   ========================================================================== */

#tiger-idle-toolbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 425px);
    height: 72px;
    background: #fff;
    z-index: 10000;
    border-top: 1px solid #ddd;
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: stretch;
    font-family: Arial, sans-serif;
}

#tiger-idle-toolbar .tp-idle-tool {
    flex: 1;
    border: 0;
    background: #fff;
    color: #333;
    padding: 7px 2px 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    line-height: 1.15;
}

#tiger-idle-toolbar .tp-idle-tool:active {
    background: #f5f5f5;
}

#tiger-idle-toolbar .tp-idle-icon {
    font-size: 22px;
    line-height: 1;
    color: #ff6a00;
}


/* ==========================================================================
   6. OBJECT TOOLBAR (bottom bar — object selected)
   ========================================================================== */

#tiger-object-toolbar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 425px);
    height: 76px;
    background: #fff;
    z-index: 10001;
    border-top: 1px solid #ddd;
    box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.12);
    display: none;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    font-family: Arial, sans-serif;
}

#tiger-object-toolbar::-webkit-scrollbar {
    display: none;
}

/* Desktop adjustments for object toolbar */
@media (min-width: 769px) {
    #tiger-object-toolbar {
        left: calc(50% + 35px);
        bottom: 16px;
        border-radius: 14px;
        width: auto;
        max-width: calc(100% - 100px);
        height: 68px;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }
}

#tiger-object-toolbar .tp-tool {
    flex: 0 0 74px;
    min-width: 74px;
    border: 0;
    border-right: 1px solid #eee;
    background: #fff;
    color: #333;
    padding: 7px 5px 5px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

@media (min-width: 769px) {
    #tiger-object-toolbar .tp-tool {
        flex: 0 0 84px;
        min-width: 84px;
    }
}

#tiger-object-toolbar .tp-tool:active {
    background: #f5f5f5;
}

#tiger-object-toolbar .tp-icon {
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    color: #ff6a00;
}

#tiger-object-toolbar .tp-label {
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
}


/* ==========================================================================
   7. BOTTOM SHEETS (Add Text / Edit Text)
   ========================================================================== */

.tiger-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 425px);
    background: #fff;
    z-index: 10002;
    padding: 18px 22px 22px;
    box-sizing: border-box;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
    display: none;
    font-family: Arial, sans-serif;
}

@media (min-width: 769px) {
    .tiger-sheet {
        width: min(100%, 500px);
        left: calc(50% + 35px);
        bottom: 16px;
        border-radius: 14px;
    }
}

.tiger-sheet.active {
    display: block;
}

.tiger-sheet .tp-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tiger-sheet .tp-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.tiger-sheet .tp-sheet-close {
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #222;
}

.tiger-sheet input[type="text"],
.tiger-sheet textarea {
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    outline: none;
}

.tiger-sheet input[type="text"] {
    height: 48px;
    padding: 0 14px;
}

.tiger-sheet textarea {
    min-height: 70px;
    resize: none;
    padding: 12px 14px;
}

.tiger-sheet input:focus,
.tiger-sheet textarea:focus {
    border-color: #ff6a00;
}

.tiger-sheet .tp-btn-primary {
    margin-top: 16px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 4px;
    background: #ff6a00;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================================================
   8. PANEL BASE (shared by color, shape, outline, SVG colors)
   ========================================================================== */

.tiger-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 425px);
    background: #fff;
    z-index: 10003;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.16);
    font-family: Arial, sans-serif;
    display: none;
    overflow: hidden;
}

@media (min-width: 769px) {
    .tiger-panel {
        width: min(100%, 500px);
        left: calc(50% + 35px);
        bottom: 96px;
        border-radius: 14px;
    }
}

.tiger-panel.active {
    display: block;
}

.tiger-panel .tp-panel-head {
    height: 52px;
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.tiger-panel .tp-panel-head .tp-back,
.tiger-panel .tp-panel-head .tp-done {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #ff6a00;
    font-size: 14px;
}

.tiger-panel .tp-panel-head .tp-back {
    font-size: 28px;
    padding-left: 16px;
    text-align: left;
}

.tiger-panel .tp-panel-head .tp-done {
    padding-right: 16px;
    text-align: right;
}

.tiger-panel .tp-panel-head .tp-panel-title {
    text-align: center;
    font-size: 15px;
    color: #333;
}


/* ==========================================================================
   9. COLOR PANEL (text fill colors)
   ========================================================================== */

#tiger-color-panel .tp-color-row {
    display: flex;
    gap: 10px;
    padding: 18px 16px 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

#tiger-color-panel .tp-color-row::-webkit-scrollbar { display: none; }

.tp-color-swatch {
    position: relative;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid #ccc;
    cursor: pointer;
    box-sizing: border-box;
    padding: 0;
}

.tp-color-swatch.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #ff6a00;
}

.tp-color-swatch.active::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.tp-color-swatch[data-color="#ffffff"].active::after {
    color: #111;
    text-shadow: none;
}


/* ==========================================================================
   10. SHAPE PANEL (text effects)
   ========================================================================== */

#tiger-shape-panel .tp-shapes {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px 14px;
    overflow: hidden;
}

#tiger-shape-panel .tp-shape {
    flex: 0 0 42%;
    min-width: 120px;
    max-width: 160px;
    height: 65px;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

#tiger-shape-panel .tp-shape.active {
    border-color: #ff6a00;
    background: #fff8f3;
}

#tiger-shape-panel .tp-shape .tp-preview {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    line-height: 1;
}

#tiger-shape-panel .tp-shape .tp-name {
    font-size: 11px;
    color: #666;
}


/* ==========================================================================
   11. OUTLINE PANEL (stroke color + thickness)
   ========================================================================== */

#tiger-outline-panel .tp-outline-step { display: none; }
#tiger-outline-panel .tp-outline-step.active { display: block; }

#tiger-outline-panel .tp-outline-colors {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
#tiger-outline-panel .tp-outline-colors::-webkit-scrollbar { display: none; }

#tiger-outline-panel .tp-outline-colors button {
    position: relative;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    padding: 0;
}

#tiger-outline-panel .tp-outline-colors button.active::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

#tiger-outline-panel .tp-outline-colors button[data-color="#ffffff"].active::after {
    color: #111;
    text-shadow: none;
}

#tiger-outline-panel .tp-outline-thickness {
    height: 80px;
    padding: 14px 16px 18px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
}

#tiger-outline-panel .tp-outline-thickness span {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

#tiger-outline-panel .tp-outline-range {
    flex: 1;
    cursor: pointer;
    accent-color: #ff6a00;
}


/* ==========================================================================
   12. FONT PANEL
   ========================================================================== */

#tiger-font-panel {
    position: fixed;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 425px);
    background: #fff;
    z-index: 10004;
    display: none;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Desktop: side panel from left */
@media (min-width: 769px) {
    #tiger-font-panel {
        left: 70px;
        top: 54px;
        bottom: 0;
        width: 380px;
        transform: none;
        border-right: 1px solid #e0e0e0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }
}

#tiger-font-panel.active {
    display: flex;
    flex-direction: column;
}

#tiger-font-panel .tp-font-header {
    height: 54px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    box-sizing: border-box;
    border-bottom: 1px solid #eee;
    background: #fff;
}

#tiger-font-panel .tp-font-back,
#tiger-font-panel .tp-font-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

#tiger-font-panel .tp-font-title {
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: 500;
}

#tiger-font-panel .tp-font-search-wrap {
    padding: 10px 16px 4px;
}

#tiger-font-panel .tp-font-search {
    width: 100%;
    height: 48px;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 0 14px;
    box-sizing: border-box;
    font-size: 15px;
    outline: none;
}

#tiger-font-panel .tp-font-search:focus {
    border-color: #ff6a00;
}

#tiger-font-panel .tp-font-categories-link {
    padding: 8px 16px 12px;
    color: #ff6a00;
    font-size: 15px;
    cursor: pointer;
}

#tiger-font-panel .tp-font-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 30px;
}

#tiger-font-panel .tp-font-item {
    padding: 14px 4px 16px;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid #f3f3f3;
}

#tiger-font-panel .tp-font-preview {
    display: block;
    font-size: 34px;
    line-height: 1.15;
    color: #111;
    margin-bottom: 4px;
    word-break: break-word;
}

#tiger-font-panel .tp-font-name {
    font-size: 14px;
    color: #999;
}

#tiger-font-panel .tp-font-categories {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px 30px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#tiger-font-panel.categories-mode .tp-font-list,
#tiger-font-panel.categories-mode .tp-font-categories-link { display: none; }

#tiger-font-panel.categories-mode .tp-font-categories { display: grid; }

#tiger-font-panel .tp-category {
    min-height: 96px;
    border: 0;
    border-radius: 7px;
    background: #f5f5f5;
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
    padding: 10px;
}


/* ==========================================================================
   13. ART BROWSER
   ========================================================================== */

#tiger-art-browser {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(100%, 425px);
    height: 100dvh;
    max-height: 802px;
    background: #fff;
    z-index: 10005;
    display: none;
    flex-direction: column;
    font-family: Arial, sans-serif;
    color: #222;
}

/* Desktop: side panel from left */
@media (min-width: 769px) {
    #tiger-art-browser {
        left: 70px;
        top: 54px;
        bottom: 0;
        width: 420px;
        height: auto;
        max-height: none;
        transform: none;
        border-right: 1px solid #e0e0e0;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }
}

#tiger-art-browser .tp-art-head {
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

#tiger-art-browser .tp-art-head button {
    border: 0;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

#tiger-art-browser .tp-art-title {
    text-align: center;
    font-size: 15px;
    letter-spacing: 2px;
}

#tiger-art-browser .tp-art-search {
    padding: 16px;
    flex: 0 0 auto;
}

#tiger-art-browser .tp-art-search input {
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 0 14px;
    font-size: 16px;
}

#tiger-art-browser .tp-art-body {
    flex: 1;
    overflow: auto;
    padding: 0 16px 22px;
}

#tiger-art-browser .tp-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#tiger-art-browser .tp-category-card {
    min-height: 122px;
    border: 0;
    border-radius: 10px;
    background: #f4f4f4;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

#tiger-art-browser .tp-category-img {
    width: 70px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#tiger-art-browser .tp-category-name {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

#tiger-art-browser .tp-arts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

#tiger-art-browser .tp-art-card {
    height: 145px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding: 0;
}

#tiger-art-browser .tp-art-loading {
    text-align: center;
    color: #777;
    padding: 40px 10px;
}


/* ==========================================================================
   14. SVG GROUP COLORS PANEL
   ========================================================================== */

#tiger-svg-colors-panel .tp-edit-row {
    width: 100%;
    min-height: 64px;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#tiger-svg-colors-panel .tp-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#tiger-svg-colors-panel .tp-info strong {
    font-size: 14px;
    color: #1646e8;
}

#tiger-svg-colors-panel .tp-info small {
    margin-top: 3px;
    font-size: 12px;
    color: #1646e8;
}

#tiger-svg-colors-panel .tp-swatch-preview {
    margin-left: auto;
    display: flex;
    gap: 6px;
    max-width: 165px;
    overflow: hidden;
}

#tiger-svg-colors-panel .tp-swatch-preview button {
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
}

#tiger-svg-colors-panel .tp-arrow {
    margin-left: 7px;
    color: #1646e8;
    font-size: 28px;
}

#tiger-svg-colors-panel .tp-svg-list {
    max-height: 320px;
    overflow-y: auto;
}

#tiger-svg-colors-panel .tp-svg-list button {
    width: 100%;
    height: 58px;
    padding: 0 16px;
    border: 0;
    border-bottom: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#tiger-svg-colors-panel .tp-svg-list-color {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 10px;
}

#tiger-svg-colors-panel .tp-svg-list-name {
    flex: 1;
    text-align: left;
    font-size: 14px;
}

#tiger-svg-colors-panel .tp-svg-list-arrow {
    font-size: 28px;
}

#tiger-svg-colors-panel .tp-svg-palette {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 16px 14px;
    box-sizing: border-box;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
#tiger-svg-colors-panel .tp-svg-palette::-webkit-scrollbar { display: none; }

#tiger-svg-colors-panel .tp-svg-palette button {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border-radius: 5px;
    border: 1px solid #ddd;
    position: relative;
    cursor: pointer;
}

#tiger-svg-colors-panel .tp-svg-palette button.active {
    border-color: #1646e8;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1646e8;
}

#tiger-svg-colors-panel .tp-svg-palette button.active::after {
    content: "\2713";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

#tiger-svg-colors-panel .tp-svg-palette button[data-color="#ffffff"].active::after {
    color: #111;
    text-shadow: none;
}


/* ==========================================================================
   15. GLOBAL HELPERS
   ========================================================================== */

.tiger-hidden {
    display: none !important;
}

/* Hide font-panel native Lumise controls */
body.tiger-font-panel-open #lumise-text-tools,
body.tiger-font-panel-open #lumise-top-tools,
body.tiger-font-panel-open #lumise-fonts {
    display: none !important;
}


/* ==========================================================================
   16. STORE PAGE AROUND THE EDITOR (parent page, CustomInk layout)
   ========================================================================== */

#tiger-dl-below-src { display: none !important; }

body.tiger-dl-page .tiger-dl-bar,
body.tiger-dl-page .tiger-dl-details,
body.tiger-dl-page .tiger-dl-more {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #222;
    box-sizing: border-box;
}
body.tiger-dl-page .tiger-dl-bar *,
body.tiger-dl-page .tiger-dl-details *,
body.tiger-dl-page .tiger-dl-more * { box-sizing: border-box; }

@media (min-width: 769px) {
    /* Full-bleed editor */
    body.tiger-dl-page iframe[src*="lumise_iframe"] {
        display: block;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        border: 0 !important;
        border-top: 1px solid #e6e6e6 !important;
    }
    body.tiger-dl-page .page-content,
    body.tiger-dl-page .site-main { overflow: visible !important; }
}

/* ---- Product bar (sticky: bottom of the editor, top of the page on scroll) */
.tiger-dl-bar {
    position: sticky;
    top: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 72px;
    padding: 0 22px;
    background: #fff;
    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;
}
body.admin-bar .tiger-dl-bar { top: 32px; }

.tiger-dl-bar .tdl-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 22px;
    border: 2px solid #222;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 700;
    color: #222 !important;
    text-decoration: none !important;
    white-space: nowrap;
    background: #fff;
}
.tiger-dl-bar .tdl-add:hover { background: #f5f5f5; }
.tiger-dl-bar .tdl-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #222;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
}

.tiger-dl-bar .tdl-prod {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.tiger-dl-bar .tdl-thumb {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 4px;
    border-bottom: 3px solid #ff6a00;
    padding-bottom: 2px;
    flex-shrink: 0;
}
.tiger-dl-bar .tdl-text {
    border-left: 1px solid #ddd;
    padding-left: 16px;
    min-width: 0;
}
.tiger-dl-bar .tdl-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
}
.tiger-dl-bar .tdl-name { overflow: hidden; text-overflow: ellipsis; }
.tiger-dl-bar .tdl-row a {
    font-size: 15px;
    color: #222 !important;
    text-decoration: underline !important;
    font-weight: 600;
}
.tiger-dl-bar .tdl-row a:hover { color: #ff6a00 !important; }
.tiger-dl-bar .tdl-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.tiger-dl-bar .tdl-color { color: #555; font-size: 15px; }

.tiger-dl-bar .tdl-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.tiger-dl-bar .tdl-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 20px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.tiger-dl-bar .tdl-save { background: #fff; color: #222; border: 2px solid #222; }
.tiger-dl-bar .tdl-save:hover { background: #f5f5f5; }
.tiger-dl-bar .tdl-sep { font-weight: 400; opacity: .6; }
.tiger-dl-bar .tdl-price { background: #222; color: #fff; border: 2px solid #222; }
.tiger-dl-bar .tdl-price:hover { background: #000; }

@media (max-width: 768px) {
    .tiger-dl-bar { display: none !important; }
}
@media (max-width: 1100px) {
    .tiger-dl-bar .tdl-row a { display: none; }
    .tiger-dl-bar .tdl-add { padding: 0 14px; }
}

/* ---- Product details */
.tiger-dl-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 60px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 50px;
}
.tiger-dl-details h2 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 14px;
    color: #111;
}
.tiger-dl-details .tdl-desc { font-size: 17px; line-height: 1.5; color: #333; margin-bottom: 26px; }
.tiger-dl-details .tdl-acc { border-top: 1px solid #ddd; }
.tiger-dl-details .tdl-acc:last-child { border-bottom: 1px solid #ddd; }
.tiger-dl-details .tdl-acc summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-size: 19px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tiger-dl-details .tdl-acc summary::-webkit-details-marker { display: none; }
.tiger-dl-details .tdl-acc summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    margin-right: 6px;
    transition: transform .2s;
}
.tiger-dl-details .tdl-acc[open] summary::after { transform: rotate(-135deg); }
.tiger-dl-details .tdl-acc-body { padding: 0 0 20px; font-size: 16px; line-height: 1.55; color: #333; }
.tiger-dl-details .tdl-size { display: grid; grid-template-columns: 1fr 200px; gap: 20px; }
.tiger-dl-details .tdl-size strong { font-size: 17px; }
.tiger-dl-details .tdl-size p { margin: 8px 0 0; }

.tiger-dl-details .tdl-main-img {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f6f6f6;
}
.tiger-dl-details .tdl-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiger-dl-details .tdl-views-title { text-align: center; font-weight: 800; font-size: 17px; margin: 20px 0 12px; }
.tiger-dl-details .tdl-thumbs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tiger-dl-details .tdl-thumbs button {
    width: 66px;
    height: 78px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}
.tiger-dl-details .tdl-thumbs button.active { border-bottom: 3px solid #ff6a00; }
.tiger-dl-details .tdl-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 900px) {
    .tiger-dl-details { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- Buy more, save more */
.tiger-dl-more {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 24px 60px;
    border-top: 1px solid #e6e6e6;
    text-align: center;
}
.tiger-dl-more h3 { font-size: 19px; font-weight: 800; margin: 0 0 6px; color: #111; }
.tiger-dl-more .tdl-sub { font-size: 15px; color: #444; max-width: 520px; margin: 0 auto 22px; }
.tiger-dl-more .tdl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
    gap: 16px;
    text-align: left;
}
.tiger-dl-more .tdl-card {
    display: flex;
    flex-direction: column;
    padding: 8px 8px 14px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    color: #222 !important;
    text-decoration: none !important;
    background: #fff;
    transition: box-shadow .15s;
}
.tiger-dl-more .tdl-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.tiger-dl-more .tdl-card-img { display: block; background: #e9ebee; border-radius: 6px; overflow: hidden; aspect-ratio: 6 / 5; }
.tiger-dl-more .tdl-card-img img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; margin: 0 !important; }
.tiger-dl-more .tdl-card-name { font-size: 15px; line-height: 1.3; margin: 12px 0 14px; flex: 1; }
.tiger-dl-more .tdl-card-link { font-size: 15px; font-weight: 600; text-decoration: underline; }
.tiger-dl-more .tdl-card-more {
    background: #f1f2f4;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}
.tiger-dl-more .tdl-card-more .tdl-card-name { flex: 0; font-size: 17px; }
.tiger-dl-more .tdl-btn {
    display: inline-block;
    padding: 9px 22px;
    border: 2px solid #222;
    border-radius: 22px;
    font-weight: 800;
    font-size: 14px;
    background: #fff;
}
body.tiger-dl-page { overflow-x: clip; }



/* ==========================================================================
   17. DESKTOP — beat Lumise's own stacking & theme (inside the editor)
   ========================================================================== */
@media (min-width: 769px) {
    /* Native left container is a 420px grey layer at z-index 100001:
       make it see-through so only its open panels are visible/clickable */
    html body div#LumiseDesign div#lumise-left {
        background: transparent !important;
        pointer-events: none !important;
    }
    html body div#LumiseDesign div#lumise-left > .lumise-tab-body-wrp.active,
    html body div#LumiseDesign div#lumise-left > #lumise-side-close,
    html body div#LumiseDesign div#lumise-left #lumise-side-close,
    html body div#LumiseDesign div#lumise-left > #lumise-x-thumbn-preview {
        pointer-events: auto !important;
    }

    /* Our layers above Lumise's */
    #tiger-desktop-sidebar { z-index: 100010 !important; }
    #tiger-welcome-panel { z-index: 100002 !important; }
    #tiger-object-toolbar { z-index: 100011 !important; }
    .tiger-sheet { z-index: 100012 !important; }
    .tiger-panel { z-index: 100013 !important; }
    #tiger-font-panel { z-index: 100014 !important; }
    #tiger-art-browser { z-index: 100015 !important; }

    /* White header (Lumise custom.css forces the brand color) */
    html body div#LumiseDesign div#lumise-navigations {
        background: #fff !important;
        border-bottom: 1px solid #e6e6e6 !important;
    }
    html body div#LumiseDesign div#lumise-navigations ul[data-block] > li,
    html body div#LumiseDesign div#lumise-navigations ul[data-block] > li > span,
    html body div#LumiseDesign div#lumise-navigations ul[data-block] > li > a,
    html body div#LumiseDesign div#lumise-navigations #lumise-price,
    html body div#LumiseDesign div#lumise-navigations .lumise-price { color: #222 !important; }
    html body div#LumiseDesign div#lumise-navigations button.lumise-btn-primary,
    html body div#LumiseDesign div#lumise-navigations #lumise-cart-action {
        background: #222 !important;
        color: #fff !important;
        border-radius: 22px !important;
    }
}

/* Keep the site's floating cart bubble clear of the product bar */
body.tiger-dl-page .xoo-wsc-basket { bottom: 92px !important; }

/* Editor never scrolls; the shifted stage is clipped */
@media (min-width: 769px) {
    html:has(#LumiseDesign), html:has(#LumiseDesign) body { overflow: hidden !important; }
    html body div#LumiseDesign div#lumise-main { overflow: hidden !important; }
}

/* Mobile — our bottom toolbar replaces Lumise's tab bar; stay above Lumise layers */
@media (max-width: 768px) {
    html body div#LumiseDesign .lumise-left-nav-wrp { display: none !important; }
    #tiger-idle-toolbar { z-index: 100010 !important; }
    #tiger-object-toolbar { z-index: 100011 !important; }
    .tiger-sheet { z-index: 100012 !important; }
    .tiger-panel { z-index: 100013 !important; }
    #tiger-font-panel { z-index: 100014 !important; }
    #tiger-art-browser { z-index: 100015 !important; }
    html body div#LumiseDesign div#lumise-left .lumise-tab-body-wrp.active { z-index: 100016 !important; }
}

/* ==========================================================================
   18. YOUR LATEST SAVE (home) + restore notice (editor)
   ========================================================================== */
#tiger-latest-save { width: 100%; max-width: 1240px; margin: 28px auto; padding: 0 20px; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; }
#tiger-latest-save .tls-card {
    display: flex; align-items: center; gap: 24px; max-width: 620px; padding: 16px;
    background: #fff; border: 1px solid #dcdcdc; border-radius: 18px; box-sizing: border-box;
}
#tiger-latest-save .tls-img {
    flex: 0 0 180px; width: 180px; height: 180px; border-radius: 8px; overflow: hidden; background: #eceef0; display: block;
}
#tiger-latest-save .tls-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
#tiger-latest-save .tls-body h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: #111; text-transform: none; letter-spacing: 0; }
#tiger-latest-save .tls-name { margin: 0 0 4px; font-size: 15px; color: #222; }
#tiger-latest-save .tls-date { margin: 0 0 16px; font-size: 14px; color: #555; }
#tiger-latest-save .tls-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
#tiger-latest-save .tls-edit {
    display: inline-flex; align-items: center; height: 38px; padding: 0 18px; border: 2px solid #111; border-radius: 20px;
    color: #111 !important; font-weight: 800; font-size: 14px; text-decoration: none !important; background: #fff;
}
#tiger-latest-save .tls-edit:hover { background: #111; color: #fff !important; }
#tiger-latest-save .tls-remove { border: 0; background: none; padding: 0; color: #666; font-size: 13px; text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) {
    #tiger-latest-save .tls-card { gap: 14px; padding: 12px; border-radius: 14px; }
    #tiger-latest-save .tls-img { flex-basis: 110px; width: 110px; height: 110px; }
    #tiger-latest-save .tls-body h3 { font-size: 17px; }
}

#tiger-restore-toast {
    position: fixed; left: 50%; top: 66px; transform: translateX(-50%); z-index: 100020;
    display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px;
    background: #222; color: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.2);
    font: 500 14px -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; transition: opacity .5s;
}
#tiger-restore-toast button { border: 0; background: #fff; color: #222; border-radius: 6px; padding: 6px 12px; font-weight: 700; cursor: pointer; font-size: 13px; }
#tiger-restore-toast .tr-x { background: none; color: #fff; font-size: 20px; padding: 0 6px; }
#tiger-restore-toast.tr-fade { opacity: 0; }
@media (max-width: 768px) { #tiger-restore-toast { top: 10px; width: calc(100% - 20px); font-size: 13px; } }

/* ==========================================================================
   19. NATIVE LUMISE SIDE PANELS — clean white style (Product, Templates…)
   ========================================================================== */
html body div#LumiseDesign div#lumise-left .lumise-tab-body-wrp {
    background: #fff !important;
    color: #222 !important;
    border-right: 1px solid #e6e6e6 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}
html body div#LumiseDesign div#lumise-left .lumise-tab-body-wrp header,
html body div#LumiseDesign div#lumise-left .lumise-tab-body-wrp h3,
html body div#LumiseDesign div#lumise-left .lumise-tab-body-wrp p,
html body div#LumiseDesign div#lumise-left .lumise-tab-body-wrp label,
html body div#LumiseDesign div#lumise-left .lumise-tab-body-wrp span { color: #333 !important; }
html body div#LumiseDesign div#lumise-left #lumise-side-close { color: #333 !important; background: #f3f3f3 !important; }

/* Product panel */
html body div#LumiseDesign #lumise-product header { padding: 26px 24px 18px !important; border-bottom: 1px solid #eee !important; }
html body div#LumiseDesign #lumise-product header name,
html body div#LumiseDesign #lumise-product header name t {
    color: #111 !important; font-size: 20px !important; font-weight: 800 !important; line-height: 1.25 !important; letter-spacing: -.2px !important;
}
html body div#LumiseDesign #lumise-product header price {
    display: inline-block !important; margin-top: 10px !important; background: #fff3e8 !important; color: #c75100 !important;
    font-weight: 800 !important; font-size: 15px !important; padding: 4px 10px !important; border-radius: 6px !important;
}
html body div#LumiseDesign #lumise-product header desc,
html body div#LumiseDesign #lumise-product header desc span { color: #666 !important; font-size: 13px !important; }
html body div#LumiseDesign #lumise-product header desc a { color: #ff6a00 !important; }
html body div#LumiseDesign #lumise-product #lumise-cart-wrp { padding: 8px 24px 24px !important; }
html body div#LumiseDesign #lumise-product .lumise-cart-field { margin: 0 0 18px !important; padding: 0 !important; display: block !important; }
html body div#LumiseDesign #lumise-product .lumise-cart-field .lumise_form_group { display: block !important; padding: 0 !important; margin: 0 !important; }
html body div#LumiseDesign #lumise-product .lumise-cart-field-label {
    display: block !important; width: auto !important; margin: 0 0 8px !important; padding: 0 !important;
    font-size: 13px !important; font-weight: 700 !important; color: #222 !important; text-transform: uppercase !important; letter-spacing: .4px !important; float: none !important;
}
html body div#LumiseDesign #lumise-product .lumise-cart-field-label em.required { color: #ff6a00 !important; }
html body div#LumiseDesign #lumise-product .lumise_form_content { width: 100% !important; float: none !important; margin: 0 !important; }
html body div#LumiseDesign #lumise-product select.lumise-cart-param {
    width: 100% !important; height: 46px !important; padding: 0 40px 0 14px !important; border: 1.5px solid #d6d6d6 !important; border-radius: 10px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    -webkit-appearance: none !important; appearance: none !important; color: #222 !important; font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important;
}
html body div#LumiseDesign #lumise-product select.lumise-cart-param:focus { border-color: #ff6a00 !important; outline: none !important; }
html body div#LumiseDesign #lumise-product .lumise-cart-field-quantity {
    display: inline-flex !important; align-items: center !important; height: 46px !important; border: 1.5px solid #d6d6d6 !important; border-radius: 10px !important;
    background: #fff !important; padding: 0 6px !important; gap: 0 !important;
}
html body div#LumiseDesign #lumise-product .lumise-cart-field-quantity em[data-action] {
    width: 34px !important; height: 34px !important; display: inline-flex !important; align-items: center !important; justify-content: center !important;
    border: 0 !important; border-radius: 8px !important; background: transparent !important; cursor: pointer !important;
}
html body div#LumiseDesign #lumise-product .lumise-cart-field-quantity em[data-action]:hover { background: #fff3e8 !important; }
html body div#LumiseDesign #lumise-product .lumise-cart-field-quantity em[data-action] svg path { fill: #ff6a00 !important; }
html body div#LumiseDesign #lumise-product .lumise-cart-field-quantity input {
    width: 54px !important; height: 34px !important; border: 0 !important; background: transparent !important; text-align: center !important;
    color: #111 !important; font-size: 16px !important; font-weight: 700 !important; box-shadow: none !important;
}
html body div#LumiseDesign #lumise-product button:not(.tiger-swatch),
html body div#LumiseDesign #lumise-product .lumise-btn {
    background: #fff !important; color: #222 !important; border: 1.5px solid #222 !important; border-radius: 20px !important;
    padding: 8px 18px !important; font-weight: 700 !important; font-size: 13px !important; box-shadow: none !important;
}
html body div#LumiseDesign #lumise-product button:not(.tiger-swatch):hover { background: #222 !important; color: #fff !important; }

/* Color swatches (built from the Color select) */
.tiger-swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 0; }
.tiger-swatch {
    position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18);
    cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px #fff;
}
.tiger-swatch.active { outline: 2.5px solid #ff6a00; outline-offset: 2px; }
.tiger-swatch-name { display: block; margin-top: 8px; font-size: 13px; color: #555; }
html body div#LumiseDesign #lumise-product .lumise-cart-field.tiger-has-swatches select.lumise-cart-param { display: none !important; }

/* Mobile: the product panel opens full width */
@media (max-width: 768px) {
    html body div#LumiseDesign #lumise-product header { padding: 20px 18px 14px !important; }
    html body div#LumiseDesign #lumise-product #lumise-cart-wrp { padding: 6px 18px 90px !important; }
}

/* ==========================================================================
   20. DESKTOP EDIT PANEL ("Edit Art" / "Edit Text") + Add Text side panel
   ========================================================================== */
#tiger-edit-panel { display: none; }
@media (min-width: 769px) {
    #tiger-object-toolbar { display: none !important; }

    #tiger-edit-panel,
    html body #tiger-text-sheet.tiger-sheet {
        position: fixed; left: 82px; top: 66px; bottom: 14px; transform: none;
        width: 440px; max-width: calc(50vw - 60px);
        background: #fff; border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.10);
        box-sizing: border-box; z-index: 100003 !important;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: #222;
        flex-direction: column; overflow: hidden; padding: 0;
    }
    body.tiger-standalone #tiger-edit-panel,
    body.tiger-standalone #tiger-text-sheet.tiger-sheet { bottom: 78px; }
    #tiger-edit-panel.active { display: flex; }
    html body #tiger-text-sheet.tiger-sheet.active { display: flex; }

    /* Add Text: CustomInk layout */
    #tiger-text-sheet .tp-sheet-head { position: relative; height: 50px; margin: 0 !important; background: #f4f4f5; justify-content: center !important; border-bottom: 1px solid #ececec; }
    #tiger-text-sheet .tp-sheet-title { font-size: 16px !important; font-weight: 500 !important; color: #222 !important; }
    #tiger-text-sheet .tp-sheet-close { position: absolute; right: 12px; top: 8px; width: 34px; height: 34px; font-size: 26px; background: none; border: 0; cursor: pointer; color: #333; }
    #tiger-text-sheet #tiger-text-value { margin: 30px 30px 18px; width: calc(100% - 60px); height: 46px; border: 1.5px solid #8a8a8a; border-radius: 6px; text-align: center; font-size: 17px; box-sizing: border-box; }
    #tiger-text-sheet #tiger-text-value:focus { border-color: #222; outline: none; }
    #tiger-text-sheet .tp-btn-primary { align-self: center; width: 240px; height: 48px; border-radius: 26px; background: #222; color: #fff; border: 0; font-size: 16px; font-weight: 700; cursor: pointer; }
    #tiger-text-sheet .tp-btn-primary:hover { background: #000; }

    /* Edit panel */
    #tiger-edit-panel .ep-head { position: relative; flex: 0 0 50px; display: flex; align-items: center; justify-content: center; background: #f4f4f5; border-bottom: 1px solid #ececec; }
    #tiger-edit-panel .ep-title { font-size: 16px; font-weight: 500; }
    #tiger-edit-panel .ep-close { position: absolute; right: 12px; top: 8px; width: 34px; height: 34px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #333; }
    #tiger-edit-panel .ep-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px 6px; }
    #tiger-edit-panel .ep-block { margin-bottom: 6px; }
    #tiger-edit-panel .ep-text { width: 100%; min-height: 46px; resize: vertical; border: 1.5px solid #8a8a8a; border-radius: 6px; padding: 11px 12px; font-size: 17px; text-align: center; box-sizing: border-box; font-family: inherit; }
    #tiger-edit-panel .ep-text:focus { border-color: #222; outline: none; }

    #tiger-edit-panel .ep-row { border-bottom: 1px solid #e8e8e8; }
    #tiger-edit-panel .ep-row-head { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 2px; background: none; border: 0; cursor: pointer; text-align: left; font: inherit; color: #222; }
    #tiger-edit-panel .ep-row-label { flex: 1 1 auto; font-size: 15px; color: #222; display: flex; flex-direction: column; }
    #tiger-edit-panel .ep-row-label small { font-size: 12.5px; color: #666; margin-top: 2px; }
    #tiger-edit-panel .ep-row-value { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #333; max-width: 60%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    #tiger-edit-panel .ep-row-value em { color: #888; font-style: italic; }
    #tiger-edit-panel .ep-row-value u { color: #222; }
    #tiger-edit-panel .ep-font-name { font-size: 22px; font-weight: 700; color: #111; }
    #tiger-edit-panel .ep-chev { font-size: 22px; color: #555; transition: transform .15s; }
    #tiger-edit-panel .ep-row.open .ep-chev { transform: rotate(90deg); }
    #tiger-edit-panel .ep-row-body { display: none; padding: 4px 2px 16px; }
    #tiger-edit-panel .ep-row.open .ep-row-body { display: block; }
    #tiger-edit-panel .ep-dot { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); display: inline-block; flex: 0 0 24px; }

    #tiger-edit-panel .ep-palette { display: grid; grid-template-columns: repeat(auto-fill, 32px); gap: 9px; }
    #tiger-edit-panel .ep-sw { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); padding: 0; cursor: pointer; box-shadow: inset 0 0 0 2px #fff; }
    #tiger-edit-panel .ep-sw.active { outline: 2.5px solid #ff6a00; outline-offset: 2px; }
    #tiger-edit-panel .ep-sw-none { background: linear-gradient(135deg, #fff 45%, #e53935 46%, #e53935 54%, #fff 55%) !important; }
    #tiger-edit-panel .ep-thick { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: #666; }
    #tiger-edit-panel .ep-thick input { flex: 1; accent-color: #222; }

    #tiger-edit-panel .ep-line { display: flex; align-items: center; gap: 12px; min-height: 64px; border-bottom: 1px solid #e8e8e8; padding: 0 2px; }
    #tiger-edit-panel .ep-line .ep-row-label { flex: 0 0 auto; min-width: 82px; }
    #tiger-edit-panel .ep-line input[type=range] { flex: 1 1 auto; accent-color: #222; }
    #tiger-edit-panel .ep-rot-n { width: 64px; height: 42px; border: 1px solid #999; border-radius: 6px; text-align: center; font-size: 16px; }
    #tiger-edit-panel .ep-scale-v { width: 52px; text-align: right; font-size: 15px; color: #333; }
    #tiger-edit-panel .ep-stepper { margin-left: auto; display: flex; align-items: center; gap: 10px; }
    #tiger-edit-panel .ep-stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid #222; background: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
    #tiger-edit-panel .ep-size { width: 74px; height: 42px; border: 1px solid #999; border-radius: 6px; text-align: center; font-size: 16px; }

    #tiger-edit-panel .ep-shapes { display: flex; gap: 10px; }
    #tiger-edit-panel .ep-shape { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid #ddd; border-radius: 10px; background: #fff; cursor: pointer; font: inherit; }
    #tiger-edit-panel .ep-shape b { font-size: 18px; letter-spacing: 1px; }
    #tiger-edit-panel .ep-shape b.ep-arc { display: inline-block; transform: perspective(60px) rotateX(18deg); border-top: 2px solid #222; border-radius: 50% 50% 0 0; padding-top: 2px; }
    #tiger-edit-panel .ep-shape span { font-size: 12.5px; color: #555; }
    #tiger-edit-panel .ep-shape.active { border-color: #ff6a00; background: #fff8f2; }

    #tiger-edit-panel .ep-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; padding: 16px 2px 14px; }
    #tiger-edit-panel .ep-tools-top { background: #f4f4f5; border-radius: 10px; padding: 14px 14px 4px; margin-bottom: 4px; }
    #tiger-edit-panel .ep-tools-top .ep-line-box { flex: 1 1 100%; border-bottom: 0; min-height: 56px; }
    #tiger-edit-panel .ep-tool,
    #tiger-edit-panel .ep-tool-group { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 13px; color: #333; }
    #tiger-edit-panel .ep-tool { border: 0; background: none; cursor: pointer; padding: 0; font: inherit; font-size: 13px; }
    #tiger-edit-panel .ep-tool-ic { display: flex; align-items: center; justify-content: center; width: 46px; height: 32px; border: 1.5px solid #9a9a9a; border-radius: 17px; background: #fff; }
    #tiger-edit-panel .ep-tool-ic svg { width: 18px; height: 18px; fill: #333; }
    #tiger-edit-panel .ep-tool:hover .ep-tool-ic { border-color: #222; }
    #tiger-edit-panel .ep-tool.active .ep-tool-ic { background: #e4e4e6; border-color: #222; }
    #tiger-edit-panel .ep-pair { display: flex; }
    #tiger-edit-panel .ep-pair .ep-tool > span:last-child { display: none; }
    #tiger-edit-panel .ep-pair .ep-tool .ep-tool-ic { border-radius: 0; margin-left: -1.5px; }
    #tiger-edit-panel .ep-pair .ep-tool:first-child .ep-tool-ic { border-radius: 17px 0 0 17px; margin-left: 0; }
    #tiger-edit-panel .ep-pair .ep-tool:last-child .ep-tool-ic { border-radius: 0 17px 17px 0; }

    #tiger-edit-panel .ep-foot { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 18px; border-top: 1px solid #eee; }
    #tiger-edit-panel .ep-delete { border: 0; background: none; color: #999; font-size: 15px; font-weight: 700; cursor: pointer; padding: 0 10px; }
    #tiger-edit-panel .ep-delete:hover { color: #d62d20; }
    #tiger-edit-panel .ep-save { flex: 0 0 62%; height: 48px; border: 1.5px solid #222; border-radius: 26px; background: #fff; color: #111; font-size: 16px; font-weight: 800; cursor: pointer; }
    #tiger-edit-panel .ep-save:hover { background: #222; color: #fff; }

    /* Upload/art color picker opens on top of the edit panel */
    body.tiger-edit-open #tiger-svg-colors-panel.tiger-panel {
        left: 82px; top: 66px; bottom: 14px; transform: none; width: 440px; max-width: calc(50vw - 60px);
        border-radius: 14px; overflow-y: auto; z-index: 100013 !important;
    }
    body.tiger-standalone.tiger-edit-open #tiger-svg-colors-panel.tiger-panel { bottom: 78px; }
    /* Font list opens over the edit panel too */
    body.tiger-edit-open #tiger-font-panel { left: 82px; top: 66px; bottom: 14px; width: 440px; max-width: calc(50vw - 60px); border-radius: 14px; }
    body.tiger-standalone.tiger-edit-open #tiger-font-panel { bottom: 78px; }
}

/* "Design saved" notice */
#tiger-saved-toast {
    position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 100050;
    display: flex; flex-direction: column; gap: 2px; padding: 12px 20px; border-radius: 10px;
    background: #1f7a3a; color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 13.5px; box-shadow: 0 6px 24px rgba(0,0,0,.2); transition: opacity .5s; text-align: center; max-width: calc(100% - 32px);
}
#tiger-saved-toast.warn { background: #333; }
#tiger-saved-toast strong { font-size: 15px; }
#tiger-saved-toast.tr-fade { opacity: 0; }
/* Lumise's object tool row starts after our side panels (it was covering their top-right corner) */
@media (min-width: 769px) {
    html body div#LumiseDesign #lumise-top-tools { left: calc(94px + min(440px, 50vw - 60px)) !important; right: 0 !important; width: auto !important; }
}
/* Edit Art — color controls (Make One Color / Edit Colors / Remove White) */
@media (min-width: 769px) {
    #tiger-edit-panel .ep-switch-line { justify-content: space-between; min-height: 58px; }
    #tiger-edit-panel .ep-switch { position: relative; flex: 0 0 48px; width: 48px; height: 26px; border-radius: 13px; border: 0; background: #b9b9bd; cursor: pointer; padding: 0; transition: background .15s; }
    #tiger-edit-panel .ep-switch i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
    #tiger-edit-panel .ep-switch.on { background: #222; }
    #tiger-edit-panel .ep-switch.on i { left: 25px; }
    #tiger-edit-panel .ep-row-value .ep-gdot { width: 24px; height: 24px; cursor: pointer; }
    #tiger-edit-panel .ep-row-value .ep-gdot:hover { outline: 2px solid #ff6a00; outline-offset: 1px; }
    #tiger-edit-panel .ep-more { font-size: 13px; color: #666; }
    #tiger-edit-panel .ep-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
    #tiger-edit-panel .ep-group { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 6px; border: 1.5px solid #ddd; border-radius: 18px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; color: #333; }
    #tiger-edit-panel .ep-group .ep-dot { width: 22px; height: 22px; flex-basis: 22px; }
    #tiger-edit-panel .ep-group.active { border-color: #222; }
    #tiger-edit-panel .ep-hint { margin: 0 0 10px; font-size: 13px; color: #555; }
}
/* "Your Latest Save" placed with the [tiger_last_design] shortcode (Custom page) */
.tiger-latest-save-slot #tiger-latest-save { max-width: 1490px; margin: 24px auto; }
.tiger-latest-save-slot:empty { display: none; }

/* Cart — design sides (Frente / Espalda) */
.tml-sides { margin: 4px 0 10px; }
.tml-sides-title { display: block; font-size: 12px; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.tml-sides-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tml-side { display: flex; flex-direction: column; align-items: center; width: 92px; padding: 8px 6px 7px; border: 1.5px solid #e5e5e5; border-radius: 10px; background: #fff; box-sizing: border-box; }
.tml-side.is-on { border-color: #ff6a00; background: #fffaf5; }
.tml-side-img { display: block; width: 72px; height: 72px; border-radius: 6px; background: #f4f4f5; overflow: hidden; }
.tml-side-img img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; margin: 0 !important; border: 0 !important; padding: 0 !important; max-width: none !important; }
.tml-side.is-off .tml-side-img img { opacity: .35; filter: grayscale(1); }
.tml-side-name { margin-top: 6px; font-size: 13px; font-weight: 700; color: #111; line-height: 1.2; }
.tml-side-state { margin-top: 2px; font-size: 11.5px; line-height: 1.2; color: #8a8a8a; }
.tml-side.is-on .tml-side-state { color: #ff6a00; font-weight: 600; }

/* "Recently Viewed" (MRVP) — same look as the shop cards */
.mrvp-container { width: 100%; }
.mrvp-wrapper { max-width: 1240px; margin: 10px auto 0; padding: 0 16px; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.mrvp-wrapper h4 { margin: 0 0 18px !important; font-size: 22px !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: .5px; color: #111 !important; display: flex; align-items: center; gap: 12px; }
.mrvp-wrapper h4::before { content: ""; width: 28px; height: 4px; background: #ff6a00; border-radius: 2px; }
.mrvp-wrapper .mrvp-product-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mrvp-wrapper .mrvp-product-list li { margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important; background: #fff; border: 1px solid #ededed; border-radius: 10px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.mrvp-wrapper .mrvp-product-list li:hover { box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-2px); }
.mrvp-wrapper .mrvp-product-link { display: flex !important; flex-direction: column; text-decoration: none !important; color: inherit !important; height: 100%; }
.mrvp-wrapper .mrvp-product-link img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; display: block; margin: 0 !important; background: #f4f4f5; }
.mrvp-wrapper .mrvp-info { padding: 12px 14px 14px; text-align: left !important; }
.mrvp-wrapper .mrvp-title { font-size: 14px; font-weight: 700; color: #111; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 6px; }
.mrvp-wrapper .mrvp-price { font-size: 15px; font-weight: 800; color: #111; text-align: left !important; padding: 0 !important; }
@media (max-width: 1024px) {
    .mrvp-wrapper .mrvp-product-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 767px) {
    .mrvp-wrapper h4 { font-size: 18px !important; }
    .mrvp-wrapper .mrvp-product-list { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 8px !important; -webkit-overflow-scrolling: touch; }
    .mrvp-wrapper .mrvp-product-list li { flex: 0 0 44%; scroll-snap-align: start; }
    .mrvp-wrapper .mrvp-title { font-size: 12.5px; }
    .mrvp-wrapper .mrvp-price { font-size: 13.5px; }
}


/* ==========================================================================
   18. Editor page like CustomInk — hide the store header/nav so the
       design area gets the full height (logo + Back to shop live in the editor bar)
   ========================================================================== */
body:has(iframe[src*="lumise_iframe"]) > header.elementor-location-header,
body.tiger-dl-page > header.elementor-location-header { display: none !important; }
body:has(iframe[src*="lumise_iframe"]) .xoo-wsc-markup .xoo-wsc-basket,
body.tiger-dl-page .xoo-wsc-markup .xoo-wsc-basket { display: none !important; }
