.modal-active {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: auto;
}

.modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
}

.modal-layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgb(0 0 0 / 80%);
    z-index: 9998;
}

.modal {
    display: flex;
    position: relative;
    width: 90%;
    max-width: 90%;
    max-height: 90%;
    z-index: 9999;
}

.modal-close-btn {
    position: absolute;
    background-color: transparent;
    line-height: 0;
    padding: 16px;
    border: none;
    border-radius: 99px;
    color: #ffffff;
    right: 8px;
    top: 8px;
    cursor: pointer;
    z-index: 99999;
}

.modal-close-btn svg {
    width: 16px;
    height: 16px;
}

.modal-content {
    width: 100%;
    background-color: #FFF;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

button::-moz-focus-inner {
    padding: 0;
    border: 0 none;
}

.toyota-promo-modal {
    max-width: 1000px;
}

.toyota-promo-modal-content {
    padding: 0px;
}

/* Popup Carousel */
.popup-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.popup-carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.popup-carousel-slide {
    min-width: 100%;
}

.popup-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,1);
    color: #0072aa;
    border: 1px solid #0072aa;
    padding: 12px 16px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    border-radius: 999px;
    line-height: 1;
    transition: background-color 0.2s;
}

.popup-carousel-btn:hover {
    background-color: #0072aa;
    color: #FFF;
}

.popup-carousel-prev { left: 16px; }
.popup-carousel-next { right: 16px; }

.popup-carousel-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.popup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.2s;
}

.popup-dot.active {
    background-color: #fff;
}

.img-popup01 {
    width: 100%;
}


@media (max-width: 575px) {
    .modal-close-btn {
        padding: 8px;
    }

    .modal-close-btn svg {
        width: 12px;
        height: 12px;
    }

    .popup-carousel-btn {
        padding: 6px 9px;
        font-size: 12px;
    }

    .popup-carousel-prev { left: 8px; }
    .popup-carousel-next { right: 8px; }
}