/* CL Cross-selling – zmienne motywu (do uzupełnienia realnymi wartościami) */
:root {
    --clcs-white: #ffffff;
    --clcs-neutral-50: #f7f7f8;
    --clcs-neutral-100: #eeeef0;
    --clcs-neutral-200: #dcdce1;
    --clcs-neutral-400: #b1b7c1;
    --clcs-border-color: #dcdce1;
    --clcs-highlight-color: #2fb5d2;
    --clcs-primary-accent: #2fb5d2;
    --clcs-primary-accent-hover: #2596ae;
    --clcs-input-focus-active-border-color: #2fb5d2;
    --clcs-interface-small-radius: 4px;
}

.clcrossselling__products {
    padding-top: 30px;
    padding-bottom: 30px;
}

.clcrossselling__product {
    height: auto;
    min-height: 100%;
    display: flex;
}



.clcrossselling__add-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
    z-index: 10;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.clcrossselling__add-btn::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-color: var(--clcs-white);
    border-radius: 5px;
    border: 1px solid var(--clcs-neutral-400);
    transition: background-color 0.2s ease, background-image 0.2s ease;
}

.clcrossselling__add-btn:hover {
    background-color: var(--clcs-primary-accent-hover);
}

.clcrossselling__add-btn--added {
    background-color: var(--clcs-primary-accent);
}

.clcrossselling__add-btn--added::before {
    background-color: var(--clcs-input-focus-active-border-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M2.5 8l4 4 7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}



.clcrossselling__tabs-swiper {
    overflow: hidden;
    position: relative;
    padding: 0 36px;
}

.clcrossselling .swiper-button-next {
    right: 0;
}

.clcrossselling .swiper-button-prev {
    left: 0;
}

.clcrossselling__tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
}

.clcrossselling__tab {
    width: auto;
    flex-shrink: 0;
}

.clcrossselling__tab .clcrossselling__tab-link.active {
    background-color: var(--clcs-neutral-100);
}

.clcrossselling__tab-link.nav-link {
    border-top-left-radius: var(--clcs-interface-small-radius);
    border-top-right-radius: var(--clcs-interface-small-radius);
}

.clcrossselling__pane.show.active {
    opacity: 1;
}

.clcrossselling__product .product-miniature {
    padding: 10px;
    height: auto;
    display: flex;
    flex-direction: column;
}


.clcrossselling__product .product-miniature .primary-image {
    aspect-ratio: 1 / 1;
}

.clcrossselling__product .product-miniature .product-title {
    min-height: 50px;
}

.clcrossselling-mode-popup {
    background-color: var(--clcs-neutral-50);
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid var(--clcs-border-color);
    margin-left: -20px;
    margin-right: -20px;
}

@media (max-width: 767.98px) {
    .clcrossselling-mode-popup .carousel-content .swiper-button-next,
    .clcrossselling-mode-popup .carousel-content .swiper-button-prev {
        display: none;
    }
}

.clcrossselling--popup {
    padding-left: 20px;
    padding-right: 20px;
}

.clcrossselling__variants {
    padding: 10px;
    box-sizing: border-box;
}

.clcrossselling--cart {
    border: 2px solid var(--clcs-highlight-color);
    border-radius: var(--clcs-interface-small-radius);
    margin-top: 30px;
    background-color: var(--clcs-white);
    padding: 20px;
}

/* This theme's own CSS only defines Bootstrap 3-style collapse (.collapse.in),
   not Bootstrap 4's .show — without this override, the widget's collapse body
   always renders display:none regardless of the "collapsed" admin setting. */
.clcrossselling__body.collapse:not(.show) {
    display: none;
}

.clcrossselling__body.collapse.show {
    display: block;
}

.clcrossselling--cart .clcrossselling__body {
    margin-top: 20px;
}

/* Nav arrows styled to match the theme's owl-carousel arrows (.owl-buttons):
   square button, light border, FontAwesome chevron, dark invert on hover. */
.clcrossselling .swiper-button-next,
.clcrossselling .swiper-button-prev {
    top: 50%;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    background-color: var(--clcs-white);
    border: 1px solid var(--clcs-neutral-200);
    color: #222222;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.clcrossselling .swiper-button-next svg,
.clcrossselling .swiper-button-prev svg {
    display: none;
}

.clcrossselling .swiper-button-next::after,
.clcrossselling .swiper-button-prev::after {
    font-family: 'FontAwesome';
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: inherit;
}

.clcrossselling .swiper-button-prev::after {
    content: '\f104';
}

.clcrossselling .swiper-button-next::after {
    content: '\f105';
}

.clcrossselling .swiper-button-next:hover,
.clcrossselling .swiper-button-prev:hover {
    background-color: #222222;
    border-color: #222222;
    color: var(--clcs-white);
}

.clcrossselling .swiper-button-next.swiper-button-disabled,
.clcrossselling .swiper-button-prev.swiper-button-disabled {
    opacity: 0.35;
}

.clcrossselling__skeleton-wrap {
    padding: 20px 0;
}

.clcrossselling__skeleton-wrap--popup {
    padding: 20px;
    min-height: 320px;
}

.clcrossselling__skeleton-wrap--cart {
    padding: 20px;
    min-height: 290px;
    border: 2px solid var(--clcs-neutral-200);
    border-radius: var(--clcs-interface-small-radius);
    margin-top: 30px;
}

.clcrossselling__skeleton-wrap--product-page {
    min-height: 340px;
}

.clcrossselling__skeleton-header {
    height: 24px;
    width: 200px;
    border-radius: var(--clcs-interface-small-radius);
    margin-bottom: 16px;
}

.clcrossselling__skeleton-products {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.clcrossselling__skeleton-item {
    flex: 1 1 0;
    min-width: 0;
}

.clcrossselling__skeleton-img {
    height: 160px;
    border-radius: var(--clcs-interface-small-radius);
    margin-bottom: 8px;
}

.clcrossselling__skeleton-text {
    height: 14px;
    border-radius: var(--clcs-interface-small-radius);
    margin-bottom: 6px;
    width: 85%;
}

.clcrossselling__skeleton-price {
    height: 18px;
    border-radius: var(--clcs-interface-small-radius);
    margin-bottom: 10px;
    width: 55%;
}

.clcrossselling__skeleton-btn {
    height: 38px;
    border-radius: var(--clcs-interface-small-radius);
}

.swiper-slide {
    transition-property: transform !important;
        height: auto;
    min-height: 100%;
}

.swiper-wrapper {
    transition-property: transform !important;
}

.carousel-content {
    position: relative;
}