/* Override Elementor Styling - Might have to change for non-staging environment */
.elementor-kit-4 button{ background-color: transparent; }

/* Force dark background - Override any theme interference */
html, body, 
body.page, body.single, body.home,
.wp-site-blocks, .entry-content,
#page, #main, #content,
.elementor, .elementor-section, .elementor-container, .elementor-widget-container {
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%) !important;
    background-color: #090A0F !important;
}

/* Additional mobile browser specific overrides */
@media screen and (max-width: 1024px) {
    html, body {
        background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%) !important;
        background-color: #090A0F !important;
        background-attachment: fixed !important;
    }
}

/* WebKit mobile browser specific */
@media screen and (-webkit-min-device-pixel-ratio: 1) and (max-width: 1024px) {
    html, body,
    .lightsaber-configurator-wrapper {
        background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%) !important;
        background-color: #090A0F !important;
    }
}

/* Modern UI Improvements */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlights on mobile */
}

/* Step Progress Indicator */
.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    border: 1px solid #333;
    overflow-x: auto;
    padding: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
    max-width: 80px;
    position: relative;
    text-align: center;
    flex: 0 0 auto;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.step-label {
    font-size: 12px;
    color: #888;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 80px;
    display: block;
    white-space: normal;
    word-break: break-word;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    min-height: 28px;
}

.step.active .step-number {
    background: #FFC03A;
    color: #000;
    border-color: #FFC03A;
}

.step.active .step-label {
    color: #FFC03A;
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.step.completed .step-label {
    color: #4CAF50;
}

.step:hover .step-number {
    transform: scale(1.1);
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-header {
    margin-bottom: 20px;
    text-align: center;
}

.step-header h3 {
    color: #FFC03A;
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.step-header p {
    color: #ccc;
    margin: 0;
}

/* Step Navigation Buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.prev-btn, .next-btn, .complete-btn {
    background: linear-gradient(135deg, #FFC03A 0%, #FF8C00 100%);
    color: #000 !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.next-btn {
    color: #000 !important;
}

.complete-btn {
    color: #000 !important;
}

.prev-btn {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    color: white;
}

.prev-btn:hover {
    background: linear-gradient(135deg, #777 0%, #555 100%);
    transform: translateY(-2px);
}

.next-btn:hover, .complete-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    transform: translateY(-2px);
    color: #000 !important;
}

.complete-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.complete-btn:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}




/* Ensure proper viewport handling on mobile */
html, body {
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%) !important;
    overflow: hidden; /* Prevent any page-level scrolling */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%; /* Prevent text scaling on mobile */
    touch-action: manipulation; /* Improve touch responsiveness */
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%) !important;
}

/* Elementor widget compatibility */
.elementor-widget-container .lightsaber-configurator-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Starfield Background - Responsive Version */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    background: transparent;
    z-index: 2;
    box-shadow: 
        1.5vw 25vh #FFF, 3.2vw 45vh #FFF, 5.8vw 65vh #FFF, 2.1vw 85vh #FFF,
        4.7vw 15vh #FFF, 0.8vw 35vh #FFF, 6.3vw 55vh #FFF, 3.9vw 75vh #FFF,
        2.6vw 5vh #FFF, 5.1vw 95vh #FFF, 1.2vw 18vh #FFF, 4.4vw 38vh #FFF,
        97.4vw 43.2vh #FFF, 59.9vw 67.2vh #FFF, 44.6vw 35.75vh #FFF, 16.15vw 89vh #FFF, 
        91.1vw 45.3vh #FFF, 82.25vw 80.9vh #FFF, 96.3vw 52.2vh #FFF, 71.15vw 65.2vh #FFF,
        33.25vw 78.35vh #FFF, 92.2vw 92.1vh #FFF, 7.35vw 76.45vh #FFF, 26.2vw 60.25vh #FFF,
        87.6vw 14.85vh #FFF, 91.6vw 56vh #FFF, 33.55vw 50.9vh #FFF, 60.2vw 84.8vh #FFF,
        84.5vw 87.85vh #FFF, 92.1vw 55.95vh #FFF, 58.25vw 80.35vh #FFF, 84.75vw 21vh #FFF,
        62vw 83.9vh #FFF, 34.2vw 24.55vh #FFF, 79vw 87.2vh #FFF, 52.2vw 69.7vh #FFF,
        88vw 52vh #FFF, 75.55vw 87.75vh #FFF, 87.5vw 35.25vh #FFF, 35.85vw 86.2vh #FFF,
        83.45vw 74.9vh #FFF, 99.7vw 56.85vh #FFF, 15.95vw 62.15vh #FFF, 90.7vw 58.55vh #FFF,
        98.45vw 73.9vh #FFF, 78.85vw 51.9vh #FFF, 54vw 56.15vh #FFF, 69.7vw 88.45vh #FFF,
        89.3vw 72.7vh #FFF, 98.3vw 75.8vh #FFF, 71.45vw 84.45vh #FFF, 75.8vw 56.7vh #FFF,
        61.9vw 70.95vh #FFF, 85.15vw 72.9vh #FFF, 58.3vw 88vh #FFF, 99.55vw 43.3vh #FFF,
        57.85vw 72.25vh #FFF, 87.65vw 68.95vh #FFF, 88.25vw 46.75vh #FFF, 92.15vw 87.15vh #FFF,
        46.8vw 58vh #FFF, 69.95vw 89.6vh #FFF, 82.75vw 80.75vh #FFF, 76.7vw 75.4vh #FFF,
        86.6vw 89vh #FFF, 83.85vw 88.65vh #FFF, 90.4vw 77.1vh #FFF, 75.1vw 50.1vh #FFF,
        77.85vw 93.9vh #FFF, 96.15vw 72vh #FFF, 52.5vw 87.3vh #FFF, 64.55vw 75.35vh #FFF,
        53.75vw 73.05vh #FFF, 79.8vw 73.85vh #FFF, 91.15vw 65.1vh #FFF, 55.3vw 82.35vh #FFF,
        88.05vw 53.7vh #FFF, 75.4vw 73.65vh #FFF, 84.25vw 92.7vh #FFF, 53.2vw 54.85vh #FFF,
        44.6vw 22.55vh #FFF, 86.7vw 84.45vh #FFF, 23.9vw 71.6vh #FFF, 80.6vw 49.15vh #FFF,
        17.25vw 89.45vh #FFF, 94.55vw 28.35vh #FFF, 36.15vw 72.8vh #FFF, 78.35vw 11.7vh #FFF,
        22.8vw 91.15vh #FFF, 61.7vw 39.45vh #FFF, 39.45vw 67.25vh #FFF, 72.8vw 28.35vh #FFF,
        11.7vw 83.9vh #FFF, 89.45vw 44.5vh #FFF, 28.35vw 61.7vh #FFF, 44.5vw 78.35vh #FFF,
        67.1vw 43.8vh #FFF, 27.15vw 99.35vh #FFF, 88.25vw 11.7vh #FFF, 49.35vw 77.15vh #FFF,
        11.7vw 43.8vh #FFF, 82.7vw 21.6vh #FFF, 43.8vw 66.05vh #FFF, 21.6vw 88.25vh #FFF,
        99.35vw 27.15vh #FFF, 16.05vw 93.8vh #FFF, 38.25vw 49.35vh #FFF, 71.6vw 16.05vh #FFF,
        32.7vw 77.15vh #FFF, 93.8vw 38.25vh #FFF, 27.15vw 71.6vh #FFF, 66.05vw 32.7vh #FFF,
        43.8vw 88.25vh #FFF, 21.6vw 49.35vh #FFF, 77.15vw 16.05vh #FFF, 38.25vw 82.7vh #FFF,
        49.35vw 21.6vh #FFF, 88.25vw 43.8vh #FFF, 16.05vw 77.15vh #FFF, 32.7vw 38.25vh #FFF,
        71.6vw 49.35vh #FFF, 43.8vw 16.05vh #FFF, 27.15vw 88.25vh #FFF, 82.7vw 21.6vh #FFF,
        38.25vw 43.8vh #FFF, 49.35vw 66.05vh #FFF, 21.6vw 32.7vh #FFF, 77.15vw 38.25vh #FFF,
        16.05vw 49.35vh #FFF, 88.25vw 21.6vh #FFF, 32.7vw 66.05vh #FFF, 43.8vw 27.15vh #FFF,
        71.6vw 38.25vh #FFF, 49.35vw 32.7vh #FFF, 16.05vw 71.6vh #FFF, 27.15vw 43.8vh #FFF,
        38.25vw 16.05vh #FFF, 82.7vw 49.35vh #FFF, 21.6vw 27.15vh #FFF, 43.8vw 88.25vh #FFF,
        49.35vw 16.05vh #FFF, 77.15vw 32.7vh #FFF, 38.25vw 21.6vh #FFF, 16.05vw 43.8vh #FFF,
        71.6vw 49.35vh #FFF, 32.7vw 16.05vh #FFF, 43.8vw 77.15vh #FFF, 21.6vw 38.25vh #FFF,
        49.35vw 43.8vh #FFF, 16.05vw 21.6vh #FFF, 88.25vw 32.7vh #FFF, 27.15vw 49.35vh #FFF,
        43.8vw 16.05vh #FFF, 71.6vw 27.15vh #FFF, 38.25vw 43.8vh #FFF, 49.35vw 16.05vh #FFF,
        21.6vw 88.25vh #FFF, 32.7vw 21.6vh #FFF, 66.05vw 43.8vh #FFF, 49.35vw 27.15vh #FFF,
        16.05vw 38.25vh #FFF, 82.7vw 49.35vh #FFF, 43.8vw 16.05vh #FFF, 27.15vw 71.6vh #FFF,
        38.25vw 32.7vh #FFF, 21.6vw 43.8vh #FFF, 49.35vw 16.05vh #FFF, 77.15vw 38.25vh #FFF,
        11.05vw 91.7vh #FFF, 79.9vw 22.25vh #FFF, 46.6vw 63.35vh #FFF, 87.8vw 41.15vh #FFF,
        22.25vw 66.05vh #FFF, 41.15vw 79.9vh #FFF, 63.35vw 46.6vh #FFF, 91.7vw 11.05vh #FFF,
        29.9vw 87.8vh #FFF, 66.05vw 22.25vh #FFF, 46.6vw 41.15vh #FFF, 79.9vw 63.35vh #FFF,
        11.05vw 46.6vh #FFF, 91.7vw 29.9vh #FFF, 22.25vw 87.8vh #FFF, 41.15vw 11.05vh #FFF,
        63.35vw 91.7vh #FFF, 46.6vw 22.25vh #FFF, 79.9vw 41.15vh #FFF, 87.8vw 63.35vh #FFF,
        22.25vw 46.6vh #FFF, 11.05vw 79.9vh #FFF, 41.15vw 87.8vh #FFF, 91.7vw 22.25vh #FFF,
        29.9vw 11.05vh #FFF, 66.05vw 91.7vh #FFF, 46.6vw 29.9vh #FFF, 87.8vw 66.05vh #FFF,
        11.05vw 41.15vh #FFF, 91.7vw 63.35vh #FFF, 22.25vw 46.6vh #FFF, 41.15vw 79.9vh #FFF,
        63.35vw 11.05vh #FFF, 46.6vw 91.7vh #FFF, 79.9vw 22.25vh #FFF, 87.8vw 41.15vh #FFF;
    animation: animStar 50s linear infinite;
}

