.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
@media screen and (max-width: 560px) {
    .popup  {
        background-color: rgba(0,0,0,0.8);
    }
}

.popup-content {
    position: relative;
    background-color: #f1f1f1;
    margin: 50px auto;
    padding: 10px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 560px) {
    .popup-content {
        width: calc(100% - 20px); 
        height: auto;
        position: fixed;
        bottom: 0px;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 20px;
        border-radius: 20px;
        box-sizing: border-box;
    }
}
@font-face {
    /* 0xe1357 или \e1357 или &#xe1357 */ 
    font-family: 'closepp';
    src: url('/fonts/closepp.woff') format('woff');
    src: url('/fonts/closepp.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
.closeBtn {
    position: absolute;
    color: #292929;
    background-color: transparent;
    border-radius: 30px;
    padding: 6px;
    right: 5px;
    top: 5px;
    font-size: 20px;
    font-weight: normal;
    font-family: 'closepp';

}
.closeBtn:hover,
.closeBtn:focus {
    color: black;
    background-color: #dcdcdc;
    text-decoration: none;
    cursor: pointer;
}

.cart-added-product-container {
    width: 100%;
    display: flex;
    justify-content: center;
}
.cart-added-product {
    display: flex; 
    align-items: flex-start; 
    border: 0px dashed #aaaaaa;
    border-radius: 6px;
    background-color: #fff;
    padding: 5px;
    max-width: 400px;
    box-sizing: border-box;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.09);
}

.c-a-img {
    min-width: 60px;
}
@media screen and (max-width: 560px) {
    .c-a-img  {
        min-width: 50px;
    }
}

/* .c-a-total {
} */

.c-a-total-text {
    font-weight: 600;
    font-size: 15px;
    text-align: end;
    width: 70px;
}
@media screen and (max-width: 400px) {
    .c-a-total-text {
        font-size: 14px;
    }
}

.c-a-name-qty-price {
    flex-grow: 1; 
    padding-left: 10px;
    padding-right: 10px;
}
.c-a-name {
    font-size: 14px;
}
@media screen and (max-width: 400px) {
    .c-a-name  {
        font-size: 12px;
    }
}
.c-a-qty-price {
    font-size: 13px;
    color: gray;
    padding-top: 3px;
}

.c-a-img img {
    max-width: 100%; /* Гарантирует, что изображение не выйдет за пределы блока */
    height: auto; /* Поддерживает соотношение сторон изображения */
    border-radius: 5px;
}


.success-checkmark {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    margin-top: 10px;
}
.success-text {
    display: flex;
    justify-content: center;
    margin-bottom: 13px;
    font-weight: 600;
}
.crossale-text {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}



.checkmark {
    width: 56px;
    height: 56px;
    display: inline-block;
    stroke-width: 2;
    stroke: #4CAF50;
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}



.popup-message {
    display: inline-block;
    vertical-align: top;
}

.cross-blocks {
    display: flex; /* Включает Flexbox для контейнера */
    flex-wrap: nowrap; /* Запрещает перенос блоков на новую строку */
    overflow-x: auto; /* Добавляет горизонтальную прокрутку, если блоки не помещаются */
    justify-content: center;
    gap: 10px;
}


.cross-block {
    border-radius: 10px;
    width: 150px;
    background-color: #fff;
    flex: 0 0 auto; /* Задает блокам не растягиваться и не сжиматься, сохраняя их исходный размер */
    position: relative;
    display: flex; /* Применяем Flexbox */
    flex-direction: column; /* Устанавливаем направление столбца */
    justify-content: flex-start; /* Выравниваем содержимое сверху вниз */
}
@media screen and (max-width: 400px) {
    .cross-block  {
        width: 140px;
    }
}
.cross-price, .add-cross-btn {
    margin-top: auto; /* Автоматически перемещает блок вниз */
}


.cross-added-message {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgb(124 186 124 / 95%); 
    color: white;
    text-align: center;
    font-size: 15px;
    border-radius: 10px; 
    justify-content: center; 
    align-items: center; 
}


.cross-img {
    border-radius: 10px;
    max-width: 100%; 
    height: auto; 
}
.cross-name {
    font-size: 14px;
    padding: 5px;
    text-align: left;
}
@media screen and (max-width: 400px) {
    .cross-name  {
        font-size: 12px;
    }
}
.cross-price {
    text-align: center;
    font-size: 16px;
}

/* зачеркивание старой цены */
.cross-strike {
    color: gray;
    font-size: 16px;
    position: relative;
    display: inline-block; /* Для правильного расчета ширины */
}
.cross-strike::after {
    content: '';
    position: absolute;
    left: -3px; /* Удлиняем линию слева */
    right: -3px; /* Удлиняем линию справа */
    top: 50%;
    border-bottom: 1px solid gray; /* Создаем линию, которая будет зачеркивать текст */
    width: calc(100% + 10px); /* Рассчитываем ширину, учитывая удлинение */
}


.cross-price-value {
    font-weight: 600;
    color: red;
}



.add-cross-btn {
    width: 100%;
    padding: 10px 5px;
    border-radius: 0px 0px 10px 10px;
    border: 0px;
    background-color: #69bd6d;
    color: #fff;
    margin-top: 10px;
    font-size: 14px;
}
.add-cross-btn:hover {
    background-color: #54ad58;
    cursor: pointer;
}




.proceed-to-checkout {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

@media screen and (max-width: 400px) {
    .proceed-to-checkout  {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}
.btn-checkout {
    background-color: #f16334;
    color: #fff;
    border-radius: 7px;
    padding: 10px 5px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    max-width: 304px;
    width: 100%;
    text-decoration: none; 
    outline: 0; 
}
.btn-checkout:hover {
    background-color: #e94813;
    color: #fff; 
    cursor: pointer;
}
