/* ============================================================
   Add-to-Cart Popup – Voltride
   ============================================================ */

/* ---- Overlay ---- */
.voltride-atc-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: var(--blur-overlay, blur(3px));
    -webkit-backdrop-filter: var(--blur-overlay, blur(3px));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voltride-atc-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ---- Dialog ---- */
.voltride-atc-popup {
    position: relative;
    display: flex;
    width: 92vw;
    max-width: 980px;
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.voltride-atc-popup-overlay.is-open .voltride-atc-popup {
    transform: translateY(0) scale(1);
}

/* ---- Close button ---- */
button.voltride-atc-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 63, 54, 0.08);
    background-color: rgba(15, 63, 54, 0.08);
    border: none;
    border-radius: 50%;
    color: var(--Volt-Green-New-Dark, #0F3F36);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
    box-shadow: none;
    text-shadow: none;
}

button.voltride-atc-popup__close:hover {
    background: rgba(15, 63, 54, 0.15);
    background-color: rgba(15, 63, 54, 0.15);
}

button.voltride-atc-popup__close svg {
    width: 18px;
    height: 18px;
}

/* ---- Grid ---- */
.voltride-atc-popup__grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.voltride-atc-popup__left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 0px;
    background: linear-gradient(149deg, #0F3F36 55.93%, #ADFF60 110.89%);
    text-align: center;
}

.voltride-atc-popup__badge {
    margin: 0;
    color: var(--Power-Lime, #ADFF60);
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%;
}

.voltride-atc-popup__product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    height: auto;
    border-radius: 8px;
    background: #E8E8E8;
    overflow: hidden;
}