#stars:after {
    content: " ";
    position: absolute;
    top: 200vh;
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 
        1.5vw 25vh #FFF, 3.2vw 45vh #FFF, 5.8vw 65vh #FFF, 2.1vw 85vh #FFF,
        4.7vw 15vh #FFF, 0.8vw 35vh #FFF, 6.3vw 55vh #FFF, 3.9vw 75vh #FFF,
        2.6vw 5vh #FFF, 5.1vw 95vh #FFF, 1.2vw 18vh #FFF, 4.4vw 38vh #FFF,
        97.4vw 43.2vh #FFF, 59.9vw 67.2vh #FFF, 44.6vw 35.75vh #FFF, 16.15vw 89vh #FFF, 
        91.1vw 45.3vh #FFF, 82.25vw 80.9vh #FFF, 96.3vw 52.2vh #FFF, 71.15vw 65.2vh #FFF,
        33.25vw 78.35vh #FFF, 92.2vw 92.1vh #FFF, 7.35vw 76.45vh #FFF, 26.2vw 60.25vh #FFF,
        87.6vw 14.85vh #FFF, 91.6vw 56vh #FFF, 33.55vw 50.9vh #FFF, 60.2vw 84.8vh #FFF,
        84.5vw 87.85vh #FFF, 92.1vw 55.95vh #FFF, 58.25vw 80.35vh #FFF, 84.75vw 21vh #FFF,
        62vw 83.9vh #FFF, 34.2vw 24.55vh #FFF, 79vw 87.2vh #FFF, 52.2vw 69.7vh #FFF,
        88vw 52vh #FFF, 75.55vw 87.75vh #FFF, 87.5vw 35.25vh #FFF, 35.85vw 86.2vh #FFF,
        83.45vw 74.9vh #FFF, 99.7vw 56.85vh #FFF, 15.95vw 62.15vh #FFF, 90.7vw 58.55vh #FFF,
        98.45vw 73.9vh #FFF, 78.85vw 51.9vh #FFF, 54vw 56.15vh #FFF, 69.7vw 88.45vh #FFF,
        89.3vw 72.7vh #FFF, 98.3vw 75.8vh #FFF, 71.45vw 84.45vh #FFF, 75.8vw 56.7vh #FFF,
        61.9vw 70.95vh #FFF, 85.15vw 72.9vh #FFF, 58.3vw 88vh #FFF, 99.55vw 43.3vh #FFF,
        57.85vw 72.25vh #FFF, 87.65vw 68.95vh #FFF, 88.25vw 46.75vh #FFF, 92.15vw 87.15vh #FFF,
        46.8vw 58vh #FFF, 69.95vw 89.6vh #FFF, 82.75vw 80.75vh #FFF, 76.7vw 75.4vh #FFF,
        86.6vw 89vh #FFF, 83.85vw 88.65vh #FFF, 90.4vw 77.1vh #FFF, 75.1vw 50.1vh #FFF,
        77.85vw 93.9vh #FFF, 96.15vw 72vh #FFF, 52.5vw 87.3vh #FFF, 64.55vw 75.35vh #FFF,
        53.75vw 73.05vh #FFF, 79.8vw 73.85vh #FFF, 91.15vw 65.1vh #FFF, 55.3vw 82.35vh #FFF,
        88.05vw 53.7vh #FFF, 75.4vw 73.65vh #FFF, 84.25vw 92.7vh #FFF, 53.2vw 54.85vh #FFF,
        44.6vw 22.55vh #FFF, 86.7vw 84.45vh #FFF, 23.9vw 71.6vh #FFF, 80.6vw 49.15vh #FFF,
        17.25vw 89.45vh #FFF, 94.55vw 28.35vh #FFF, 36.15vw 72.8vh #FFF, 78.35vw 11.7vh #FFF,
        22.8vw 91.15vh #FFF, 61.7vw 39.45vh #FFF, 39.45vw 67.25vh #FFF, 72.8vw 28.35vh #FFF,
        11.7vw 83.9vh #FFF, 89.45vw 44.5vh #FFF, 28.35vw 61.7vh #FFF, 44.5vw 78.35vh #FFF,
        67.1vw 43.8vh #FFF, 27.15vw 99.35vh #FFF, 88.25vw 11.7vh #FFF, 49.35vw 77.15vh #FFF,
        11.7vw 43.8vh #FFF, 82.7vw 21.6vh #FFF, 43.8vw 66.05vh #FFF, 21.6vw 88.25vh #FFF,
        99.35vw 27.15vh #FFF, 16.05vw 93.8vh #FFF, 38.25vw 49.35vh #FFF, 71.6vw 16.05vh #FFF,
        32.7vw 77.15vh #FFF, 93.8vw 38.25vh #FFF, 27.15vw 71.6vh #FFF, 66.05vw 32.7vh #FFF,
        43.8vw 88.25vh #FFF, 21.6vw 49.35vh #FFF, 77.15vw 16.05vh #FFF, 38.25vw 82.7vh #FFF,
        49.35vw 21.6vh #FFF, 88.25vw 43.8vh #FFF, 16.05vw 77.15vh #FFF, 32.7vw 38.25vh #FFF,
        71.6vw 49.35vh #FFF, 43.8vw 16.05vh #FFF, 27.15vw 88.25vh #FFF, 82.7vw 21.6vh #FFF,
        38.25vw 43.8vh #FFF, 49.35vw 66.05vh #FFF, 21.6vw 32.7vh #FFF, 77.15vw 38.25vh #FFF,
        16.05vw 49.35vh #FFF, 88.25vw 21.6vh #FFF, 32.7vw 66.05vh #FFF, 43.8vw 27.15vh #FFF,
        71.6vw 38.25vh #FFF, 49.35vw 32.7vh #FFF, 16.05vw 71.6vh #FFF, 27.15vw 43.8vh #FFF,
        38.25vw 16.05vh #FFF, 82.7vw 49.35vh #FFF, 21.6vw 27.15vh #FFF, 43.8vw 88.25vh #FFF,
        49.35vw 16.05vh #FFF, 77.15vw 32.7vh #FFF, 38.25vw 21.6vh #FFF, 16.05vw 43.8vh #FFF,
        71.6vw 49.35vh #FFF, 32.7vw 16.05vh #FFF, 43.8vw 77.15vh #FFF, 21.6vw 38.25vh #FFF,
        49.35vw 43.8vh #FFF, 16.05vw 21.6vh #FFF, 88.25vw 32.7vh #FFF, 27.15vw 49.35vh #FFF,
        43.8vw 16.05vh #FFF, 71.6vw 27.15vh #FFF, 38.25vw 43.8vh #FFF, 49.35vw 16.05vh #FFF,
        21.6vw 88.25vh #FFF, 32.7vw 21.6vh #FFF, 66.05vw 43.8vh #FFF, 49.35vw 27.15vh #FFF,
        16.05vw 38.25vh #FFF, 82.7vw 49.35vh #FFF, 43.8vw 16.05vh #FFF, 27.15vw 71.6vh #FFF,
        38.25vw 32.7vh #FFF, 21.6vw 43.8vh #FFF, 49.35vw 16.05vh #FFF, 77.15vw 38.25vh #FFF,
        11.05vw 91.7vh #FFF, 79.9vw 22.25vh #FFF, 46.6vw 63.35vh #FFF, 87.8vw 41.15vh #FFF,
        22.25vw 66.05vh #FFF, 41.15vw 79.9vh #FFF, 63.35vw 46.6vh #FFF, 91.7vw 11.05vh #FFF,
        29.9vw 87.8vh #FFF, 66.05vw 22.25vh #FFF, 46.6vw 41.15vh #FFF, 79.9vw 63.35vh #FFF,
        11.05vw 46.6vh #FFF, 91.7vw 29.9vh #FFF, 22.25vw 87.8vh #FFF, 41.15vw 11.05vh #FFF,
        63.35vw 91.7vh #FFF, 46.6vw 22.25vh #FFF, 79.9vw 41.15vh #FFF, 87.8vw 63.35vh #FFF,
        22.25vw 46.6vh #FFF, 11.05vw 79.9vh #FFF, 41.15vw 87.8vh #FFF, 91.7vw 22.25vh #FFF,
        29.9vw 11.05vh #FFF, 66.05vw 91.7vh #FFF, 46.6vw 29.9vh #FFF, 87.8vw 66.05vh #FFF,
        11.05vw 41.15vh #FFF, 91.7vw 63.35vh #FFF, 22.25vw 46.6vh #FFF, 41.15vw 79.9vh #FFF,
        63.35vw 11.05vh #FFF, 46.6vw 91.7vh #FFF, 79.9vw 22.25vh #FFF, 87.8vw 41.15vh #FFF;
    animation: animStar 50s linear infinite;
}

