/* ukrycie payu lang */
[id="payments_radio[-22]_63"] ~ * {
    display: none !important;
}

:root {
    --items-per-view: 3; /* Domyślnie 4 produkty */
    --gap: 15px;
}

@media (max-width: 768px) {
    :root {
        --items-per-view: 1;
    }
}

.komp-header {
    color: #000;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 700;
}

.komp-products .rc-carusel {
    display: flex;
    overflow-x: auto; /* Pozwala na przewijanie */
    scroll-behavior: smooth;
    gap: var(--gap);
    padding: 10px 0;
    scrollbar-width: none; /* Ukrywa scrollbar na Firefox */
    flex-wrap: unset;
}

.rc-carusel::-webkit-scrollbar {
    display: none; /* Ukrywa scrollbar na Chrome/Safari */
}

.komp-products .item {
    flex: 0 0
        calc(
            (100% - (var(--items-per-view) - 1) * var(--gap)) /
                var(--items-per-view)
        );
    /* Każdy element jest punktem, do którego przykleja się widok */
    scroll-snap-align: start;
    min-height: 100px;
    border-radius: 8px;
}

.komp-products .product-info > div:nth-child(1) > div:nth-child(1) {
    height: 180px;
}

.komp-products
    .product-info
    > div:nth-child(1)
    > div:nth-child(2)
    > div:nth-child(1)
    > div:nth-child(2)
    > div:nth-child(1)
    > div:nth-child(1) {
    font-weight: 700;
    color: red;
    display: flex;
    align-items: center;
    flex-direction: row;
}

.komp-products .product-info > div:nth-child(1) > div:nth-child(2) a {
    height: 40px;
    overflow: hidden;
}

.komp-products
    .product-info
    > div:nth-child(1)
    > div:nth-child(2)
    > div
    > div:nth-child(1) {
    height: 49px;
    overflow: hidden;
}

.komp-new-price-box {
    padding-right: 4px;
}

.item .view_price {
    text-decoration: line-through;
    font-weight: 300;
    color: #000000;
    font-size: 14px;
}

.komp-products .product-info > div:nth-child(1) > div:nth-child(2) {
    font-size: 1rem;
    font-weight: 300;
    overflow: hidden;
    display: block;
    color: #000;
    text-align: left;
    margin-top: 10px;
}

.carusel-nav {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.carusel-nav button {
    cursor: pointer;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 15px;
    border-radius: 4px;
    transition: background 0.2s;
}

.carusel-nav button:hover {
    background: #f4f4f4;
}

.priceBoxComplementary {
    display: flex;
    justify-content: right;
}

.addComplementary .card_code {
    display: none;
}

.priceBoxComplementary input,
.priceBoxComplementary a {
    height: 40px;
}

.pt-komplementarnek {
    order: 4 !important;
    opacity: 1 !important;
}

.pinfo-gallery {
    background: unset !important;
}

.komp-btn {
    border: none !important;
    border-radius: 0px !important;
}

.addComplementary {
    margin-bottom: 0px;
}

.priceBoxComplementary input,
.priceBoxComplementary a {
    height: 30px !important;
}

.priceBoxComplementary a {
    line-height: 30px !important;
}

.priceBoxComplementary {
    margin-top: 10px;
}

.seeMoreOffer_container {
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    #complementary_container {
        display: flex;
        flex-direction: row;
    }
    #complementary_container .product-input {
        display: unset !important;
    }
}
