.von3d-configurator-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 24px 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    align-items: flex-start;
}

/* ==========================================================================
   LEFT COLUMN: 3D Viewport + Prominent Size Slider directly below
   ========================================================================== */
.von3d-viewer-column {
    flex: 1 1 500px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.von3d-viewer-container {
    width: 100%;
    height: 520px;
    border-radius: 24px;
    border: 1px solid #334155;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transition: background 0.35s ease, border-color 0.35s ease;
}

/* Background Modes (Dark by default) */
.von3d-viewer-container.bg-studio-dark {
    background: radial-gradient(circle at 50% 45%, #1e293b 0%, #090d16 100%);
    border-color: #334155;
}

.von3d-viewer-container.bg-studio-light {
    background: radial-gradient(circle at 50% 45%, #ffffff 0%, #cbd5e1 100%);
    border-color: #cbd5e1;
}

#banana-3d-viewer,
#trash-can-3d-viewer {
    width: 100%;
    height: 100%;
    outline: none;
    display: block;
    position: relative;
}

.von3d-liters-badge {
    background: #059669;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-right: 6px;
}

/* Top Toolbar */
.von3d-top-toolbar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 100;
    pointer-events: none;
}

.von3d-bg-selector, .von3d-tool-actions {
    display: flex;
    gap: 6px;
    pointer-events: auto;
}

.von3d-bg-btn, .von3d-tool-btn {
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.von3d-bg-btn:hover, .von3d-tool-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.von3d-bg-btn.active, .von3d-tool-btn.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

.von3d-viewer-container.bg-studio-light .von3d-bg-btn:not(.active),
.von3d-viewer-container.bg-studio-light .von3d-tool-btn:not(.active) {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-color: rgba(203, 213, 225, 0.9);
}

/* Fixed CAD Coordinate HUD Box (Inside 3D Viewport) */
.von3d-cad-hud {
    position: absolute;
    bottom: 24px;
    left: 16px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 12px 16px;
    color: #ffffff;
    z-index: 99999;
    pointer-events: none;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35);
    min-width: 210px;
    animation: von3dFadeIn 0.25s ease-out;
    display: none;
}

.von3d-cad-hud.is-visible {
    display: block;
}

@keyframes von3dFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.von3d-cad-title {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 5px;
}

.von3d-cad-icon {
    font-size: 12px;
}

.von3d-cad-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.von3d-cad-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
}

.cad-axis-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
}

.cad-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-x { background-color: #ef4444; box-shadow: 0 0 6px #ef4444; } /* Red for X (Width) */
.dot-y { background-color: #10b981; box-shadow: 0 0 6px #10b981; } /* Green for Y (Depth) */
.dot-z { background-color: #38bdf8; box-shadow: 0 0 6px #38bdf8; } /* Blue for Z (Height) */

.cad-axis-val {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #ffffff;
}

.von3d-cad-footer {
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    justify-content: space-between;
}

.von3d-cad-footer strong {
    color: #fde047;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.von3d-viewer-hint {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 30px;
    pointer-events: none;
    z-index: 5;
}

/* ==========================================================================
   PROMINENT SIZE SLIDER SECTION (Directly under 3D Viewer)
   ========================================================================== */
.von3d-size-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.von3d-size-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.von3d-size-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.von3d-size-icon {
    font-size: 16px;
}

.von3d-size-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #334155;
    text-transform: uppercase;
}

.von3d-size-readout {
    display: flex;
    align-items: center;
    gap: 8px;
}

.von3d-size-dims-label {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.von3d-slider-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.von3d-slider-bubble-wrap {
    position: relative;
    width: 100%;
    height: 30px;
}

.von3d-slider-bubble {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: #0f172a;
    color: #ffffff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    white-space: nowrap;
    pointer-events: none;
    transition: left 0.05s ease-out;
}

.von3d-slider-bubble::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #0f172a;
}

#von3d-size-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    transition: background 0.05s ease;
}

#von3d-size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2563eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

#von3d-size-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

#von3d-size-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #2563eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
}

.von3d-slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 2px;
}

.tick-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tick-item.tick-right {
    text-align: right;
}

.tick-item.tick-mid {
    text-align: center;
}

.tick-name {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
}

.tick-mid .tick-name {
    color: #2563eb;
}