#stars2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: transparent;
    z-index: 3;
    box-shadow: 
        2.1vw 32vh #FFF, 4.8vw 52vh #FFF, 1.4vw 72vh #FFF, 5.9vw 12vh #FFF,
        3.6vw 92vh #FFF, 1.8vw 42vh #FFF, 6.2vw 62vh #FFF, 4.1vw 82vh #FFF,
        71.2vw 52.25vh #FFF, 47.35vw 63.7vh #FFF, 85.85vw 93.15vh #FFF, 61.7vw 37.4vh #FFF,
        33.65vw 69.85vh #FFF, 89.45vw 57.6vh #FFF, 53.35vw 84.45vh #FFF, 72.8vw 49.35vh #FFF,
        76.15vw 81.7vh #FFF, 41.7vw 71.05vh #FFF, 59.45vw 26.6vh #FFF, 83.9vw 62.25vh #FFF,
        67.25vw 89.45vh #FFF, 39.45vw 53.35vh #FFF, 78.35vw 61.7vh #FFF, 51.15vw 81.7vh #FFF,
        61.7vw 42.25vh #FFF, 89.45vw 78.35vh #FFF, 28.35vw 59.45vh #FFF, 67.25vw 39.45vh #FFF,
        83.9vw 51.15vh #FFF, 42.25vw 72.8vh #FFF, 78.35vw 33.65vh #FFF, 59.45vw 89.45vh #FFF,
        39.45vw 67.25vh #FFF, 51.15vw 83.9vh #FFF, 72.8vw 42.25vh #FFF, 33.65vw 78.35vh #FFF,
        89.45vw 59.45vh #FFF, 67.25vw 39.45vh #FFF, 83.9vw 51.15vh #FFF, 42.25vw 72.8vh #FFF,
        49.35vw 76.15vh #FFF, 71.05vw 41.7vh #FFF, 26.6vw 59.45vh #FFF, 62.25vw 83.9vh #FFF,
        89.45vw 67.25vh #FFF, 53.35vw 39.45vh #FFF, 61.7vw 78.35vh #FFF, 81.7vw 51.15vh #FFF,
        14.9vw 73.8vh #FFF, 92.15vw 31.45vh #FFF, 37.8vw 64.9vh #FFF, 81.45vw 37.8vh #FFF,
        21.45vw 92.15vh #FFF, 64.9vw 21.45vh #FFF, 37.8vw 81.45vh #FFF, 73.8vw 14.9vh #FFF,
        31.45vw 87.8vh #FFF, 92.15vw 31.45vh #FFF, 14.9vw 73.8vh #FFF, 81.45vw 14.9vh #FFF,
        37.8vw 92.15vh #FFF, 21.45vw 37.8vh #FFF, 64.9vw 81.45vh #FFF, 73.8vw 21.45vh #FFF,
        31.45vw 64.9vh #FFF, 87.8vw 73.8vh #FFF, 14.9vw 31.45vh #FFF, 92.15vw 87.8vh #FFF,
        21.45vw 14.9vh #FFF, 81.45vw 92.15vh #FFF, 37.8vw 21.45vh #FFF, 73.8vw 81.45vh #FFF,
        14.9vw 37.8vh #FFF, 92.15vw 64.9vh #FFF, 31.45vw 73.8vh #FFF, 87.8vw 31.45vh #FFF,
        21.45vw 87.8vh #FFF, 64.9vw 14.9vh #FFF, 37.8vw 92.15vh #FFF, 81.45vw 21.45vh #FFF,
        73.8vw 37.8vh #FFF, 14.9vw 81.45vh #FFF, 92.15vw 73.8vh #FFF, 31.45vw 14.9vh #FFF,
        87.8vw 92.15vh #FFF, 21.45vw 31.45vh #FFF, 64.9vw 87.8vh #FFF, 37.8vw 21.45vh #FFF;
    animation: animStar 100s linear infinite;
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 200vh;
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 
        2.1vw 32vh #FFF, 4.8vw 52vh #FFF, 1.4vw 72vh #FFF, 5.9vw 12vh #FFF,
        3.6vw 92vh #FFF, 1.8vw 42vh #FFF, 6.2vw 62vh #FFF, 4.1vw 82vh #FFF,
        71.2vw 52.25vh #FFF, 47.35vw 63.7vh #FFF, 85.85vw 93.15vh #FFF, 61.7vw 37.4vh #FFF,
        33.65vw 69.85vh #FFF, 89.45vw 57.6vh #FFF, 53.35vw 84.45vh #FFF, 72.8vw 49.35vh #FFF,
        76.15vw 81.7vh #FFF, 41.7vw 71.05vh #FFF, 59.45vw 26.6vh #FFF, 83.9vw 62.25vh #FFF,
        67.25vw 89.45vh #FFF, 39.45vw 53.35vh #FFF, 78.35vw 61.7vh #FFF, 51.15vw 81.7vh #FFF,
        61.7vw 42.25vh #FFF, 89.45vw 78.35vh #FFF, 28.35vw 59.45vh #FFF, 67.25vw 39.45vh #FFF,
        83.9vw 51.15vh #FFF, 42.25vw 72.8vh #FFF, 78.35vw 33.65vh #FFF, 59.45vw 89.45vh #FFF,
        39.45vw 67.25vh #FFF, 51.15vw 83.9vh #FFF, 72.8vw 42.25vh #FFF, 33.65vw 78.35vh #FFF,
        89.45vw 59.45vh #FFF, 67.25vw 39.45vh #FFF, 83.9vw 51.15vh #FFF, 42.25vw 72.8vh #FFF,
        49.35vw 76.15vh #FFF, 71.05vw 41.7vh #FFF, 26.6vw 59.45vh #FFF, 62.25vw 83.9vh #FFF,
        89.45vw 67.25vh #FFF, 53.35vw 39.45vh #FFF, 61.7vw 78.35vh #FFF, 81.7vw 51.15vh #FFF,
        14.9vw 73.8vh #FFF, 92.15vw 31.45vh #FFF, 37.8vw 64.9vh #FFF, 81.45vw 37.8vh #FFF,
        21.45vw 92.15vh #FFF, 64.9vw 21.45vh #FFF, 37.8vw 81.45vh #FFF, 73.8vw 14.9vh #FFF,
        31.45vw 87.8vh #FFF, 92.15vw 31.45vh #FFF, 14.9vw 73.8vh #FFF, 81.45vw 14.9vh #FFF,
        37.8vw 92.15vh #FFF, 21.45vw 37.8vh #FFF, 64.9vw 81.45vh #FFF, 73.8vw 21.45vh #FFF,
        31.45vw 64.9vh #FFF, 87.8vw 73.8vh #FFF, 14.9vw 31.45vh #FFF, 92.15vw 87.8vh #FFF,
        21.45vw 14.9vh #FFF, 81.45vw 92.15vh #FFF, 37.8vw 21.45vh #FFF, 73.8vw 81.45vh #FFF,
        14.9vw 37.8vh #FFF, 92.15vw 64.9vh #FFF, 31.45vw 73.8vh #FFF, 87.8vw 31.45vh #FFF,
        21.45vw 87.8vh #FFF, 64.9vw 14.9vh #FFF, 37.8vw 92.15vh #FFF, 81.45vw 21.45vh #FFF,
        73.8vw 37.8vh #FFF, 14.9vw 81.45vh #FFF, 92.15vw 73.8vh #FFF, 31.45vw 14.9vh #FFF,
        87.8vw 92.15vh #FFF, 21.45vw 31.45vh #FFF, 64.9vw 87.8vh #FFF, 37.8vw 21.45vh #FFF;
    animation: animStar 100s linear infinite;
}