.voltride-atc-popup__product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.voltride-atc-popup__product-name {
    margin: 0;
    color: var(--Power-Lime, #ADFF60);
    font-size: 28px;
    font-weight: 800;
    line-height: 130%;
    letter-spacing: -1.4px;
}

.voltride-atc-popup__checkout-btn {
    display: inline-flex;
    height: 48px;
    padding: 12px 32px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 48px;
    background: linear-gradient(92deg, #FF6082 0%, #D5153E 89.03%) !important;
    box-shadow: -0.948px -0.948px 10px 0px rgba(18, 59, 29, 0.05),
                1.897px 1.897px 10px 0px rgba(18, 59, 29, 0.12) !important;
    border: none !important;
    color: #fff !important;
    font-family: 'Biryani', sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 120% !important;
    text-transform: uppercase !important;
    letter-spacing: 0.32px !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.voltride-atc-popup__checkout-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff !important;
}


.voltride-atc-popup__product-image {
    background: #E8E8E8;
    isolation: isolate;
    padding: 12% 2px 12% 2px;
}

.voltride-atc-popup__product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}



/* ============================================================
   RIGHT PANEL
   ============================================================ */
.voltride-atc-popup__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 28px;
    background: var(--white, #fff);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 90vh;
}

/* ---- Services ---- */
.voltride-atc-popup__services-title,
.voltride-atc-popup__fbt-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    color: var(--new-green, #0F3F36);
    line-height: 1.1;
}

.voltride-atc-popup__services-list {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 4px 0px;
    margin: 0 auto;
    margin-bottom: 20px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    background: linear-gradient(#ffffff, #fff) padding-box, /* Inner background */ linear-gradient(135deg, #1BB546, var(--volt-pink-dark)) border-box;
}

.voltride-atc-popup__service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.voltride-atc-popup__service-item + .voltride-atc-popup__service-item {
    border-top: 1px solid var(--grey-1, #ECECEF);
}

.voltride-atc-popup__service-thumb {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.voltride-atc-popup__service-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--blacky, #000);
    line-height: 1.35;
}

/* Service Add button — gradient pill matching Checkout button */
.voltride-atc-popup__service-add {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px !important;
    border: none !important;
    border-radius: 48px !important;
    background: linear-gradient(92deg, #FF6082 0%, #D5153E 89.03%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 120% !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none !important;
    letter-spacing: 0.24px !important;
    text-decoration: none !important;
}

.voltride-atc-popup__service-add:hover {
    filter: brightness(1.08);
    background: linear-gradient(92deg, #FF6082 0%, #D5153E 89.03%) !important;
    color: #fff !important;
}

.voltride-atc-popup__service-add.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.voltride-atc-popup__service-add.is-added {
    background: var(--new-green, #0F3F36) !important;
    pointer-events: none;
}

.voltride-atc-popup__service-add.is-error {
    background: #b91c1c !important;
    pointer-events: none;
    font-size: 11px !important;
}

/* ============================================================
   FBT CAROUSEL — Swiper-based, init controlled by JS
   ============================================================ */
.voltride-atc-popup__fbt-carousel {
    position: relative;
    --voltride-fbt-gap: 10px;
}

/* Remove outer margins/padding from Woodmart wrapper */
.voltride-atc-popup__fbt-carousel .wd-products-element {
    margin-bottom: 0 !important;
}

.voltride-atc-popup__fbt-carousel .wd-products-element > .container {
    padding: 0 !important;
    max-width: 100% !important;
}

.voltride-atc-popup__fbt-carousel .wd-carousel-container {
    margin: 0;
}

.voltride-atc-popup__fbt-carousel .wd-carousel {
    margin-inline: calc(var(--voltride-fbt-gap) / -2) !important;
}

.voltride-atc-popup__fbt-carousel .wd-carousel-item {
    padding-inline: calc(var(--voltride-fbt-gap) / 2) !important;
}

/* Hide the Woodmart shortcode title row */
.voltride-atc-popup__fbt-carousel .wd-products-title-wrap {
    display: none !important;
}

/* Hide dots, keep arrows */
.voltride-atc-popup__fbt-carousel .wd-nav-pagin-wrap,
.voltride-atc-popup__fbt-carousel .wd-nav-scroll {
    display: none !important;
}

/* ---- Hide unwanted card elements inside the popup ---- */

/* Wishlist, compare, quick-shop */
.voltride-atc-popup__fbt-carousel .wd-wishlist-btn,
.voltride-atc-popup__fbt-carousel .wd-compare-btn,
.voltride-atc-popup__fbt-carousel .wd-quick-shop,
.voltride-atc-popup__fbt-carousel .wd-buttons-on-hover,
.voltride-atc-popup__fbt-carousel .voltride-product-buttons .wd-wishlist-btn,
.voltride-atc-popup__fbt-carousel .voltride-product-buttons .wd-compare-btn {
    display: none !important;
}

/* Product attribute badges (Weight, Tire, Range) */
.voltride-atc-popup__fbt-carousel .voltride-product-attributes,
.voltride-atc-popup__fbt-carousel .wd-product-attributes,
.voltride-atc-popup__fbt-carousel .wd-attr-swatches,
.voltride-atc-popup__fbt-carousel .wd-swatches-grid {
    display: none !important;
}

/* Sale/new/stock labels */
.voltride-atc-popup__fbt-carousel .product-labels,
.voltride-atc-popup__fbt-carousel .wd-product-labels {
    display: none !important;
}

/* Star ratings */
.voltride-atc-popup__fbt-carousel .star-rating,
.voltride-atc-popup__fbt-carousel .wd-star-rating {
    display: none !important;
}

/* ---- Compact product cards ---- */
.voltride-atc-popup__fbt-carousel .wd-product .product-wrapper {
    --voltride-thumb-min-height: auto !important;
}

.voltride-atc-popup__fbt-carousel .wd-product .wd-product-thumb,
.voltride-atc-popup__fbt-carousel .wd-product .product-image-link {
    min-height: auto !important;
}

.voltride-atc-popup__fbt-carousel .wd-product .wd-product-thumb img {
    border-radius: 8px;
}

.voltride-atc-popup__fbt-carousel .wd-product .wd-entities-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 2px !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.voltride-atc-popup__fbt-carousel .wd-product .price {
    font-size: 14px !important;
}

@media (min-width: 1025px) {
    .voltride-atc-popup__fbt-carousel .wd-nav-arrows.wd-hover-1.wd-pos-sep .wd-prev {
        transform: translateX(10px) !important;
    }

    .voltride-atc-popup__fbt-carousel .wd-nav-arrows.wd-hover-1.wd-pos-sep .wd-next {
        transform: translateX(-10px) !important;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .voltride-atc-popup__fbt-carousel {
        --voltride-fbt-gap: 8px;
    }

    .voltride-atc-popup {
        flex-direction: column;
        max-width: 96vw;
        max-height: 94vh;
    }

    .voltride-atc-popup__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .voltride-atc-popup__left {
        padding: 20px 20px 16px;
        gap: 10px;
    }

    .voltride-atc-popup__product-image {
        width: 140px;
        height: 140px;
    }

    .voltride-atc-popup__product-name {
        font-size: 20px;
        letter-spacing: -0.6px;
    }

    .voltride-atc-popup__badge {
        font-size: 15px;
    }

    .voltride-atc-popup__checkout-btn {
        height: 42px;
        padding: 10px 24px;
        font-size: 14px !important;
    }

    .voltride-atc-popup__right {
        padding: 20px 16px;
        gap: 16px;
        max-height: 50vh;
    }

    .voltride-atc-popup__services-title,
    .voltride-atc-popup__fbt-title {
        font-size: 15px;
    }

    .voltride-atc-popup__service-name {
        font-size: 12px;
    }

    button.voltride-atc-popup__close {
        top: 8px;
        right: 8px;
    }

}

@media (max-width: 480px) {
    .voltride-atc-popup__fbt-carousel {
        --voltride-fbt-gap: 6px;
    }

    .voltride-atc-popup__product-image {
        width: 110px;
        height: 110px;
    }

    .voltride-atc-popup__service-item {
        padding: 8px 10px;
        gap: 8px;
    }

    .voltride-atc-popup__service-add {
        padding: 5px 12px !important;
        font-size: 11px !important;
    }
}
