:root {
    --syncer_bundle_scrollbar: 6px;
    --syncer_bundle_scrollbar_next: 4px;
    --syncer_bundle_card_background: var(--primary_bg, #fff);
}
[data-theme=next] .syncer-bundles {
    --syncer_bundle_card_background: var(--secondary_bg, #fff);
}

.syncer-bundles {
    --cardwidth: calc((100% - (var(--dist_a) * 2 + 40px)) / 4);
    --dist_a: 20px;
    margin-bottom: var(--syncer-bundles-spacing-desktop) !important;
    position: relative;
    width: 100%;
}
.syncer-bundles.module-color-palette {
    padding: calc(var(--dist_a) * 1.2) var(--dist_a);
}
.shopify-section > .shopify-app-block .syncer-bundles {
    --cardwidth: calc((100% - (var(--dist_a) * 2)) / 6 - var(--dist_a));
    padding-left: 0;
    padding-right: 0;
}

.syncer-bundles.module-color-palette::before {
    background: var(--primary_bg, #F4F4F4);
    border-radius: var(--b2r);
    content: "";
    display: block;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    margin: 0;
    text-align: left;
    text-indent: -3000em;
    direction: ltr;
    width: 100%;
    left: 0;
}

.syncer-bundles > header {
    margin-bottom: 0;
}

.syncer-bundles > header > * {
    margin-bottom: var(--dist_a);
}

.syncer-bundles .syncer-bundle-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.syncer-bundles .syncer-bundle-header .syncer-bundle-more {
    min-width: fit-content;
    max-width: fit-content;
}

.syncer-bundles .syncer-bundles-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dist_a);
}

.syncer-bundles .syncer-bundles-wrap,
.syncer-bundles .syncer-bundles-wrap .l4cl {
    line-height: var(--main_lh_l);
}

.syncer-bundles .syncer-bundles-wrap:not(:last-of-type) {
    border-bottom: 1px solid #BCBCBC40;
    margin-bottom: var(--dist_a);
    padding-bottom: var(--dist_a);
}

.syncer-bundles .product-card {
    flex-basis: var(--cardwidth);
}

.syncer-bundles .syncer-bundle-overview {
    margin-bottom: var(--syncer_bundle_scrollbar);
}

[data-theme=next].no-mobile .syncer-bundles div.product-card,
[data-theme=next].no-mobile .syncer-bundles .syncer-bundle-overview {
    margin-bottom: var(--syncer_bundle_scrollbar_next);
}

[data-theme=next] .syncer-bundles div.product-card,
[data-theme=next] .syncer-bundles .syncer-bundle-overview {
    margin-bottom: 0;
}

.syncer-bundles div.product-card figure {
    display: flex;
}

[data-theme=next] .syncer-bundles div.product-card figure {
    border-radius: var(--b2p, 6px);
    overflow: hidden;
}

.syncer-bundles div.product-card figure a {
    width: 100%;
}

.syncer-bundles div.product-card figure picture {
    display: block;
    padding-top: calc(var(--ratio, 1) * 100%);
    position: relative;
}

.syncer-bundles div.product-card figure picture img {
    bottom: 0;
    border-radius: 0;
    left: 0;
    max-height: 100%;
    position: absolute;
    right: 0;
    top: 0;
}

[data-theme=xtra] .syncer-bundles div.product-card figure picture img,
[data-theme=xclusive] .syncer-bundles div.product-card figure picture img {
    padding: var(--img_padding, 0);
    top: var(--img_vertical_position, 0);
}

.syncer-bundles div.product-card figure picture img {
    object-fit: contain;
    -o-object-position: center center;
    object-position: center center;
    --object_fit: contain;
}

.syncer-bundles div.product-card figure picture.cover img {
    object-fit: cover;
    --object_fit: cover;
}

.syncer-bundles .l4cl {
    --dist_a: 20px;
    gap: var(--dist_a);
    flex-grow: 1;
    flex-wrap: unset;
    margin: 0;
    max-width: calc(var(--cardwidth) * 3);
}

.syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .l4cl {
    overflow-x: scroll;
}

.shopify-section > .shopify-app-block .syncer-bundles.module-color-palette .syncer-bundles-wrap:before {
    background: var(--primary_bg, #fff);
    content: "";
    display: block;
    overflow: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    margin: 0;
    text-align: left;
    text-indent: -3000em;
    direction: ltr;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}

.shopify-section > .shopify-app-block .syncer-bundles-wrap.syncer-bundle-wide .l4cl {
    max-width: calc(var(--cardwidth) * 5 + var(--dist_a) * 4);
    overflow-x: unset;
}
.shopify-section > .shopify-app-block .syncer-bundles-wrap.syncer-bundle-wide .l4cl:has(> li:nth-child( n + 6 )) {
    overflow-x: scroll;
}

.syncer-bundles .l4cl .product-card {
    border-left: none;
    flex-basis: calc(100% / 3 - (var(--dist_a) / 3 * 2));
    flex-grow: 1;
    height: 100%;
    margin-bottom: 0;
    max-width: calc(50% - calc(var(--dist_a) / 2));
    min-width: calc(100% / 3 - (var(--dist_a) / 3 * 2));
}

.shopify-section > .shopify-app-block .syncer-bundles .l4cl .product-card {
    max-width: calc(100% / 3 - var(--dist_a));
}

.shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .l4cl .product-card {
    flex-grow: unset;
    max-width: calc(100% / 5);
    min-width: calc(100% / 5 - var(--dist_a));
}

.syncer-bundles .product-card > div {
    background: var(--syncer_bundle_card_background, #fff);
    border-radius: var(--b2r, 0);
    height: 100%;
    padding: 15px;
}

.syncer-bundles .product-card .bundle-qty {
    align-items: center;
    background: var(--accent, #333);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 1rem;
    height: 20px;
    justify-content: center;
    left: 5px;
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    z-index: 3;
}

.syncer-bundles .product-card > div figure {
    margin: 0 0 15px;
}

.syncer-bundles .product-card > div figure img {
    height: auto;
    max-width: 100%;
}

.syncer-bundles.syncer-bundles-border .product-card > div,
.syncer-bundles.syncer-bundles-border .syncer-bundle-overview {
    border: 1px solid var(--custom_bd, #BCBCBC40);
}

.syncer-bundles .product-card strong a {
    color: inherit;
    text-decoration: none;
}

.syncer-bundles .product-card strong a::after {
    display: none;
}

.syncer-bundles .product-card select {
    color: var(--custom_input_fg, #000);
    margin-top: calc(var(--dist_a) / 2);
    width: 100%;
}

.syncer-bundles .syncer-bundles-plus {
    align-self: center;
    flex-basis: 40px;
}

.syncer-bundles .syncer-bundles-plus > div {
    align-items: center;
    background: var(--accent, #333333);
    border-radius: 50%;
    display: flex;
    height: 30px;
    justify-content: center;
    margin: 0 auto;
    width: 30px;
}

.syncer-bundles .syncer-bundle-overview {
    background-color: var(--syncer_bundle_card_background);
    border-radius: var(--b2r, 0);
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    justify-content: center;
    padding: var(--dist_a);
}
.shopify-section > .shopify-app-block .syncer-bundles .syncer-bundle-overview {
    flex-basis: calc(var(--cardwidth) * 2 + (var(--dist_a) * 3));
}

.syncer-bundles .syncer-bundle-overview p {
    margin-bottom: var(--dist_a);
}

.syncer-bundles .syncer-bundle-overview .s1bx {
    font-weight: var(--price_fw, 700);
    min-height: 22px;
}

.syncer-bundles .syncer-bundles-wrap .syncer-bundle-overview .syncer-current-price {
    color: var(--primary_text, #000);
    font-weight: inherit;
}

.syncer-bundles .syncer-bundles-wrap .syncer-bundle-overview .syncer-tax {
    color: var(--primary_text, #000);
    font-weight: initial;
}

.syncer-bundles .syncer-bundles-wrap .syncer-bundle-overview .syncer-bundle-button {
    margin: 0;
    position: relative;
}

.syncer-bundles .syncer-bundle-overview button {
    margin: 0;
    width: 100%;
}

.syncer-bundles .syncer-bundle-addtocart.processing button {
    color: rgba(0, 0, 0, 0) !important;
}

.syncer-bundles .syncer-bundle-addtocart.processing button::after {
    -webkit-animation-name: syncer_bundle_spin;
    animation-name: syncer_bundle_spin;
    -webkit-animation-duration: .75s;
    animation-duration: .75s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 20px;
    border: 2px solid var(--secondary_btn_text);
    border-left-color: #0000 !important;
}

@keyframes syncer_bundle_spin {
    0% {
        -webkit-transform: none;
        transform: none;
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes syncer_bundle_spin {
    0% {
        -webkit-transform: none;
        transform: none;
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview {
    align-items: center;
    display: flex;
    flex-basis: 100%;
    flex-direction: row;
    gap: var(--dist_a);
    margin-bottom: 0;
    margin-top: calc(var(--syncer_bundle_scrollbar) * -1);
}

[data-theme=next] .shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview {
    margin-top: calc(var(--syncer_bundle_scrollbar_next) * -1);
}

.shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview p {
    flex-wrap: nowrap;
    margin-bottom: 0;
}

.shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview .syncer-bundle-products {
    max-width: 50%;
}

.shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview .syncer-bundle-addtocart {
    align-items: center;
    display: flex;
    gap: var(--dist_a);
    flex-grow: 1;
    justify-content: flex-end;
}

.shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview .syncer-bundle-button {
    flex-grow: 1;
    max-width: 400px;
    width: 100%;
}

.syncer-bundles:not(.syncer-bundles-border) .syncer-bundles-wrap:not(.module-color-palette) .product-card > div,
.syncer-bundles:not(.syncer-bundles-border) .syncer-bundles-wrap:not(.module-color-palette) .syncer-bundle-overview {
    padding: 0;
}

.syncer-bundles .syncer-bundles-wrap:not(.module-color-palette) .product-card > div,
.syncer-bundles .syncer-bundles-wrap:not(.module-color-palette) .syncer-bundle-overview {
    background-color: transparent;
}

@media only screen and (max-width: 1000px) {
    .syncer-bundles .syncer-bundle-overview {
        flex-basis: 100%;
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 760px) {
    .syncer-bundles {
        --dist_a: 16px;
        margin-bottom: var(--syncer-bundles-spacing-mobile) !important;
    }

    .syncer-bundles .syncer-bundle-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .syncer-bundles .syncer-bundle-header .margin-content {
        margin-bottom: 0 !important;
    }

    .syncer-bundles .syncer-bundles-wrap {
        --cardwidth: calc((100% - var(--dist_a)) / 2 - var(--dist_a) * 2);
    }

    .shopify-section > .shopify-app-block .syncer-bundles .syncer-bundle-overview {
        flex-basis: 100%;
    }

    .shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview .syncer-bundle-products {
        max-width: 100%;
    }

    .syncer-bundles div.product-card {
        margin-bottom: 0;
    }

    .syncer-bundles .syncer-bundles-plus {
        flex-basis: 22px;
    }

    .syncer-bundles .syncer-bundles-plus > div {
        height: 22px;
        width: 22px;
    }

    .syncer-bundles .syncer-bundles-plus > div svg {
        width: 10px;
    }

    .syncer-bundles .l4cl {
        --dist_a: 16px;
        margin-right: calc(var(--rpp, 16px) * -1);
        max-width: calc(100% - var(--cardwidth) - (var(--rpp, 16px) * 1) - 22px) !important;
    }

    .syncer-bundles .l4cl .product-card {
        min-width: calc(100% - var(--dist_a) - var(--dist_a) * 1.5) !important;
    }

    .syncer-bundles .syncer-bundles-wrap[data-items="1"] div.product-card {
        flex-basis: unset;
        width: calc(50% - 11px - var(--dist_a));
    }

    .syncer-bundles .syncer-bundles-wrap[data-items="1"] .l4cl {
        width: calc(50% - 11px - var(--dist_a)) !important;
    }

    .syncer-bundles .syncer-bundles-wrap[data-items="1"] .l4cl .product-card {
        min-width: 100% !important;
    }

    .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: 0;
    }

    .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview .syncer-bundle-products {
        max-width: 100%;
    }

    .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview .syncer-bundle-addtocart {
        align-items: flex-start !important;
        flex-direction: column;
        justify-content: flex-start;
    }

    .shopify-section > .shopify-app-block .syncer-bundles .syncer-bundles-wrap.syncer-bundle-wide .syncer-bundle-overview .syncer-bundle-addtocart {
        align-items: flex-start;
    }
}