#stars3 {
    position: fixed;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    background: transparent;
    z-index: 4;
    box-shadow: 
        2.1vw 15.5vh #FFF, 4.8vw 67.3vh #FFF, 1.7vw 89.2vh #FFF, 5.9vw 34.1vh #FFF,
        3.5vw 78.9vh #FFF, 6.4vw 23.7vh #FFF, 2.8vw 56.8vh #FFF,
        61.7vw 28.35vh #FFF, 44.5vw 61.7vh #FFF, 78.35vw 44.5vh #FFF, 61.7vw 78.35vh #FFF,
        28.35vw 44.5vh #FFF, 94.5vw 61.7vh #FFF, 61.7vw 22.8vh #FFF, 39.45vw 78.35vh #FFF,
        72.8vw 39.45vh #FFF, 56.15vw 72.8vh #FFF, 33.9vw 56.15vh #FFF, 67.25vw 33.9vh #FFF,
        89.45vw 67.25vh #FFF, 22.8vw 89.45vh #FFF, 50.6vw 22.8vh #FFF, 78.35vw 50.6vh #FFF,
        44.5vw 78.35vh #FFF, 61.7vw 44.5vh #FFF, 78.35vw 61.7vh #FFF, 44.5vw 78.35vh #FFF,
        22.8vw 50.6vh #FFF, 89.45vw 22.8vh #FFF, 67.25vw 89.45vh #FFF, 33.9vw 67.25vh #FFF,
        56.15vw 33.9vh #FFF, 72.8vw 56.15vh #FFF, 39.45vw 72.8vh #FFF, 78.35vw 39.45vh #FFF,
        61.7vw 78.35vh #FFF, 44.5vw 61.7vh #FFF, 28.35vw 44.5vh #FFF, 94.5vw 28.35vh #FFF,
        17.25vw 82.7vh #FFF, 99.35vw 17.25vh #FFF, 32.7vw 67.25vh #FFF, 67.25vw 49.35vh #FFF,
        49.35vw 82.7vh #FFF, 82.7vw 17.25vh #FFF, 17.25vw 99.35vh #FFF, 99.35vw 32.7vh #FFF,
        32.7vw 67.25vh #FFF, 67.25vw 17.25vh #FFF, 49.35vw 99.35vh #FFF, 82.7vw 49.35vh #FFF,
        17.25vw 67.25vh #FFF, 99.35vw 49.35vh #FFF, 32.7vw 82.7vh #FFF, 67.25vw 17.25vh #FFF,
        49.35vw 99.35vh #FFF, 82.7vw 32.7vh #FFF, 17.25vw 67.25vh #FFF, 99.35vw 82.7vh #FFF,
        32.7vw 49.35vh #FFF, 67.25vw 17.25vh #FFF, 49.35vw 99.35vh #FFF, 82.7vw 32.7vh #FFF,
        17.25vw 67.25vh #FFF, 99.35vw 49.35vh #FFF, 32.7vw 82.7vh #FFF, 67.25vw 17.25vh #FFF,
        49.35vw 67.25vh #FFF, 82.7vw 99.35vh #FFF, 17.25vw 32.7vh #FFF, 99.35vw 17.25vh #FFF;
    animation: animStar 150s linear infinite;
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 200vh;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 
        2.1vw 15.5vh #FFF, 4.8vw 67.3vh #FFF, 1.7vw 89.2vh #FFF, 5.9vw 34.1vh #FFF,
        3.5vw 78.9vh #FFF, 6.4vw 23.7vh #FFF, 2.8vw 56.8vh #FFF,
        61.7vw 28.35vh #FFF, 44.5vw 61.7vh #FFF, 78.35vw 44.5vh #FFF, 61.7vw 78.35vh #FFF,
        28.35vw 44.5vh #FFF, 94.5vw 61.7vh #FFF, 61.7vw 22.8vh #FFF, 39.45vw 78.35vh #FFF,
        72.8vw 39.45vh #FFF, 56.15vw 72.8vh #FFF, 33.9vw 56.15vh #FFF, 67.25vw 33.9vh #FFF,
        89.45vw 67.25vh #FFF, 22.8vw 89.45vh #FFF, 50.6vw 22.8vh #FFF, 78.35vw 50.6vh #FFF,
        44.5vw 78.35vh #FFF, 61.7vw 44.5vh #FFF, 78.35vw 61.7vh #FFF, 44.5vw 78.35vh #FFF,
        22.8vw 50.6vh #FFF, 89.45vw 22.8vh #FFF, 67.25vw 89.45vh #FFF, 33.9vw 67.25vh #FFF,
        56.15vw 33.9vh #FFF, 72.8vw 56.15vh #FFF, 39.45vw 72.8vh #FFF, 78.35vw 39.45vh #FFF,
        61.7vw 78.35vh #FFF, 44.5vw 61.7vh #FFF, 28.35vw 44.5vh #FFF, 94.5vw 28.35vh #FFF,
        17.25vw 82.7vh #FFF, 99.35vw 17.25vh #FFF, 32.7vw 67.25vh #FFF, 67.25vw 49.35vh #FFF,
        49.35vw 82.7vh #FFF, 82.7vw 17.25vh #FFF, 17.25vw 99.35vh #FFF, 99.35vw 32.7vh #FFF,
        32.7vw 67.25vh #FFF, 67.25vw 17.25vh #FFF, 49.35vw 99.35vh #FFF, 82.7vw 49.35vh #FFF,
        17.25vw 67.25vh #FFF, 99.35vw 49.35vh #FFF, 32.7vw 82.7vh #FFF, 67.25vw 17.25vh #FFF,
        49.35vw 99.35vh #FFF, 82.7vw 32.7vh #FFF, 17.25vw 67.25vh #FFF, 99.35vw 82.7vh #FFF,
        32.7vw 49.35vh #FFF, 67.25vw 17.25vh #FFF, 49.35vw 99.35vh #FFF, 82.7vw 32.7vh #FFF,
        17.25vw 67.25vh #FFF, 99.35vw 49.35vh #FFF, 32.7vw 82.7vh #FFF, 67.25vw 17.25vh #FFF,
        49.35vw 67.25vh #FFF, 82.7vw 99.35vh #FFF, 17.25vw 32.7vh #FFF, 99.35vw 17.25vh #FFF;
    animation: animStar 150s linear infinite;
}

@keyframes animStar {
    from {
        transform: translateY(0vh);
    }
    to {
        transform: translateY(-100vh);
    }
}




.lightsaber-configurator-wrapper {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent any overflow */
    background: transparent !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




/* Title Header (Hidden) */
.title-header {
    display: none;
}




/* Floating Logo in Top Left */
.floating-logo {
    position: fixed;
    top: 6px;
    left: 6px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 20px;
    border: 1px solid #FFC03A;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}




.floating-logo:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}




.floating-logo .logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 192, 58, 0.3));
}




.floating-logo .title-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}




.floating-logo .title-section .title-heading {
    color: #FFC03A !important;
    font-size: 1.4rem !important;
    margin: 0 !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    line-height: 1.2 !important;
    text-transform: none !important;
}




.floating-logo .title-section p {
    color: #cccccc !important;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 300;
}




.title-header .header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}




.title-header .logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(255, 192, 58, 0.3));
}




.title-header .title-section {
    flex: 1;
    text-align: center;
}




.title-header .title-section .title-heading {
    color: #FFC03A !important;
    font-size: 2rem;
    line-height: 1.2 !important;
    margin-bottom: 6px;
    font-weight: 300;
    letter-spacing: 2px;
}




.title-header .title-section p {
    color: #cccccc !important;
    font-size: 1rem;
    font-weight: 300;
}




.title-header.collapsed {
    height: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: none;
}




.title-header.collapsed .header-content {
    display: none;
}




.title-header.collapsed .title-section {
    display: none;
}




.title-header.collapsed .logo {
    height: 35px;
}




.main-container {
    position: relative;
    width: 100%;
    height: 100vh;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}




/* Desktop override for main container - Only for larger screens (laptops/desktops) */
@media (min-width: 1025px) {
    .main-container {
        display: block;
    }
}

 


/* Viewer Section - Mobile-first approach */
.viewer-section {
    position: relative;
    width: 100%;
    height: 50vh;
    z-index: 6;
    background: transparent;
}




/* Desktop override for full-screen viewer - Only for larger screens (laptops/desktops) */
@media (min-width: 1025px) {
    .viewer-section {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
    }
}




.viewer-panel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}




#configurator-canvas {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}




/* Accordion Styles for Collapsible Sections */
.accordion-section {
    border: 1px solid rgba(120, 140, 160, 0.2);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}




.accordion-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 7px 15px;
    background: #FFC03A;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}




.accordion-header:hover {
    background: rgba(255, 192, 58, 0.5);
}




.accordion-header h3,
.accordion-header label,
.accordion-header span {
    margin: 0 !important;
    font-weight: 600;
    color: black !important;
    font-size: 16px;
}




.accordion-header h3 {
    font-size: 18px;
}




.accordion-icon {
    color: #FFC03A !important;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
    line-height: 1;
}




.accordion-section.active .accordion-icon {
    transform: rotate(0deg);
}




.accordion-section:not(.active) .accordion-icon {
    transform: rotate(-90deg);
}




.accordion-content {
    box-sizing: content-box;
    padding: 12px; /* Increased padding for better content display */
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    opacity: 1;
    padding-bottom: 10px;
}




.accordion-section:not(.active) .accordion-content {
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
}




/* Remove the old viewer-header styles since we moved it to title-header */




