.add-to-basket{
    display: flex;
    justify-content: center;
    gap: 12px;
    user-select: none;
    margin-bottom: 32px;
}
.popup-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 40px;
    max-width: 956px;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow-y: auto;
    box-sizing: border-box;
    max-height: calc(100vh - 40px);
    font-family: 'SF UI Text';
}
.info-add-product {
    border-radius: 8px;
}
.popup-close {
    transform: translate(30px, -30px);
}

.info-add-product.only-top-radius {
    border-radius: 8px 8px 0 0;
}
.to-basket{
    padding: 14px 24.5px;
    color: white;
    background-color: #A63244;
    border-radius: 8px;
}
.to-basket:hover,
.to-basket:focus,
.new-buy:hover,
.new-buy:focus{
    color: white;
}
.continue-buy{
    padding: 14px 24.5px;
    color: #A63244;
    background-color: white;
    border: 1px solid #A63244;
    border-radius: 8px;
}
.continue-buy:hover,
.continue-buy:focus
{
    color: #A63244;
}
.for-more{
    display: flex;
    justify-content: space-between;
}
.text-more{
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 20px;
}
.new-buy{
    padding: 8px 20px;
    background-color: #a63244;
    color: rgba(255, 255, 255, 1);
    max-width: 107px;
    height: 100%;
    max-height: 36px;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    min-height: 36px;
    display:inline-block;
    margin-top:6px;
    text-decoration:none;
}
.continue-to-add{
    display: flex;
    justify-content: center;
    margin-top: 32px;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
}
.price-block{
    font-weight: 900;
    font-size: 28px;
    line-height: 36px;
}
.related-product-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 10px;
    width: 100%;
    max-width: 195px;
}

.related-product-labels {
    display: flex;
    gap: 4px;
    min-height: 28px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.related-product-label {
    background: white;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid;
}

.related-product-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 8px;
}

.related-product-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 12px;
}

.related-product-old-price {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
    line-height: 1;
}

.related-product-old-price-strike {
    text-decoration: line-through;
    position: relative;
}

.related-product-old-price-strike span {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #DF4908;
}

.related-product-discount {
    background-color: #DF4908;
    color: white;
    font-weight: bold;
    font-size: 12px;
    padding: 2px;
    border-radius: 4px;
}

.related-product-current-price {
    color: rgba(10, 31, 68, 1);
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
}

.related-product-no-discount {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
}

.related-product-img-container {
    align-self: center;
    margin-bottom: 12px;
}

.related-product-img-container img {
    max-width: 140px;
    max-height: 127px;
}
#toggle-cart-list {
    text-decoration: none;
    outline: none;
}

#toggle-cart-list:focus,
#toggle-cart-list:active {
    outline: none;
    box-shadow: none;
}
.popup-cart-list {
    position: relative;
    max-height: 125px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.popup-cart-list.shadow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,1));
    transition: opacity 0.3s ease;
}

.popup-cart-list.expanded.shadow::after {
    opacity: 0;
    display: none;
}
.single-item-margin > .popup-cart-item {
    margin-bottom: 14px;
}
.text-baket{
    width:100%;
    display: flex;
    justify-content: center;
}
.form-title{
    text-align:center;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 22px;
}
.info-add-product{
    display:flex;
    gap: 12px;
    align-items:center;
    background-color: #F2F4F5;
    padding: 20px;
    justify-content: space-between;
    max-height:159px;
    height: 100%;
}
.text-add-product{
    display: flex;
    gap: 24px;
}
.form-image{
    mix-blend-mode: multiply;
    width:80px;
    max-height:80px;
    object-fit: contain;
    background:#F2F4F5;
    border-radius: 4px;
}
.form-product-title{
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}
.form-art{
    max-height: 24px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}
