/* Карточки товаров: белый фон, серая окантовка */
.section__wrapper-new .new__elem-layer {
    background: #fff !important;
    border: 1px solid #F6F6F6;
    overflow: hidden;
}

.section__wrapper-new .new__elem-layer img,
.new__elem-layer img {
    height: 190px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

/* Снекбар добавления в корзину */
.ms-snackbar-wrap {
    position: fixed;
    right: 120px;
    bottom: 24px;
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px;
    pointer-events: none;
}

@media only screen and (max-width: 767px) {
    .ms-snackbar-wrap {
        right: 16px;
        left: 16px;
        align-items: stretch;
    }
}

.ms-snackbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 344px;
    max-width: 100%;
    min-height: 50px;
    background: rgba(38, 38, 38, 0.9);
    border-radius: 8px;
    pointer-events: auto;
    animation: msSnackbarIn 0.25s ease;
}

@keyframes msSnackbarIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.ms-snackbar__icon {
    flex: none;
    display: flex;
    align-items: flex-start;
    padding: 12px 0 12px 12px;
    width: 36px;
}

.ms-snackbar__icon svg,
.ms-snackbar__icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.ms-snackbar__text {
    flex: 1;
    padding: 12px;
    font-family: 'PT Root UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #E8E7E7;
}

.ms-snackbar__close {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 50px;
    padding: 0 12px 0 4px;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.8;
}

.ms-snackbar__close:hover {
    opacity: 1;
}

.ms-snackbar__close svg,
.ms-snackbar__close img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Виджет отзывов Авито */
.section__container-avito {
    padding-right: 5%;
}

.avito-reviews {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    max-width: 730px;
    margin: 0 auto 32px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #E8E7E7;
    border-radius: 8px;
    color: #262626;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.avito-reviews:hover {
    border-color: #00AAFF;
    box-shadow: 0 4px 16px rgba(0, 170, 255, 0.12);
}

.avito-reviews__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.avito-reviews__label {
    font-size: 14px;
    font-weight: bold;
}

.avito-reviews__rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.avito-reviews__score {
    font-size: 22px;
    font-weight: bold;
    line-height: 1;
}

.avito-reviews__stars {
    font-size: 14px;
    letter-spacing: 1px;
    color: #FFB800;
}

.avito-reviews__meta {
    font-size: 13px;
    color: #7C7C7C;
    width: 100%;
}

@media only screen and (min-width: 768px) {
    .avito-reviews__meta {
        width: auto;
        margin-left: auto;
    }
}

/* Оформление заказа — обновлённый блок доставки */
@media only screen and (min-width: 1440px) {
    #deliveries .order__rows {
        align-items: flex-start;
        gap: 17px;
    }

    #deliveries .order__row-items {
        flex: 1 1 730px;
        max-width: 730px;
    }

    #deliveries .order__row-check {
        flex: 0 0 224px;
        background: #fff;
        border: 1px solid #BDBDBD;
        border-radius: 4px;
        padding-bottom: 0;
        min-height: 220px;
    }

    #deliveries .order__check-title {
        margin-top: 24px;
    }

    #deliveries .order__check-hr {
        width: calc(100% - 40px);
    }

    #deliveries .order__check-btn {
        border-radius: 0 0 3px 3px;
    }
}

#deliveries .order__element {
    min-height: 55px;
    padding: 14px 24px;
    width: 100%;
    box-sizing: border-box;
}

#deliveries .order__check-input:checked + label {
    min-height: auto;
}

#deliveries .order__check-input + label {
    display: block;
    width: 100%;
}

#deliveries .order__row-items .input-parent + .input-parent {
    margin-top: 14px;
}

.order__contacts {
    background: #F6F6F6;
    border-radius: 4px;
}

.order__contact-data.first .order__input-name {
    width: 100%;
    border-bottom: 1px solid #E8E7E7;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

@media only screen and (min-width: 768px) {
    .order__contact-data.first .order__input-name {
        width: 46%;
        margin-bottom: 0;
        border-bottom: 1px solid #262626;
    }

    .order__contact-data.second {
        border-top: none;
    }
}

.order__check-discount.is-loading .order__goods-num {
    opacity: 0.5;
}