/* Responsive adjustments for tablets and mobile devices */
@media (max-width: 1024px) {
    /* Force dark background on mobile devices */
    html, body,
    body.page, body.single, body.home,
    .wp-site-blocks, .entry-content,
    #page, #main, #content,
    .elementor, .elementor-section, .elementor-container, .elementor-widget-container,
    .lightsaber-configurator-wrapper,
    .main-container {
        background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%) !important;
        background-color: #090A0F !important;
    }
    
    /* Enhanced starfield visibility for mobile */
    #stars, #stars2, #stars3 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

    .title-header {
        display: none;
    }

    /* Step navigation mobile styles */
    .step-progress {
        padding: 15px 10px;
        gap: 8px;
        justify-content: center;
    }
    
    .step {
        min-width: 60px;
        max-width: 60px;
        text-align: center;
        flex: 0 0 auto;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 10px;
        width: 60px;
        display: block;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.2;
        min-height: 24px;
    }
    
    .step-navigation {
        flex-direction: row;
        gap: 10px;
    }
    
    .prev-btn, .next-btn, .complete-btn {
        flex: 1;
        padding: 15px;
    }




    .floating-logo {
        top: 5px;
        left: 5px;
        padding: 6px 6px;
        align-items: center;
        display: flex;
        background: none !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }




    .floating-logo .logo {
        height: 60px;
    }




    .floating-logo .title-section {
        display: none;
    }
    
    .title-header .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .title-header .logo {
        height: 35px;
    }
    
    .title-header .title-section {
        text-align: left;
        flex: 1;
    }
    
    .title-header .title-section .title-heading {
        font-size: 1.3rem;
        margin-bottom: 2px;
        line-height: 1.2 !important;
    }
    
    .title-header .title-section p {
        font-size: 0.8rem;
    }
    
    .main-container {
        height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    /* Split layout for mobile: viewer on top, controls on bottom */
    .viewer-section {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 50vh; /* Top half of screen */
        z-index: 6;
    }
    
    .controls-section {
        position: relative;
        top: 0;
        left: 0;
        width: 100vw;
        height: 50vh; /* Bottom half of screen */
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 0;
        background: #080808;
        border-radius: 0;
        border: none;
        border-top: 2px solid #FFC03A;
        z-index: 100;
        box-shadow: none;
        backdrop-filter: none;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scroll-behavior: smooth; /* Smooth scrolling behavior */
    }
    




    
    .controls {
        padding: 10px 0; /* Removed horizontal padding for full width */
        gap: 8px; /* Slightly increased gap for mobile */
        padding-bottom: 120px; /* Extra increased bottom padding for better mobile scrolling */
    }
    
    /* Ensure step navigation is properly positioned within scrollable area */
    .step-navigation {
        margin-bottom: 80px;
        position: relative;
    }
    
    .viewer-panel {
        padding: 5px;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }
    
    #configurator-canvas {
        width: 100%;
        height: 100%;
        max-height: none; /* Allow full height in mobile split view */
    }
    
    .component-btn-group {
        display: flex; /* Change from grid to flex */
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: hidden;
        gap: 12px; /* Increased gap for better spacing */
        margin-bottom: 16px; /* Increased margin */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        scrollbar-width: thin; /* Thin scrollbar on Firefox */
        padding: 8px; /* Add padding for better touch interaction */
    }
    
    /* Hide scrollbar for webkit browsers while keeping functionality */
    .component-btn-group::-webkit-scrollbar {
        height: 4px;
    }
    
    .component-btn-group::-webkit-scrollbar-track {
        background: rgba(255, 192, 58, 0.1);
        border-radius: 2px;
    }
    
    .component-btn-group::-webkit-scrollbar-thumb {
        background: rgba(255, 192, 58, 0.5);
        border-radius: 2px;
    }
    
    .component-btn {
        min-width: 95px; /* Increased from 85px */
        flex: 0 0 95px; /* Prevent shrinking, maintain width */
        min-height: 105px; /* Increased from 95px */
        font-size: 0.9rem; /* Increased from 0.85rem */
        padding: 8px; /* Added padding for better touch targets */
    }
    
    .component-thumbnail {
        width: 55px; /* Increased from 50px */
        height: 55px; /* Increased from 50px */
    }
    
    .component-name {
        font-size: 0.8rem; /* Increased from 0.75rem */
    }
    
    .color-swatch-group {
        gap: 6px;
        justify-content: center;
    }
    
    .color-option {
        width: 28px;
        height: 28px;
    }
       
    /* Accessories Mobile Styles - Large */
    .accessories-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .accessory-item {
        padding: 12px;
        min-height: 130px;
        gap: 8px;
    }
    
    .accessory-icon {
        width: 55px;
        height: 55px;
    }
    
    .accessory-thumbnail {
        border-radius: 4px;
    }
    
    .accessory-name {
        font-size: 0.85rem;
    }
    
    .accessory-description {
        font-size: 0.75rem;
    }
    
    .accessory-price {
        font-size: 0.8rem;
    }
    
    .accessory-check {
        width: 18px;
        height: 18px;
    }
    
    /* Mobile-specific overrides (480px and below) */
    @media (max-width: 480px) {
        /* Force dark background on small mobile devices */
        html, body,
        body.page, body.single, body.home,
        .wp-site-blocks, .entry-content,
        #page, #main, #content,
        .elementor, .elementor-section, .elementor-container, .elementor-widget-container,
        .lightsaber-configurator-wrapper,
        .main-container {
            background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%) !important;
            background-color: #090A0F !important;
        }
        
        /* Enhanced starfield visibility for small mobile */
        #stars, #stars2, #stars3 {
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            pointer-events: none !important;
        }
        
        /* Force CSS refresh with a test style */
        body { border: 1px solid transparent; }
        
        .floating-logo {
            top: 10px;
            left: 10px;
            padding: 8px 12px;
            gap: 10px;
            background: none !important;
            background-color: transparent !important;
            backdrop-filter: none !important;
            border: none !important;
            box-shadow: none !important;
            border-radius: 0 !important;
        }




        .floating-logo:hover {
            background: none !important;
            background-color: transparent !important;
            backdrop-filter: none !important;
            border: none !important;
            box-shadow: none !important;
            transform: none !important;
        }




        .floating-logo .logo {
            height: 60px;
        }




        .floating-logo .title-section {
            display: none;
        }
        
        /* Ensure split layout for small mobile too */
        .viewer-section {
            height: 50vh;
        }
        
        .controls-section {
            position: relative;
            height: 50vh;
            width: 100%;
            left: 0;
            top: 0;
            background: #080808;
            border-radius: 0;
            border: none;
            border-top: 2px solid #FFC03A;
            z-index: 100;
            box-shadow: none;
            backdrop-filter: none;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
        }
        
        /* Mobile-friendly component buttons with horizontal scrolling */
        .component-btn-group {
            display: flex;
            overflow-x: auto;
            overflow-y: hidden;
            gap: 12px;
            padding: 16px;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
        }
        
        .component-btn {
            min-width: 120px; /* Slightly smaller than before but still touch-friendly */
            flex: 0 0 120px; /* Prevent shrinking, maintain width */
            min-height: 140px; /* Reduced from 160px */
            padding: 10px 6px; /* Adjusted padding */
            font-size: 0.95rem;
        }
        
        .component-thumbnail {
            width: 60px;
            height: 60px;
        }
        
        .component-name {
            font-size: 14px;
            margin-top: 8px;
        }
        
        .saber-type-btn {
            padding: 8px 4px;
        }
        
        .type-label {
            font-size: 12px;
        }
        
        .type-price {
            font-size: 10px;
        }
        
        .version-badge {
            font-size: 7px;
            padding: 1px 3px;
            top: 2px;
            right: 2px;
        }
        
        .blade-length-selector {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }
        
        .blade-length-btn {
            padding: 8px 6px;
            min-height: 50px;
            font-size: 0.85rem;
        }
        
        .accessories-grid {
            grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
            gap: 8px;
            padding: 8px;
        }
        
        .accessory-item {
            padding: 8px;
        }
        
        /* Additional mobile button styles */
        .floating-cart-btn {
            position: fixed;
            top: 39vh;
            left: 8px;
            width: 70px;
            height: 25px;
            font-size: 0.65rem;
            bottom: auto;
            right: auto;
        }
        
        .floating-save-btn {
            position: fixed;
            top: 39vh;
            transform: translateY(-55px); /* Positioned above Add to Cart */
            left: 8px;
            width: 70px;
            height: 25px;
            font-size: 0.65rem;
            bottom: auto;
            right: auto;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
        }
        
        /* Mobile Reset Button */
        .floating-reset-btn {
            position: fixed;
            top: calc(25vh + 40px) !important; /* Adjusted to stay well within top half */
            right: 8px;
            z-index: 400;
            background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
            color: #000;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            bottom: auto; /* Override desktop positioning */
        }
        
        /* Mobile Info Button */
        .floating-info-btn {
            position: fixed;
            top: calc(50vh - 80px); /* Positioned near bottom of top section but still visible */
            right: 8px;
            z-index: 400;
            background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
            color: #000;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            bottom: auto; /* Override desktop positioning */
        }
        
        /* Mobile Blade Buttons */
        .floating-blade-btn,
        .floating-double-blade-btn {
            position: fixed;
            right: 8px;
            z-index: 400;
            background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
            color: #000;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 0.8rem;
            font-weight: bold;
            box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            bottom: auto; /* Override desktop positioning */
        }
        
        .floating-double-blade-btn {
            top: calc(50vh - 120px); /* Positioned in visible area of top section */
        }
        
        .floating-blade-btn {
            top: calc(50vh - 55px) !important; /* Adjusted to stay well within top half */
        }
        
        /* Mobile Blade Color Picker - position next to the blade button */
        .floating-blade-color-picker {
            right: 55px !important; /* Position to the left of the button (button is at right: 15px + 40px width = 55px, so 55px gives small gap) */
            top: calc(35vh) !important; /* Match the updated button's vertical position */
        }
        
        /* Mobile Zoom Buttons */
        .floating-zoom-btn {
            position: fixed;
            right: 8px;
            z-index: 400;
            background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
            color: #000 !important;
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            font-size: 0.7rem;
            font-weight: bold;
            box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            bottom: auto; /* Override desktop positioning */
        }
        
        #zoom-in-button {
            top: calc(25vh - 60px) !important; /* Adjusted to stay within top half */
        }




        #zoom-out-button {
            top: calc(25vh - 10px) !important; /* Adjusted to stay within top half */
        }
        
        .price-display {
            position: fixed;
            top: 46vh;
            left: 8px;
            padding: 6px 10px;
            font-size: 11px;
            z-index: 400 !important;
            width: auto;
            max-width: 80px;
            max-height: 25px;
            white-space: nowrap;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
    
    /* Additional tablet/mobile shared styles */
    .toggle-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        text-align: left;
    }
    
    .toggle-slider {
        align-self: flex-start;
    }
}

/* Tablet-specific styles (480px to 1024px) - Buttons positioned in top quarter */
@media (min-width: 480px) and (max-width: 1024px) {
    /* Tablet Reset Button */
    .floating-reset-btn {
        position: fixed;
        right: 15px;
        top: calc(25vh + 100px) !important; 
        z-index: 400;
        background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
        color: #000;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        font-weight: bold;
        box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        bottom: auto; /* Override desktop positioning */
    }

    .floating-blade-color-picker {
        top: calc(50vh - 250px) !important;
    }
    
    /* Tablet Info Button */
    .floating-info-btn {
        position: fixed;
        top: 10px;
        right: 15px;
        z-index: 400;
        background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
        color: #000;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1rem;
        font-weight: bold;
        box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        bottom: auto; /* Override desktop positioning */
    }
    
    .floating-cart-btn {
        position: fixed;
        top: 45vh;
        transform: translateY(-60px);
        left: 8px; /* Consistent with mobile spacing */
        width: 80px;
        height: 30px;
        font-size: 0.7rem;
        bottom: auto;
        right: auto;
    }
    
    .floating-save-btn {
        position: fixed;
        top: 45vh;
        transform: translateY(-120px); /* Positioned above Add to Cart */
        left: 8px; /* Consistent with mobile spacing */
        width: 80px;
        height: 30px;
        font-size: 0.7rem; /* Match cart button font size */
        bottom: auto;
        right: auto;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    /* Tablet Blade Buttons */
    .floating-blade-btn,
    .floating-double-blade-btn {
        position: fixed;
        right: 15px;
        z-index: 400;
        background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
        color: #000;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        font-weight: bold;
        box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        bottom: auto; /* Override desktop positioning */
    }
    
    .floating-double-blade-btn {
        top: calc(25vh / 4 + 55px); /* Position in top quarter */
    }
    
    .floating-blade-btn {
        top: calc(25vh + 160px) !important; 
    }
    
    /* Tablet Zoom Buttons */
    .floating-zoom-btn {
        position: fixed;
        right: 15px;
        z-index: 400;
        background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
        color: #000 !important;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
        font-weight: bold;
        box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        bottom: auto; /* Override desktop positioning */
    }
    

    #zoom-in-button {
        top: calc(25vh - 20px) !important; 
    }
    

    #zoom-out-button {
        top: calc(25vh + 40px) !important; 
    }
    
    .price-display {
        position: fixed;
        top: 48vh;
        transform: translateY(-25px); /* More evenly positioned below cart button */
        left: 8px; /* Aligned with cart button */
        padding: 6px 12px;
        font-size: 12px;
        z-index: 400 !important;
        width: auto;
        max-width: 90px;
        max-height: 30px;
        white-space: nowrap;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        bottom: auto;
        right: auto;
    }
}