.tick-desc {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

/* ==========================================================================
   RIGHT COLUMN: Price, Dual Palette Color Selection & Cart Form
   ========================================================================== */
.von3d-controls-column {
    flex: 1 1 400px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.von3d-price-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 22px;
}

.von3d-price-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.von3d-current-price {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.von3d-old-price {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.von3d-discount-badge {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

.von3d-tax-notice {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
    line-height: 1.4;
}

/* Sections */
.von3d-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.02);
}

.von3d-label-row {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.von3d-label {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.von3d-active-color-name {
    font-size: 13px;
    font-weight: 700;
    color: #2563eb;
}

/* Dual Palette Groups (Both Matte and Basic always visible!) */
.von3d-palette-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    margin-top: 10px;
}

.von3d-palette-head {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
}

.von3d-palette-title {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

/* Finish Tooltips on Palette Title */
.von3d-palette-title.von3d-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    user-select: none;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.von3d-palette-title.von3d-tooltip-trigger:hover {
    color: #0284c7;
    border-color: #0284c7;
}

.von3d-info-badge {
    font-size: 11px;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.von3d-palette-title.von3d-tooltip-trigger:hover .von3d-info-badge {
    opacity: 1;
}

.von3d-tooltip-box {
    position: absolute;
    bottom: 125%;
    left: 0;
    min-width: 250px;
    max-width: 300px;
    background: #0f172a;
    color: #f1f5f9;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
}

.von3d-palette-title.von3d-tooltip-trigger:hover .von3d-tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}

/* Swatches Grid with generous padding to prevent blue outline clipping */
.von3d-swatches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
    padding: 8px 4px;
    overflow: visible;
}

.von3d-swatch {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    cursor: pointer;
    position: relative;
    padding: 0;
    outline: none;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.von3d-swatch:hover {
    transform: scale(1.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 5;
}

/* Selected Swatch: Generous 3px Blue Ring with 3px White Gap */
.von3d-swatch.selected {
    transform: scale(1.18);
    outline: 3px solid #2563eb;
    outline-offset: 3px;
    box-shadow: 0 0 14px rgba(37, 99, 235, 0.5);
    z-index: 10;
}

/* Recommended Colors Badge (Star) */
.von3d-swatch.is-recommended {
    border-color: #d97706;
}

.rec-star {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    line-height: 14px;
    text-align: center;
    border-radius: 50%;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

/* Add to Cart Button (Prominent Emerald Green) */
.von3d-buy-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.von3d-buy-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.45);
}

.von3d-buy-price {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
}

/* Express Checkout Mount (Directly under Add to Cart button) */
.von3d-express-checkout-mount {
    margin: 14px 0 16px !important;
    width: 100% !important;
    clear: both !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.von3d-express-checkout-mount:empty {
    display: none !important;
}

.von3d-express-checkout-mount #wc-stripe-express-checkout-element {
    display: contents !important;
}

.von3d-express-checkout-mount .StripeElement,
.von3d-express-checkout-mount [id^="wc-stripe-express-checkout-element-"],
.von3d-express-checkout-mount .__PrivateStripeElement,
.von3d-express-checkout-mount .StripeElement iframe,
.von3d-express-checkout-mount [id^="wc-stripe-express-checkout-element-"] iframe {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.von3d-express-checkout-mount .ppc-button-wrapper,
.von3d-express-checkout-mount #ppc-button-ppcp-gateway,
.von3d-express-checkout-mount .woocommerce-paypal-payments-buttons {
    display: block !important;
    visibility: visible !important;
    margin: 0 !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    box-sizing: border-box !important;
}

.von3d-express-checkout-mount .ppc-button-wrapper iframe {
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
}

/* If the last item is odd (e.g. 5th button), let it span both columns */
.von3d-express-checkout-mount > :last-child:nth-child(odd),
.von3d-express-checkout-mount .ppc-button-wrapper:last-child:nth-child(odd) {
    grid-column: span 2 !important;
}

/* ==========================================================================
   AR MODAL STYLES
   ========================================================================== */
.von3d-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.von3d-modal-backdrop.active {
    display: flex;
}

.von3d-modal-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    animation: von3dModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes von3dModalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.von3d-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.von3d-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.von3d-modal-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.von3d-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.von3d-modal-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 20px;
}

.von3d-qr-frame {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    display: inline-block;
    margin-bottom: 12px;
}

.von3d-qr-frame img {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 8px;
}

.von3d-modal-sub {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .von3d-configurator-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: relative;
    }

    /* display: contents allows .von3d-viewer-container to stick across entire configurator */
    .von3d-viewer-column {
        display: contents;
    }

    /* Sticky 3D Viewport on Mobile: always stays in view while configuring colors! */
    .von3d-viewer-container {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 999;
        height: 270px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        margin: -10px -10px 10px -10px;
    }

    /* Account for WordPress mobile admin bar when logged in */
    .admin-bar .von3d-viewer-container {
        top: 46px;
    }

    .von3d-top-toolbar {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .von3d-bg-btn, .von3d-tool-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .von3d-viewer-hint {
        bottom: 8px;
        font-size: 10px;
        padding: 3px 10px;
    }

    .von3d-size-section {
        order: 2;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .von3d-photo-strip-container {
        order: 3;
    }

    .von3d-slider-cta-wrap {
        order: 4;
    }

    .von3d-controls-column {
        order: 5;
        flex: 1 1 100%;
        min-width: 100%;
        gap: 14px;
    }

    .von3d-price-section {
        padding: 14px 18px;
    }

    .von3d-current-price {
        font-size: 26px;
    }

    .von3d-section {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .von3d-palette-group {
        padding: 10px 12px;
        margin-top: 8px;
    }

    /* Compact swatches on mobile so all colors fit in ~3 rows */
    .von3d-swatches-grid {
        gap: 8px 6px;
        padding: 6px 2px;
    }

    .von3d-swatch {
        width: 30px;
        height: 30px;
    }

    .von3d-cad-hud {
        bottom: 38px;
        left: 10px;
        padding: 8px 12px;
        min-width: 160px;
    }

    .von3d-cad-title {
        font-size: 9px;
        margin-bottom: 5px;
        padding-bottom: 3px;
    }

    .von3d-cad-item {
        font-size: 11px;
    }

    .von3d-cad-footer {
        font-size: 10px;
        margin-top: 5px;
        padding-top: 4px;
    }
}

/* ==========================================================================
   PHOTO GALLERY STRIP (Between 3D Viewer & Slider)
   ========================================================================== */
.von3d-photo-strip-container {
    margin: 14px 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.von3d-photo-strip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.von3d-photo-strip-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.von3d-photo-strip-hint {
    font-size: 11px;
    color: #64748b;
}

.von3d-photo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.von3d-photo-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
    background: #f1f5f9;
}

.von3d-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.von3d-photo-thumb:hover {
    transform: scale(1.15);
    z-index: 10;
    border-color: #2563eb;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.von3d-photo-thumb:hover img {
    transform: scale(1.05);
}

/* Photo Badge on Swatches (Crisp High-Res SVG Camera) */
.photo-icon {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #ffffff;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.45), 0 1px 3px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 12;
    transition: transform 0.15s ease;
}

.photo-icon svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
    display: block;
}

.von3d-swatch:hover .photo-icon {
    transform: scale(1.12);
}

.von3d-swatch.has-photo {
    border: 2px solid #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Pill Badges in Label Header */
.von3d-pill-photo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    vertical-align: middle;
    letter-spacing: 0;
    text-transform: none;
    margin-left: 6px;
    box-shadow: 0 1px 3px rgba(3, 105, 161, 0.1);
}

.von3d-pill-rec {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    vertical-align: middle;
    letter-spacing: 0;
    text-transform: none;
    margin-left: 4px;
    box-shadow: 0 1px 3px rgba(146, 64, 14, 0.1);
}

/* ==========================================================================
   PHOTO LIGHTBOX MODAL
   ========================================================================== */
.von3d-photo-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.von3d-photo-lightbox.active {
    display: flex;
}

.von3d-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.von3d-lightbox-content {
    position: relative;
    max-width: 850px;
    max-height: 90vh;
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1;
    animation: von3dModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.von3d-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.von3d-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.von3d-lightbox-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    max-height: 75vh;
}

.von3d-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
}

.von3d-lightbox-caption {
    padding: 14px 20px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: #0f172a;
}

/* ==========================================================================
   GUARANTEE BOX & TRUST BADGES
   ========================================================================== */
.von3d-guarantee-box {
    margin-top: 18px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.von3d-guarantee-box .guarantee-item {
    font-size: 12.5px;
    line-height: 1.45;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.von3d-guarantee-box .guarantee-item strong {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   HIDE REDUNDANT NATIVE WOOCOMMERCE BLOCKS (When 3D Configurator is present)
   ========================================================================== */
body.single-product.von3d-has-configurator .wp-block-woocommerce-breadcrumbs,
body.single-product.von3d-has-configurator .wc-block-breadcrumbs,
body.single-product.von3d-has-configurator main > .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery),
body.single-product.von3d-has-configurator main > .wp-block-columns:has(.wp-block-post-title),
body.single-product.von3d-has-configurator main > .wp-block-columns:has(.wp-block-woocommerce-product-price),
body.single-product.von3d-has-configurator main > .wp-block-columns:has(form.cart),
body.single-product.von3d-has-configurator main > .wp-block-columns .wp-block-woocommerce-product-image-gallery,
body.single-product.von3d-has-configurator main > .wp-block-columns .wp-block-post-title,
body.single-product.von3d-has-configurator main > .wp-block-columns .wp-block-woocommerce-product-price,
body.single-product.von3d-has-configurator main > .wp-block-columns .wp-block-post-excerpt,
body.single-product.von3d-has-configurator main > .wp-block-columns form.cart,
body.single-product.von3d-has-configurator main > .wp-block-columns .wp-block-woocommerce-product-meta,
body.single-product:has(.von3d-configurator-wrapper, .von3d-service-wrapper) main > .wp-block-columns {
    display: none !important;
}

body.single-product.von3d-has-configurator .wp-site-blocks,
body.single-product.von3d-has-configurator .wp-block-group.woocommerce.product,
body.single-product.von3d-has-configurator main {
    max-width: 1240px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   CUSTOM 3D PRINT & AI SERVICE STYLES (v1.9.0)
   ========================================================================== */
.von3d-service-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

/* Mode Switcher Tabs */
.von3d-service-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.von3d-service-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.von3d-service-tab:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
    transform: translateY(-1px);
}

.von3d-service-tab.active {
    background: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.von3d-service-tab .tab-icon {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.von3d-service-tab.active .tab-icon {
    background: rgba(255, 255, 255, 0.15);
}

.von3d-service-tab .tab-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.von3d-service-tab .tab-text strong {
    font-size: 15px;
    font-weight: 700;
}

.von3d-service-tab .tab-text small {
    font-size: 12px;
    opacity: 0.8;
}

/* Tab Panels */
.von3d-tab-panel {
    display: none;
    width: 100%;
    animation: von3dFadeIn 0.3s ease;
}

.von3d-tab-panel.active {
    display: block;
}

@keyframes von3dFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Drag & Drop Dropzone */
.von3d-dropzone {
    border: 2px dashed #94a3b8;
    background: #f8fafc;
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.von3d-dropzone:hover,
.von3d-dropzone.dragover {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 10px 30px rgba(5, 150, 105, 0.12);
}

.von3d-dropzone .dropzone-icon {
    font-size: 44px;
    margin-bottom: 12px;
    transition: transform 0.25s ease;
}

.von3d-dropzone:hover .dropzone-icon {
    transform: scale(1.1);
}

.von3d-dropzone .dropzone-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.von3d-dropzone .dropzone-sub {
    font-size: 13.5px;
    color: #64748b;
    margin-bottom: 18px;
}

.von3d-browse-btn {
    background: #0f172a;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.von3d-browse-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.dropzone-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.dropzone-tags .tag {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
}

/* File Parse Progress */
.von3d-parse-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}

.parse-spinner, .ai-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #e2e8f0;
    border-top-color: #059669;
    border-radius: 50%;
    animation: von3dSpin 0.8s linear infinite;
}

@keyframes von3dSpin {
    to { transform: rotate(360deg); }
}

.parse-text, .ai-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.parse-bar-wrap, .ai-progress-bar-wrap {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.parse-bar-fill, .ai-progress-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #059669 0%, #10b981 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* File Meta Card (Shown after load) */
.von3d-file-meta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 12px;
}

.von3d-file-meta-card .meta-icon {
    font-size: 26px;
}

.von3d-file-meta-card .meta-info {
    flex: 1;
}

.von3d-file-meta-card .meta-filename {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.von3d-file-meta-card .meta-stats {
    font-size: 12.5px;
    color: #059669;
    font-weight: 600;
    margin-top: 2px;
}

.von3d-file-meta-card .meta-change-btn {
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.von3d-file-meta-card .meta-change-btn:hover {
    background: #cbd5e1;
}

/* ==========================================================================
   AI GENERATOR CARD & PROMPT CONTROLS
   ========================================================================== */
.von3d-ai-generator-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.ai-header {
    margin-bottom: 16px;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.ai-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.ai-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
}

.von3d-ai-prompt-input {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.von3d-ai-prompt-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Prompt Suggestion Pills */
.ai-prompt-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ai-prompt-pills .pill-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.ai-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ai-pill:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

/* AI Image Upload Row */
.ai-image-upload-row {
    margin-top: 14px;
}

.ai-image-label {
    cursor: pointer;
    display: inline-block;
}

.ai-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1px dashed #94a3b8;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ai-image-btn:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #f5f3ff;
}

.ai-image-preview {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    margin-left: 10px;
}

/* AI Action Row & Quota */
.ai-action-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.von3d-generate-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.von3d-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.von3d-generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.von3d-generate-btn .quota-pill {
    background: rgba(255, 255, 255, 0.2);
    font-size: 11.5px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

/* AI Progress Bar & Timer */
.von3d-ai-progress {
    margin-top: 18px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ai-progress-timer {
    font-size: 12px;
    font-weight: 700;
    color: #6366f1;
}

/* ==========================================================================
   DRAFT CAROUSEL / ENTWURFS-GALERIE
   ========================================================================== */
.von3d-draft-gallery {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #cbd5e1;
}

.draft-gallery-header h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.draft-gallery-hint {
    font-size: 12px;
    color: #64748b;
    display: block;
    margin-bottom: 12px;
}

.draft-cards-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
}

.draft-cards-scroll::-webkit-scrollbar {
    height: 6px;
}

.draft-cards-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Individual Draft Card */
.von3d-draft-card {
    flex: 0 0 220px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.von3d-draft-card:hover {
    border-color: #94a3b8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.von3d-draft-card.selected {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.draft-card-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background: #1e293b;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.draft-card-preview model-viewer {
    width: 100%;
    height: 100%;
}

.draft-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.draft-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.draft-card-specs {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
}

.draft-select-btn {
    width: 100%;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.von3d-draft-card.selected .draft-select-btn {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

/* ==========================================================================
   MAIN 3D VIEWPORT & HUD STYLING
   ========================================================================== */
.von3d-service-main-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
}

#custom-3d-viewer {
    width: 100%;
    height: 100%;
    outline: none;
    display: block;
}

.von3d-empty-viewport-poster {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: radial-gradient(circle at 50% 45%, #1e293b 0%, #090d16 100%);
    color: #f1f5f9;
}

.empty-poster-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-3d-icon {
    font-size: 52px;
    opacity: 0.6;
    animation: von3dFloat 3s ease-in-out infinite;
}

@keyframes von3dFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.empty-sub {
    font-size: 13px;
    color: #94a3b8;
    max-width: 320px;
}

/* CAD HUD OVERLAY */
.von3d-cad-hud {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 14px;
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11.5px;
    z-index: 90;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.von3d-cad-title {
    font-size: 9.5px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}

.von3d-cad-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 14px;
}

.von3d-cad-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.axis-badge {
    font-weight: 700;
}

.axis-x { color: #f87171; }
.axis-y { color: #4ade80; }
.axis-z { color: #38bdf8; }
.axis-w { color: #fbbf24; }

.axis-val {
    font-weight: 700;
    color: #ffffff;
}

.von3d-cad-footer {
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    color: #94a3b8;
    text-align: right;
}

/* Quick Scale Chips */
.von3d-size-quick-chips {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.von3d-chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.von3d-chip:hover {
    border-color: #0f172a;
    background: #e2e8f0;
}

.von3d-chip.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.von3d-pricing-breakdown {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
}

/* Mobile Responsiveness for Custom Service */
@media (max-width: 768px) {
    .von3d-service-tabs {
        grid-template-columns: 1fr;
    }
    .von3d-dropzone {
        padding: 24px 16px;
    }
    .draft-cards-scroll {
        flex-wrap: nowrap;
    }
    .von3d-draft-card {
        flex: 0 0 180px;
    }
    .custom-dims-inputs-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Scale Slider, Bounds & Reset */
#von3d-scale-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
    transition: background 0.05s ease;
}

#von3d-scale-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #059669;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

#von3d-scale-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 0 12px rgba(5, 150, 105, 0.5);
}

#von3d-scale-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #059669;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
}

.von3d-reset-scale-btn {
    background: #e2e8f0;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.von3d-reset-scale-btn:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.von3d-slider-bounds-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
}

.slider-bound-mid {
    color: #0f172a;
    font-weight: 700;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Free Linear Dimensions Inputs Card */
.von3d-custom-dims-card {
    margin-top: 16px;
    padding: 16px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-dims-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-dims-title {
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

.custom-dims-hint {
    font-size: 11.5px;
    color: #64748b;
}

.custom-dims-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.dim-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dim-input-group label {
    font-size: 11.5px;
    font-weight: 700;
    color: #475569;
}

.input-unit-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-unit-wrap input {
    width: 100%;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 30px 7px 10px;
    font-size: 13px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 700;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.input-unit-wrap input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}

.input-unit-wrap .unit {
    position: absolute;
    right: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    pointer-events: none;
}

.custom-dims-note {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.custom-dims-warning {
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    padding: 8px 10px;
    border-radius: 8px;
    line-height: 1.4;
}

/* ==========================================================================
   MULTI-COLOR AMS MULTI-COLOR STUDIO STYLES
   ========================================================================== */
.von3d-mode-toggles {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 3px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.von3d-mode-btn {
    border: none;
    background: transparent;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.von3d-mode-btn:hover {
    color: #0f172a;
}

.von3d-mode-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.von3d-ams-container {
    margin-top: 14px;
    padding: 14px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.von3d-ams-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ams-slots-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #1e293b;
}

.ams-surcharge-badge {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 2px 8px;
    border-radius: 12px;
}

.von3d-ams-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.ams-slot {
    position: relative;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ams-slot:hover {
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.ams-slot.active {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
}

.ams-slot.is-empty {
    border-style: dashed;
    border-color: #cbd5e1;
    background: #ffffff;
    opacity: 0.85;
}

.ams-slot.is-empty:hover {
    border-color: #059669;
    opacity: 1.0;
}

.slot-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.3px;
}

.slot-color-preview {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.slot-add-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
    color: #64748b;
}

.slot-name {
    font-size: 10.5px;
    font-weight: 700;
    color: #1e293b;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slot-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
    line-height: 18px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
}

.slot-remove-btn:hover {
    transform: scale(1.15);
}

.von3d-paint-tools-row {
    display: flex;
    gap: 8px;
}

.paint-tool-btn {
    flex: 1;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.paint-tool-btn:hover {
    border-color: #059669;
    color: #059669;
}

.paint-tool-btn.active {
    border-color: #059669;
    background: #059669;
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.paint-instructions {
    font-size: 11.5px;
    color: #475569;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #059669;
    line-height: 1.4;
}

.layer-height-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.layer-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.layer-split-readout {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 800;
    color: #059669;
}

#input-layer-split {
    width: 100%;
    margin-top: 6px;
    cursor: pointer;
}

.layer-height-legend {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    padding: 4px 6px;
    background: #f8fafc;
    border-radius: 6px;
}

.apply-layer-split-btn {
    border: none;
    background: #0f172a;
    color: #ffffff;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.apply-layer-split-btn:hover {
    background: #1e293b;
}

.paint-actions-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.paint-action-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.paint-action-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* ==========================================================================
   UNIFIED 3D PRODUCT CONFIGURATOR STYLES
   ========================================================================== */
.von3d-unified-product {
    margin-bottom: 24px;
}

.von3d-fixed-dims-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 14px;
}

.von3d-fixed-dims-card .dims-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.von3d-fixed-dims-card .dims-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.von3d-fixed-dims-card .dims-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.von3d-fixed-dims-card .dims-title strong {
    color: #059669;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.von3d-fixed-dims-card .dims-sub {
    font-size: 11px;
    color: #64748b;
}

.von3d-var-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.von3d-var-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.von3d-var-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.von3d-var-btn.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.von3d-var-btn .var-name {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.von3d-var-btn .var-price {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 3px;
}

.von3d-var-btn.active .var-price {
    color: #34d399;
}

.von3d-segments-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.von3d-segment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
}

.von3d-segment-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.von3d-segment-btn.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.von3d-segment-btn .segment-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}