.form-supplier{
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #8693A1;
    margin-bottom: 4px;
}
.form-baseprice{
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}
.form-baseprice-no-vat{
    font-size:13px;
    color:#777;
}
.price-of-add-product{
    display: flex;
    max-width: 308px;
    width: 100%;
    justify-content: space-between;
}
.input-add-product{
    display:flex;
    align-items:center;
    gap: 10px;
}
.input-count__label{
    max-width: 137px;
    width: 100%;
}
.price-old{
    font-size: 14px;
    color: #999;
    max-height: 20px;
}
.change-of-add-product{
    color: #000;
    font-weight: 800;
    font-size: 28px;
    display: grid;
    gap:6px;
}
.form-price-without-nds{
    font-size: 13px;
    color: #666;
    max-height: 22px;
}
.sale-number{
    background-color: #f2f4f5;
    display: flex;
    justify-content: center;
}
.discount-border-line{
    width: 95%;
    border-top: 2px solid #D4DADE;
    display: none;
}
.form-discount-wrapper{
    display:none;
    justify-content: center;
    padding: 20px;
    background-color: #F2F4F5;
    border-radius: 0 0 8px 8px;
}
.form-discount-badge{
    font-size: 14px;
}
.button-of-add-products{
    margin-top: 25px;
    display:flex;
    justify-content: center;
    gap: 12px
}
.to-basket{
    background:#A63244;
    color:#fff;
    border:none;
    padding:14px 24.5px;
    cursor:pointer;
    border-radius:8px;
    font-weight:600;
}
.continue-buy{
    background:none;
    color:#A63244;
    cursor:pointer;
    font-weight:600;
    border: 1px solid #A63244;
}
.add-more-popup{
    display: flex;
    justify-content: center;
    margin-top: 32px;font-family: SF UI Display;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
}
.add-more-products{
    margin-top: 25px;
}
.for-more{
    display:flex;
    gap: 10px;
}
.text-inf-add{
    display: grid;
    align-items: center;
}
.without-nds{
    padding: 2px 4px;
    background-color: #97A4AF;
    color: white;
    border-radius: 4px;
}
.price-val{
    padding: 2px 4px;
    background-color: #97A4AF;
    color: #FFFFFF;
    border-radius: 4px;
}
.cart-for-sale{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #999;
}
.text-for-cart{
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1.5px solid #DF4908;
}
.discount-for-cart{
    color: #DF4908;
    font-weight: bold;
    font-size: 12px;
}
.how-many{
    background-color: #DF4908;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 6px;
    font-size: 14px;
    display: inline-block;
}
.box-of-new-related{
    display: flex;
    flex-direction: column;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip::before {
    content: "";
    position: absolute;
    top: -10px; bottom: -10px;
    left: -10px; right: -10px;
}
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.tooltip-text {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(0, -50%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    background: white;
    color: black;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    box-shadow:
            0 -6px 12px rgba(0, 0, 0, 0.15),
            0 4px 8px rgba(0, 0, 0, 0.15);
    white-space: normal;
    z-index: 10;
    width: 182px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 99%;
    transform: translateY(-50%);
    border-width: 10px 13px 10px 0px;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

.tooltip-text.visible {
    opacity: 1;
    pointer-events: auto;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(10%, -50%);
    width: 182px;
}
.button-of-add-products{
    margin-top: 25px;
    display:flex;
    justify-content: center;
    gap: 12px;
}
.to-basket{
    background:#A63244;
    color:#fff;
    border:none;
    padding:14px 24.5px;
    cursor:pointer;
    border-radius:8px;
    font-weight:600;
}
.continue-buy{
    background:none;
    color:#A63244;
    cursor:pointer;
    font-weight:600;
    border: 1px solid #A63244;
}
.under-line-product{
    display: none;
}

@media (max-width: 679px) {
    .info-add-product{
        display: grid;
        background-color: white;
    }
    .price-of-add-product{
        flex-direction: row-reverse;
    }
    .change-of-add-product{
        font-size: 20px;
        gap: 2px;
    }
    .cart-for-sale{
        font-size: 12px;
    }
    .input-add-product{
        justify-content: flex-end;
        flex-direction: column;
    }
    .sale-number{
        background-color: white;
        margin-top: 20px;
    }
    .discount-border-line{
        margin-top: 66px;
        background-color: white;
    }
    .form-discount-wrapper{
        background-color: white;
    }
    .button-of-add-products{
        margin-top: 20px;
        display: grid;
        gap: 8px;
    }
    .button-of-add-products{
        justify-content: normal;
    }
    .for-more {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
    }

    .for-more > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
        max-width: 148px;
    }
    .popup-form {
        left: 0;
        right: 0;
        margin: auto;
        bottom: 0;
        top: auto;
        transform: none;
        border-radius: 24px 24px 0 0;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-transform: none;
        will-change: auto;
        backface-visibility: hidden;
        padding: 44px 16px 36px 16px;
        transform: none !important;
        backface-visibility: visible;
        will-change: auto;
        translate: none;
    }
    .popup-form {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .popup-form::-webkit-scrollbar {
        display: none;
    }
    .continue-to-add{
        margin-top: 24px;
    }
    .form-discount-wrapper{
        padding-bottom: 10px;
    }
    .button-of-add-products{
        margin-top: 32px;
    }
    .form-title{
        margin-bottom: 6px;
    }
    .add-more-products{
        margin-top: 0px;
    }
    .for-more::-webkit-scrollbar {
        display: none;
    }
    .for-more {
        -ms-overflow-style: none;
        scrollbar-width: none;
        margin-top: 24px;
    }
    .popup-close{
        display: none;
    }
    .related-product-img-container img{
        max-width: 132px;
        width: 100%;
        max-height: 151px;
        height: 100%;
    }
    .under-line-product{
        display: block;
        position: absolute;
        top: 10px;
        left: 47%;
    }
    .tooltip-text {
        left: calc(-525%);
        bottom: 180%;
        max-width: 182px;
        top: auto;
    }
    .tooltip-text::after {
        content: "";
        position: absolute;
        top: 99%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 10px 10px 0 10px;
        border-style: solid;
        border-color: white transparent transparent transparent;
    }
    .tooltip-text.visible {
        opacity: 1;
        pointer-events: auto;
        position: absolute;
        right: 0;
        top: auto;
        transform: none;
        width: 182px;
    }
}

@media (max-width: 460px) {
    .button-of-add-products {
        margin-top: 52px;
    }
}
@media (max-width: 368px) {
    .sale-number{
        margin-top: 40px;
    }
}