.viewer-panel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}




#configurator-canvas {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}




/* Desktop override for canvas */
@media (min-width: 1025px) {
    #configurator-canvas {
        width: 100vw;
        height: 100vh;
    }
}




/* Controls Panel - Mobile-first approach */
.controls-section {
    position: relative;
    width: 100%;
    height: 50vh;
    background: #080808;
    border-top: 2px solid #FFC03A;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
}




/* Desktop override for floating controls - Only for larger screens (laptops/desktops) */
@media (min-width: 1025px) {
    .controls-section {
        position: fixed;
        top: 120px;
        left: 6px;
        width: 60vh;
        height: auto;
        max-height: calc(100vh - 160px);
        overflow-y: auto;
        overflow-x: hidden;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid #FFC03A;
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    }
}




.controls-section::-webkit-scrollbar {
    width: 6px;
}




.controls-section::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 3px;
}




.controls-section::-webkit-scrollbar-thumb {
    background: #FFC03A;
    border-radius: 3px;
}




.controls-section::-webkit-scrollbar-thumb:hover {
    background: #FFB000;
}




.controls {
    padding: 16px; /* Reduced from 24px for better space utilization */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reduced from 18px for tighter spacing */
}




.section-header {
    background: linear-gradient(90deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    padding: 8px 12px; /* Reduced from 12px 16px */
    border-radius: 8px;
    margin: 12px 0 8px 0; /* Reduced margins */
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 192, 58, 0.3);
}




.section-header h3 {
    font-size: 1rem; /* Reduced from 1.1rem */
    margin: 0;
}




.control-group {
    /* Base styles are responsive and defined within media queries */
    display: block;
}




.control-group label {
    display: block;
    margin-bottom: 8px; /* Reduced from 12px */
    font-weight: 600;
    color: #FFC03A !important;
    font-size: 0.9rem; /* Reduced from 0.95rem */
    text-transform: uppercase;
    letter-spacing: 1px;
}




.component-btn-group {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 192, 58, 0.2);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}




/* Scrollbar styling for component groups */
.component-btn-group::-webkit-scrollbar {
    height: 4px;
}




.component-btn-group::-webkit-scrollbar-track {
    background: rgba(255, 192, 58, 0.1);
    border-radius: 2px;
}




.component-btn-group::-webkit-scrollbar-thumb {
    background: rgba(255, 192, 58, 0.5);
    border-radius: 2px;
}




/* Desktop 4-column grid layout - Only for larger screens (laptops/desktops) */
@media (min-width: 1025px) {
    .component-btn-group {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        overflow: visible;
        gap: 6px;
    }
    
    .component-btn {
        min-width: auto;
        flex: none;
    }
}




.component-btn {
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 20, 0.8);
    color: #FFC03A !important;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
    flex: 0 0 100px; /* Prevent shrinking, maintain width */
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    position: relative;
}




.component-thumbnail {
    width: 80px; /* Increased from 50px */
    height: 80px; /* Increased from 50px */
    object-fit: contain;
    border-radius: 6px;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.3s ease;
}




.svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0.8) contrast(1.2);
    transition: all 0.3s ease;
}




.header-icon {
    width: 40px;
    height: 40px;
    vertical-align: middle;
    margin-right: 8px;
}




.component-btn .component-name {
    font-size: 0.8rem; /* Increased from 0.75rem */
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    opacity: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #FFC03A !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}




.component-btn.selected,
.component-btn:hover {
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    border-color: #FFB000;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 192, 58, 0.4);
    z-index: 200;
}




.component-btn.selected .component-thumbnail,
.component-btn:hover .component-thumbnail {
    
    transform: scale(1.3); /* Slightly increased scale */
}




.component-btn.selected .red-cross,
.component-btn:hover .red-cross {
    border-color: #FFB000;
    transform: scale(1.15);
}




.component-btn.selected .red-cross .svg-icon,
.component-btn:hover .red-cross .svg-icon {
    
    transform: scale(1.1);
}




.component-btn.selected .component-name,
.component-btn:hover .component-name {
    font-weight: 700;
    opacity: 1;
    color: #000; /* Change to black when selected/hovered */
    text-shadow: none; /* Remove text shadow for better readability on golden background */
}




/* Styling for "None" option buttons */
.none-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    width: 100%;
}




.none-icon {
    font-size: 2rem;
    color: #666;
    font-weight: bold;
    opacity: 0.7;
    transition: all 0.3s ease;
}




.component-btn.selected .none-icon,
.component-btn:hover .none-icon {
    color: #000;
    opacity: 1;
    transform: scale(1.1);
}




.component-btn[data-value="none"] {
    border-color: #666;
    background: rgba(40, 40, 40, 0.6);
}




.component-btn[data-value="none"].selected,
.component-btn[data-value="none"]:hover {
    border-color: #FFC03A;
    background: linear-gradient(135deg, #555 0%, #777 100%);
}




.component-btn[data-value="none"].selected {
    border-color: #FFB000;
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
}




/* Remove custom scrollbar styles for component groups */
/* .component-btn-group::-webkit-scrollbar styles removed */




.color-swatch-group {
    display: flex;
    gap: px; /* Reduced from 8px */
    flex-wrap: wrap;
    justify-content: center;
}




.color-option {
    width: 36px; /* Increased from 32px */
    height: 36px; /* Increased from 32px */
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}




.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 192, 58, 0.5);
}




.color-option.selected {
    border-color: #FFC03A;
    box-shadow: 0 0 16px rgba(255, 192, 58, 0.8);
    transform: scale(1.1);
}




.color-option.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFC03A'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}




/* Accessories Section Styles */
.section-description {
    color: white;
    font-size: 0.85rem;
    margin-top: 5px;
}




.accessories-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}




.accessory-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 16px; /* Increased padding for better content display */
    transition: all 0.3s ease;
}




.accessory-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 192, 58, 0.4);
    transform: translateY(-2px);
}




.accessory-checkbox {
    display: flex;
    align-items: center;
}




.accessory-check {
    display: none;
}




.accessory-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    width: 100%;
}




.accessory-icon {
    font-size: 2.5rem;
    width: 65px; /* Slightly larger for better visibility */
    height: 65px; /* Slightly larger for better visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 192, 58, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}




.accessory-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.3s ease;
}




.accessory-item:has(.accessory-check:checked) {
    border: 2px solid #FFC03A;
    box-shadow: 0 4px 16px rgba(255, 192, 58, 0.3);
}








.accessory-item:hover .accessory-icon {
    transform: scale(1.1);
}




.accessory-item:hover .accessory-thumbnail {
    transform: scale(1.1);
}




.accessory-item:has(.accessory-check:checked) .accessory-icon {
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    transform: scale(1.1);
}




.accessory-item:has(.accessory-check:checked) .accessory-thumbnail {
    transform: scale(1.1);
}




.accessory-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}




.accessory-name {
    font-weight: bold;
    color: white !important;
    font-size: 1rem;
}




.accessory-description {
    color: #fff !important;
    font-size: 0.85rem;
}




.accessory-price {
    color: white !important;
    font-weight: bold;
    font-size: 0.95rem;
}




.accessory-check:checked + .accessory-label {
    color: #FFC03A !important;
}




.accessory-check:checked + .accessory-label .accessory-icon {
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    transform: scale(1.1);
}




.accessory-check:checked + .accessory-label .accessory-name {
    color: #FFC03A !important;    
}




.accessory-item.selected {
    border-color: #FFC03A !important;
    background: rgba(255, 58, 170, 0.1);
    box-shadow: 0 4px 16px rgba(255, 192, 58, 0.3);
}




.blade-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}




.action-btn {
    width: 100%;
    padding: 12px 16px; /* Reduced from 14px 20px */
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem; /* Reduced from 1rem */
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block; /* Ensure span behaves like button */
    text-align: center;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}




.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 192, 58, 0.4);
}




.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Reduced from 15px */
    cursor: pointer;
    font-size: 0.95rem; /* Reduced from 1rem */
    user-select: none;
    padding: 8px 0; /* Reduced from 10px 0 */
}




.toggle-slider {
    position: relative;
    width: 60px;
    height: 30px;
    background: #dc3545; /* Red when off */
    border-radius: 30px;
    transition: background 0.3s ease;
    flex-shrink: 0; /* Prevent shrinking */
}




.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}




input[type="checkbox"]:checked + .toggle-slider {
    background: #28a745; /* Green when on */
}




input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(30px);
}




input[type="checkbox"] {
    display: none;
}




/* Add text color changes for better visual feedback */
.toggle-container:has(input:checked) {
    color: #28a745;
}




.toggle-container:has(input:not(:checked)) {
    color: #dc3545;
}




/* Ensure proper spacing in control group */
.control-group .toggle-container {
    margin: 15px 0;
    min-height: 50px;
    align-items: center;
    white-space: nowrap;
}




/* Responsive text wrapping styles integrated into main media query above */




/* Desktop Reset Button */
.floating-reset-btn {
    position: absolute;
    right: 15px;
    top: calc(50vh - 10px); /* Third in centered group */
    z-index: 400;
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}




.floating-reset-btn .svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0); /* Keep original colors */
}




