@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;700&display=swap');

/* ---- FORCE: No backgrounds anywhere in the carousel ---- */
#cs-crosssell-wrapper,
#cs-crosssell-wrapper .cs-carousel-overflow,
#cs-crosssell-wrapper .cs-carousel-track,
#cs-crosssell-wrapper .cs-carousel-item,
#cs-crosssell-wrapper .cs-carousel-item label,
#cs-crosssell-wrapper .cs-carousel-item div,
#cs-crosssell-wrapper .cs-product-image-wrap,
#cs-crosssell-wrapper .cs-product-image-wrap img,
#cs-crosssell-wrapper .cs-product-name,
#cs-crosssell-wrapper .cs-product-price,
#cs-crosssell-wrapper img,
#cs-crosssell-wrapper .woocommerce-product-gallery,
#cs-crosssell-wrapper .wp-post-image,
#cs-crosssell-wrapper .attachment-woocommerce_thumbnail {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.cs-crosssell-wrapper {
    direction: rtl;
    font-family: 'Heebo', sans-serif;
    max-width: 100%;
    width: 100% !important;
    margin: 30px 0;
    position: relative;
    padding: 0 44px;
    background: transparent !important;
    display: block !important;
    clear: both !important;
    float: none !important;
    flex-basis: 100% !important;
}

.cs-crosssell-title {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 12px 0;
    text-align: right;
}

.cs-crosssell-wrapper * {
    box-sizing: border-box;
}

/* ---- Carousel ---- */
.cs-carousel-overflow {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.cs-carousel-overflow::-webkit-scrollbar {
    display: none;
}

.cs-carousel-track {
    display: flex;
    gap: 4px;
    direction: rtl;
    flex-wrap: nowrap;
}

.cs-carousel-item {
    scroll-snap-align: start;
}

/* ---- Arrows ---- */
.cs-carousel-arrow,
#cs-crosssell-wrapper .cs-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    z-index: 3;
    width: 24px;
    height: 24px;
    border-radius: 2.5px;
    border: none !important;
    background: #B380A4 !important;
    background-color: #B380A4 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s;
}

.cs-carousel-arrow:hover,
.cs-carousel-arrow:focus,
.cs-carousel-arrow:active,
#cs-crosssell-wrapper .cs-carousel-arrow:hover,
#cs-crosssell-wrapper .cs-carousel-arrow:focus,
#cs-crosssell-wrapper .cs-carousel-arrow:active {
    background: #B380A4 !important;
    background-color: #B380A4 !important;
    opacity: 0.85;
    outline: none !important;
}

.cs-carousel-arrow svg {
    width: 10px;
    height: 14px;
}

.cs-arrow-right {
    right: 6px;
}

.cs-arrow-left {
    left: 6px;
}

/* ---- Product Item ---- */
#cs-crosssell-wrapper .cs-carousel-item,
#cs-crosssell-wrapper .cs-carousel-item label,
#cs-crosssell-wrapper .cs-carousel-item label > *,
#cs-crosssell-wrapper .cs-carousel-item *:not(.cs-checkmark) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.cs-carousel-item {
    flex: 0 0 calc(25% - 3px);
    min-width: 0;
    text-align: center;
    cursor: pointer;
}

/* ---- Image Wrapper ---- */
#cs-crosssell-wrapper .cs-product-image-wrap,
#cs-crosssell-wrapper .cs-product-image-wrap img {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border: none !important;
}

.cs-product-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cs-product-image-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ---- Checkbox (div-based, toggled by JS) ---- */
#cs-crosssell-wrapper .cs-checkmark {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 2.5px;
    border: 1px solid #C76B97 !important;
    background: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    z-index: 2;
    cursor: pointer;
}

.cs-checkmark svg {
    display: none;
}

#cs-crosssell-wrapper .cs-carousel-item.cs-checked .cs-checkmark {
    background: #C76B97 !important;
    border-color: #C76B97 !important;
}

#cs-crosssell-wrapper .cs-carousel-item.cs-checked .cs-checkmark svg {
    display: block;
}

/* ---- Product Info ---- */
.cs-product-name {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cs-product-price {
    margin-top: 2px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.cs-product-price del {
    color: #999;
    font-size: 14px;
}

.cs-product-price ins {
    text-decoration: none;
}

/* ---- Responsive: 2 columns on mobile ---- */
@media (max-width: 480px) {
    .cs-carousel-item {
        flex: 0 0 45%;
        min-width: 45%;
    }

    .cs-crosssell-wrapper {
        padding: 0 36px;
    }
}

/* ---- Button Loading State ---- */
.cs-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ---- Success Notice ---- */
.cs-success-notice {
    display: none;
    margin-top: 15px;
    padding: 12px 18px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    direction: rtl;
}

.cs-success-notice a {
    color: #1b5e20;
    text-decoration: underline;
    margin-right: 10px;
}