
/* BIKE COLOR */
.color-changer-container {
    height: 100%;
    width: 100%;
}

#chassis-svg {
    position: relative !important;
    z-index: 2 !important;
    background-size: 80% !important;
    background-repeat: no-repeat !important;
    background-position: 50% !important;
    mix-blend-mode: multiply !important;
}


#seat-svg {
    position: absolute !important;
    z-index: 3 !important;
    background-size: 80% !important;
    background-repeat: no-repeat !important;
    background-position: 50% !important;
    mix-blend-mode: multiply !important;
    width: 100%;
    left: 0;
}

.background-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 1 !important;
}

.colors {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    padding: 1em;
}

.color {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(170, 170, 170, 0.3);
}

.color:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.color-name {
    position: absolute;
    left: calc(100% + 5px);
    white-space: nowrap;
    font-size: 14px;
    color: #000;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
    padding: 6px 15px;
}


.seat-colors-container .color-name {
    left: auto !important;
    right: calc(100% + 5px);
    font-size: 10px;
}

.color:hover .color-name {
    opacity: 1;
    transform: translateX(0);
}

/*.color.selected::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}*/
.color.selected {
    border:3px solid #000000;
}
.picker {
    position: relative;
}

.picker input[type="color"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.custom-color {
    pointer-events: none;
}

.custom-color::before {
    content: "+";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}
.custom-color::after {
    content: "+" !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}
.custom-color:hover::before {
    color: #333;
}

.picker:hover .custom-color {
    transform: scale(1.1) !important;
    box-shadow: 0px 6px 15px rgba(0,0,0,0.4) !important;
}

.chassis-colors, .seat-colors {
    border-radius: 50em;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 10px !important;
}

.chassis-colors-container {
    display: flex;
    flex-direction: column;
    flex-basis: 10%;
    align-items: center;
}

.seat-colors-container {
    display: flex;
    flex-direction: column;
    flex-basis: 10%;
    align-items: center;
    justify-content: flex-end;
}

.bike-mask-container {
    flex-basis: 80%;
    position: relative;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .colors, .colors-left {
        padding: 10px !important;
    }
    
    .color {
               height: 25px;
        width: 25px !important;
        border-radius: 15px !important;
    }
}

@media screen and (max-width: 768px) {
    .color-changer-container > div {
        flex-direction: column;
        align-items: center;
    }

    .bike-mask-container {
        order: 1;
        width: 100%;
        margin-bottom: 20px;
    }

    .chassis-colors-container {
        order: 2;
        flex-basis: auto;
        width: 100%;
        margin-bottom: 20px;
    }

    .seat-colors-container {
        order: 3;
        flex-basis: auto;
        width: 100%;
    }

    .colors {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .color-wrapper {
        margin: 1px;
    }

    .color-name {
        display: none;
    }

    .chassis-colors-title p, .seat-colors-title p {
        margin: 0.5em !important;
    }
}