.floating-reset-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 6px 20px rgba(255, 192, 58, 0.6);
}




/* Desktop and Mobile Zoom Buttons */
.floating-zoom-btn {
    position: absolute;
    right: 15px;
    z-index: 400;
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000 !important;
    border: none;
    border-radius: 50%;
    width: 45px; 
    height: 45px; 
    font-size: 1.6rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}




#zoom-in-button {
    top: calc(50vh - 120px); /* First in centered group */
}




#zoom-out-button {
    top: calc(50vh - 65px); /* Second in centered group */
}




.floating-zoom-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 192, 58, 0.6);
}




/* Desktop Double Blade Button */
.floating-double-blade-btn {
    position: absolute;
    right: 15px;
    top: 325px;
    z-index: 400;
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}




.floating-double-blade-btn .svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0); /* Keep original colors */
}




.floating-double-blade-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 192, 58, 0.6);
}




.floating-double-blade-btn.active {
    background: linear-gradient(135deg, #00FF00 0%, #00CC00 100%);
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.4);
}




.floating-double-blade-btn.active .svg-icon {
    filter: brightness(0) invert(0); /* Keep icon black when active */
}




.floating-double-blade-btn.active:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.8);
}




.floating-blade-btn {
    position: absolute;
    right: 15px;
    top: calc(50vh + 45px); /* Fourth in centered group */
    z-index: 400;
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}




.floating-blade-btn .svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0); /* Keep original colors */
}




.floating-blade-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 192, 58, 0.6);
}




.floating-blade-btn.active {
    background: linear-gradient(135deg, #00FF00 0%, #00CC00 100%);
    box-shadow: 0 4px 16px rgba(0, 255, 0, 0.4);
}




.floating-blade-btn.active .svg-icon {
    filter: brightness(0) invert(0); /* Keep icon black when active */
}




.floating-blade-btn.active:hover {
    box-shadow: 0 6px 20px rgba(0, 255, 0, 0.8);
}




/* Desktop Info Button */
.floating-info-btn {
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: 400;
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 4px 16px rgba(255, 192, 58, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}




.floating-info-btn .svg-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0); /* Keep original colors */
}




.floating-info-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 192, 58, 0.6);
}




/* Add to Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 63px; /* Positioned below price display in button column */
    right: 15px; /* Aligned with button column */
    z-index: 400;
    background: #FFC03A !important;
    color: #000 !important;
    border: none;
    border-radius: 10px;
    width: 100px;
    height: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    line-height: 1.2;
    touch-action: manipulation;
}




.floating-cart-btn:hover {
    /*transform: scale(1.1);*/
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Save & Share Button */
.floating-save-btn {
    position: fixed;
    bottom: 123px; /* Positioned above Add to Cart button */
    right: 15px; /* Aligned with button column */
    z-index: 400;
    background: rgba(0, 0, 0, 0.9) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    width: 100px;
    height: 50px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    line-height: 1.2;
    touch-action: manipulation;
}

.floating-save-btn:hover {
    background: rgba(40, 40, 40, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.floating-save-btn:active {
    transform: scale(0.98);
}

/* RGB/Pixel Selector */
.rgb-pixel-selector {
    display: flex;
    gap: 6px; /* Reduced from 10px */
    margin-top: 6px; /* Reduced from 8px */
}




.saber-type-btn {
    flex: 1;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    touch-action: manipulation;
    min-height: 70px; /* Added minimum height for consistency */
    position: relative; /* Added for version badge positioning */
}




.saber-type-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}




.saber-type-btn.active {
    background: linear-gradient(135deg, #FFC03A 0%, #080808 60%);
    border-color: #FFC03A;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}




.saber-type-btn.active:hover {
    box-shadow: 0 6px 20px #FFC03A;
}




/* Specific styling for Pixel option */
#pixel-option.saber-type-btn.active {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 25%, #FF8C00 50%, #2C2C2C 100%);
    border-color: #FFD700;
    box-shadow: 
        0 4px 20px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-width: 2px;
    transform: translateY(-1px);
    position: relative;
}




#pixel-option.saber-type-btn.active:hover {
    background: linear-gradient(135deg, #FFED4E 0%, #FFB84D 25%, #FF9500 50%, #1A1A1A 100%);
    box-shadow: 
        0 6px 25px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}




/* Premium text styling for Pixel option */
#pixel-option.saber-type-btn.active .type-label {
    color: #2C2C2C;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.5);
    letter-spacing: 2px;
}




#pixel-option.saber-type-btn.active .type-price {
    color: #2C2C2C;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
}




/* Blade Length Selector */
.blade-length-selector {
    display: flex;
    gap: 6px; /* Reduced from 12px */
    justify-content: center;
    margin-top: 6px; /* Reduced from 10px */
}




.blade-length-btn {
    flex: 1;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 10px 12px; /* Reduced from 12px 16px */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px; /* Reduced from 4px */
    min-height: 65px; /* Increased from 60px for better proportions */
}




.blade-length-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}




.blade-length-btn.active {
    
    border-color: #FFC03A;
    box-shadow: 0 4px 15px rgba(255, 192, 58, 0.3);
}




.blade-length-btn.active:hover {
    box-shadow: 0 4px 15px rgba(255, 192, 58, 0.5);
}




.length-label {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}




.length-description {
    font-size: 11px;
    opacity: 0.8;
    font-weight: 500;
}




/* Info Popup */
.info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}




.info-popup-content {
    background: #080808;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    color: white;
}

/* Info popup scrollbar styling */
.info-popup-content::-webkit-scrollbar {
    width: 8px;
}

.info-popup-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.info-popup-content::-webkit-scrollbar-thumb {
    background: #FFC03A;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.info-popup-content::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

.close-info-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}




.close-info-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Bottom close button for info popup */
.info-popup-close-bottom {
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000 !important;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(255, 192, 58, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: block;
    text-align: center;
}

.info-popup-close-bottom:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 192, 58, 0.4);
    color: #000 !important;
}

.info-popup-close-bottom:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 192, 58, 0.3);
}




.info-popup h2 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 24px;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}




.info-popup h3 {
    color: #FFC03A;
    margin: 20px 0 10px 0;
    font-size: 18px;
}




.info-popup p {
    margin: 8px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}




.info-popup strong {
    color: #fff;
    font-weight: bold;
}

/* Info section icons styling */
.info-section-icon {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px;
    max-height: 25px;
    min-width: 25px;
    min-height: 25px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
}




.type-label {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}




.type-price {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}




.version-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 9px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 250;
}




/* Active state badge colors */
.saber-type-btn.active .version-badge {
    background: rgba(255, 255, 255, 0.95);
    color: black;
}




#pixel-option.saber-type-btn.active .version-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2C2C2C;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.6);
}




/* Price Display */
.price-display {
    position: fixed;
    bottom: 1vh; 
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    z-index: 10 !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(20, 20, 20, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}




/* Responsive styles for buttons are consolidated in the main media query above */




/* Duplicate mobile styles have been consolidated into the main media query above */




/* Blade Color Picker */
.floating-blade-color-picker {
    position: absolute;
    right: 70px; /* Position to the left of the button (button is at right: 15px + 45px width = 60px, so 70px gives 10px gap) */
    top: calc(50vh + 45px); /* Match the button's vertical position */
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #FFC03A;
    border-radius: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}




.blade-color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}




.blade-color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 192, 58, 0.5);
    border-color: #FFC03A;
}




.blade-color-option.selected {
    border-color: #FFC03A;
    box-shadow: 0 0 16px rgba(255, 192, 58, 0.8);
    transform: scale(1.1);
}

/* Blade Color Picker Close Button */
.blade-color-close-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border: 2px solid #FFC03A;
    background: #080808;
    color: #FFC03A;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 999;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.blade-color-close-btn:hover {
    background: #FFC03A;
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(255, 192, 58, 0.6);
}




.blade-color-option.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFC03A'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.8));
}




/* Animation for spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Elementor Override Styles - Ensures proper colors in WordPress/Elementor environment */
.lightsaber-configurator-wrapper .title-section .title-heading {
    color: #FFC03A !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1.4rem !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    margin: 0 !important;
}


