#car-360-popup {
    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;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#car-360-popup.hidden {
    visibility: hidden;
    opacity: 0;
}

#car-360-popup:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

.car-360-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.car-360-btn{
    padding: 11px 25px;
    border-radius: 10px;
    background-color: var(--car-360-button-color, #000000);
    font-family: "Outfit", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    border: none;
    color: var(--car-360-button-text-color, #ffffff);
    display: flex;
    align-items: center;
    gap: 10px;
}

.car-360-btn svg {
    fill: #fff;
    transform: scale(1.6);
}

.car-360-btn:hover{
    background-color: var(--car-360-button-hover-color, #333333);
}

.car-360-content {
    position: relative;
    background: #fff;
    padding: 0px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.car-360-slider {
    position: relative;
    max-width: 600px;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-360-slider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.car-360-prev, .car-360-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 1px 10px !important;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    z-index: 9;
}

.car-360-prev {
    left: 10px;
}

.car-360-next {
    right: 10px;
}

.car-360-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--car-360-button-color, #000000);
    color: white;
    border: none;
    padding: 3px 10px !important;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
}
.car-360-close:hover{
    background-color: var(--car-360-button-hover-color, #333333);
}

#car-360-switch {
    margin: 10px 0px;
    background: var(--car-360-button-color, #000000);
    color: white;
    border: none;
    padding: 3px 10px !important;
    cursor: pointer;
    border-radius: 30px;
    position: absolute;
    left: 10px;
}
#car-360-switch:hover{
    background-color: var(--car-360-button-hover-color, #333333);
}

.car-360-image {
    display: none;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.car-360-image.active {
    display: block;
}

#car-360-container {
    width: 600px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
    background: #000;
    border-radius: 3px;
}

#car-360-container:active {
    cursor: grabbing;
}

#car-360-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

.info-360{
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 2px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.line {
    width: 20px;
    height: 3px;
    background-color: white;
}

.hand {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url(../assets/images/hand-360.svg) no-repeat center;
    background-size: contain;
    animation: moveHand 2.5s infinite ease-in-out alternate;
    top: 4px;
}

@keyframes moveHand {
    0% {
        transform: translateX(-10px);
    }
    100% {
        transform: translateX(5px);
    }
}

@media screen and (max-width:768px){
    #car-360-container {
        width: 100%;
    }
    .car-360-btn{
        font-size: 12px;
    }
    .car-360-btn svg{
        transform: scale(1.2);
    }
}