.lightsaber-configurator-wrapper h2 {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper h3 {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper h6 {
    color: #cccccc !important;
    font-size: small;
    font-weight: 400;
    text-align: center;
}




.lightsaber-configurator-wrapper p {
    color: #cccccc !important;
}




.lightsaber-configurator-wrapper label {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper .section-header h3 {
    color: #000 !important;
}




.lightsaber-configurator-wrapper .title-section p {
    color: #cccccc !important;
}




.lightsaber-configurator-wrapper .section-description {
    color: white !important;
}




/* Component button text */
.lightsaber-configurator-wrapper .component-btn {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper .component-name {
    color: #FFC03A !important;
}




/* Selected/hovered component buttons */
.lightsaber-configurator-wrapper .component-btn.selected {
    color: #000 !important;
}




.lightsaber-configurator-wrapper .component-btn:hover {
    color: #000 !important;
}




.lightsaber-configurator-wrapper .component-btn.selected .component-name {
    color: #000 !important;
}




.lightsaber-configurator-wrapper .component-btn:hover .component-name {
    color: #000 !important;
}




/* RGB/Pixel button text */
.lightsaber-configurator-wrapper .saber-type-btn {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper .blade-length-btn {
    color: #FFC03A !important;
}




/* Pixel version specific override when selected */
.lightsaber-configurator-wrapper #pixel-option.saber-type-btn.active .type-label {
    color: #2C2C2C !important;
}




.lightsaber-configurator-wrapper #pixel-option.saber-type-btn.active .type-price {
    color: #2C2C2C !important;
}




.lightsaber-configurator-wrapper #pixel-option.saber-type-btn.active .version-badge {
    color: #000 !important;
}




/* Accessory text */
.lightsaber-configurator-wrapper .accessory-name {
    color: white !important;
}




.lightsaber-configurator-wrapper .accessory-description {
    color: #fff !important;
}




.lightsaber-configurator-wrapper .accessory-price {
    color: white !important;
}




/* Price display */
.lightsaber-configurator-wrapper .price-display {
    color: #FFC03A !important;
}




/* Info content */
.lightsaber-configurator-wrapper .info-content h3 {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper .info-content p {
    color: #cccccc !important;
}




/* Action buttons */
.lightsaber-configurator-wrapper .action-btn {
    color: #000 !important;
}




/* Toggle labels */
.lightsaber-configurator-wrapper .toggle-container {
    color: #cccccc !important;
}




/* Type labels and descriptions */
.lightsaber-configurator-wrapper .type-label {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper .type-price {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper .length-label {
    color: #FFC03A !important;
}




.lightsaber-configurator-wrapper .length-description {
    color: #cccccc !important;
}




.lightsaber-configurator-wrapper .version-badge {
    color: #000 !important;
}




/* Ensure any other text elements inherit the proper colors */
.lightsaber-configurator-wrapper * {
    color: inherit;
}




.lightsaber-configurator-wrapper {
    color: #cccccc !important;
}




.lightsaber-configurator-wrapper .floating-header-toggle:hover {
    background: #FFB000 !important;
    color: #000 !important;
}




/* Color Swatch Styles */
.color-swatches {
    margin-top: 10px;
    margin-bottom: 20px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}




/* Second Hilt Section Styling */

/* Hide second hilt section by default (single blade mode) */
body:not(.double-blade-mode) #second-hilt-section {
    display: none;
}




#second-hilt-section .accordion-header {
    background: linear-gradient(135deg, #FFC03A 0%, #FFB000 100%);
    color: #000;
    font-weight: bold;
}




#second-hilt-section .accordion-header:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC03A 100%);
}




#second-hilt-section .control-group label {
    color: #FFC03A;
    font-weight: 600;
}




/* Distinguish second hilt components with subtle highlighting */
#second-hilt-section .component-btn {
    border: 2px solid rgba(255, 192, 58, 0.3);
}




#second-hilt-section .component-btn:hover,
#second-hilt-section .component-btn.selected {
    border-color: #FFC03A;
    box-shadow: 0 4px 12px rgba(255, 192, 58, 0.4);
}




.color-swatches .color-label {
    font-size: 0.8rem;
    color: #FFC03A;
    margin-bottom: 0;
    flex-shrink: 0;
    font-weight: 600 !important;
    letter-spacing: normal !important;
}




.color-options {
    display: flex;
    gap: 5px; /* Reduced from 10px for closer spacing */
    flex-wrap: wrap;
    justify-content: flex-start; /* Better alignment */
}




.color-swatch {
    width: 30px; /* Slightly larger for better usability */
    height: 30px; /* Slightly larger for better usability */
    border-radius: 50%;
    border: 2px solid #444;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}




.color-swatch:hover {
    transform: scale(1.2);
    border-color: #FFC03A;
    box-shadow: 0 0 10px rgba(255, 192, 58, 0.3);
}




.color-swatch.selected {
    border-color: #FFC03A;
    box-shadow: 0 0 15px rgba(255, 192, 58, 0.6);
    transform: scale(1.1);
}




.color-swatch.selected::after {
    content: '✓';
    color: #FFC03A;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Accessory Image Modal Styles */
.accessory-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accessory-modal-overlay {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 12px;
    border: 1px solid #333;
    overflow: hidden;
}

.accessory-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    position: relative;
}

.accessory-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 50px;
    color: #000;
    cursor: pointer;
    z-index: 5001;
    transition: color 0.3s ease;
    display: inline-block;
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    line-height: 1;
}

.accessory-modal-img {
    max-width: 80vw;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.accessory-modal-info {
    text-align: center;
    color: #fff;
}

.accessory-modal-info h3 {
    color: #FFC03A;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.accessory-modal-info p {
    margin-bottom: 8px;
    color: #ccc;
}

.accessory-modal-info #accessory-modal-price {
    color: #FFC03A;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .accessory-modal-content {
        padding: 15px;
    }
    
    .accessory-modal-img {
        max-width: 85vw;
        max-height: 50vh;
    }
    
    .accessory-modal-info h3 {
        font-size: 1.3rem;
    }
}

/* Loading Overlay Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
}

.loading-content {
    text-align: center;
    color: white;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #444;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    max-width: 500px;
    position: relative;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #333;
    border-top: 4px solid #FFC03A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    -webkit-animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.loading-subtext {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading overlay mobile responsiveness */
@media (max-width: 768px) {
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
        backdrop-filter: blur(5px);
        padding: 20px;
        box-sizing: border-box;
    }
    
    .loading-content {
        padding: 25px 20px;
        min-width: 280px;
        max-width: 90vw;
        margin: 0;
        border-radius: 12px;
        text-align: center;
        position: relative;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        margin: 0 auto 15px;
    }
    
    .loading-text {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 8px;
        word-wrap: break-word;
    }
    
    .loading-subtext {
        font-size: 0.8rem;
        line-height: 1.4;
        word-wrap: break-word;
    }
}

/* Extra small screens (iPhone SE, etc.) */
@media (max-width: 480px) {
    .loading-content {
        padding: 20px 15px;
        min-width: 260px;
        max-width: 85vw;
    }
    
    .loading-text {
        font-size: 1.1rem;
    }
    
    .loading-subtext {
        font-size: 0.75rem;
    }
    
    .loading-spinner {
        width: 45px;
        height: 45px;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .loading-content {
        max-height: 80vh;
        overflow-y: auto;
    }
}

/* Initial 3D loading overlay (with ID) - Mobile fix */
#loading-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important;
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    color: white !important;
    z-index: 2000 !important;
    flex-direction: column !important;
}

/* Initial loading overlay mobile responsiveness */
@media (max-width: 768px) {
    #loading-overlay {
        padding: 20px !important;
        box-sizing: border-box !important;
        font-size: 1.2rem !important;
        gap: 20px !important;
    }
    
    #loading-overlay .spinner {
        width: 60px !important;
        height: 60px !important;
        border: 8px solid rgba(255, 255, 255, 0.2) !important;
        border-top: 8px solid #FFC03A !important;
    }
    
    #loading-overlay p, #loading-text {
        font-size: 1.1rem !important;
        text-align: center !important;
        padding: 0 20px !important;
        line-height: 1.4 !important;
        max-width: 90vw !important;
        word-wrap: break-word !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 480px) {
    #loading-overlay {
        font-size: 1rem !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    #loading-overlay .spinner {
        width: 50px !important;
        height: 50px !important;
        border: 6px solid rgba(255, 255, 255, 0.2) !important;
        border-top: 6px solid #FFC03A !important;
    }
    
    #loading-overlay p, #loading-text {
        font-size: 1rem !important;
        padding: 0 15px !important;
        max-width: 85vw !important;
    }
}

/* iOS safe area support */
@supports (padding: max(0px)) {
    .loading-overlay {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    #loading-overlay {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
        padding-left: max(20px, env(safe-area-inset-left)) !important;
        padding-right: max(20px, env(safe-area-inset-right)) !important;
    }
}

/* Additional mobile browser compatibility */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    .loading-overlay {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .loading-content {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Component Carousel Animation */
@keyframes carousel {
    0% { 
        transform: translateX(0); 
    }
    100% { 
        transform: translateX(-690px); 
    }
}

@-webkit-keyframes carousel {
    0% { 
        -webkit-transform: translateX(0); 
        transform: translateX(0); 
    }
    100% { 
        -webkit-transform: translateX(-690px); 
        transform: translateX(-690px); 
    }
}

@-moz-keyframes carousel {
    0% { 
        -moz-transform: translateX(0); 
        transform: translateX(0); 
    }
    100% { 
        -moz-transform: translateX(-690px); 
        transform: translateX(-690px); 
    }
}

.component-carousel-container {
    width: 100%;
    height: 140px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.component-carousel-track {
    display: flex;
    gap: 15px;
    animation: carousel 12s linear infinite;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    will-change: transform;
    -webkit-animation: carousel 12s linear infinite;
    -moz-animation: carousel 12s linear infinite;
    -o-animation: carousel 12s linear infinite;
}

.component-carousel-image {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid;
    flex-shrink: 0;
}

/* Success Popup Styles */
.success-screenshot-container {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-screenshot-container img {
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    display: block;
    margin: 0 auto;
}

.success-content {
    text-align: center;
}

.success-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
    text-align: center;
}

.success-details {
    display: grid;
    gap: 8px;
}

.success-config-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.success-config-row .config-label {
    color: #999;
    font-size: 14px;
}

.success-config-row .config-value {
    font-weight: 500;
    font-size: 14px;
}

.success-total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 18px;
    border-top: 2px solid rgba(255,255,255,0.2);
    margin-top: 4px;
}

.success-total-row .total-label {
    font-weight: 700;
}

.success-total-row .total-price {
    font-weight: 700;
    color: #4CAF50;
}

/* Desktop: Increase popup height and font sizes */
@media (min-width: 1025px) {
    .info-popup-content {
        max-height: 90vh;
    }
    
    #cart-confirm-popup .info-popup-content h3 {
        font-size: 18px !important;
    }
    
    #cart-confirm-popup .info-popup-content > div > div {
        font-size: 15px !important;
    }
    
    #cart-confirm-popup .info-popup-content span[style*="font-size: 12px"] {
        font-size: 14px !important;
    }
    
    #cart-confirm-popup .info-popup-content span[style*="font-size: 13px"],
    #cart-confirm-popup .info-popup-content div[style*="font-size: 13px"],
    #cart-confirm-popup .info-popup-content p[style*="font-size: 13px"] {
        font-size: 15px !important;
    }
    
    #cart-confirm-popup button {
        font-size: 16px !important;
        padding: 12px 24px !important;
    }
    
    #cart-success-popup .info-popup-content h2 {
        font-size: 24px !important;
    }
    
    #cart-success-popup .info-popup-content #success-config-summary {
        font-size: 15px !important;
    }
    
    #cart-success-popup button {
        font-size: 16px !important;
        padding: 12px 28px !important;
    }
}
