/* Shared product actions, including components refreshed through AJAX. */
.new-product__appendix-bookmark > svg,
.new-card-promos__bookmark > svg,
.add-to-bookmark > svg,
.add-to-bookmark > path,
.product-detail .new-card-promos__bookmark .product-detail__favorite-icon,
.header-middle-toolbar-item__wrapper.favorite .header-middle-toolbar-item-icon__wrapper > svg {
    display: none;
}

.new-product__appendix-bookmark::before,
.new-card-promos__bookmark::before,
.add-to-bookmark::before,
.header-middle-toolbar-item__wrapper.favorite .header-middle-toolbar-item-icon__wrapper::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-color: #9a9a9a;
    mask: url('../images/icons/favorite-heart.svg') center / contain no-repeat;
    -webkit-mask: url('../images/icons/favorite-heart.svg') center / contain no-repeat;
}

svg.add-to-bookmark {
    width: 24px;
    height: 24px;
    background-color: #9a9a9a;
    mask: url('../images/icons/favorite-heart.svg') center / contain no-repeat;
    -webkit-mask: url('../images/icons/favorite-heart.svg') center / contain no-repeat;
}
svg.add-to-bookmark.active { background-color: #4bb1bc; }

.header-middle-toolbar-item__wrapper.favorite .header-middle-toolbar-item-icon__wrapper::before {
    width: 30px;
    height: 30px;
    background-color: #000;
}

.new-product__appendix-bookmark.active::before,
.new-card-promos__bookmark.active::before,
.add-to-bookmark.active::before {
    background-color: #4bb1bc;
}

.site-notification {
    position: fixed;
    z-index: 10010;
    top: 24px;
    right: 24px;
    width: min(360px, calc(100% - 32px));
    padding: 20px 36px 20px 20px;
    box-sizing: border-box;
    border-radius: 12px;
    background: #29292b;
    color: #fff;
    box-shadow: 0 8px 24px #0003;
    font-size: 14px;
    line-height: 20px;
}
.site-notification[hidden] { display: none; }
.site-notification p { margin: 0; font-weight: 600; }
.site-notification__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: 24px/28px sans-serif;
    cursor: pointer;
}
.site-notification__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.site-notification__links a { color: inherit; text-decoration: underline; }

.catalog-list-view .recomendation .top-price-slider__wrapper .slick-list {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

button[data-credit-popup] {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
.catalog-credit-popover {
    position: fixed;
    z-index: 1001;
    width: 168px;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
    padding: 12px;
    border-radius: 10px;
    background: #29292d;
    color: #fff;
    box-shadow: 0 4px 12px #0000002e;
    font-size: 11px;
    line-height: 1.2;
}
.catalog-credit-popover[hidden] { display: none; }
.catalog-credit-popover > strong { display: block; margin-bottom: 6px; }
.catalog-credit-popover__text { color: #d0d0d2; }
.catalog-credit-popover__text p { margin: 0; font: inherit; color: inherit; }
.catalog-credit-popover > a {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #fff;
    color: #29292d;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
    text-decoration: none;
}

@media (max-width: 767px) {
    .site-notification { top: auto; right: 16px; bottom: 16px; }
    body:has(.tab-bar) .site-notification {
        bottom: calc(var(--product-tabbar-height, 66px) + 12px);
    }
    .viewport-clipping body:has(.tab-bar) .site-notification {
        bottom: 72px;
    }
    body:has(.product-detail__sticky-cart:not([hidden])) .site-notification {
        bottom: calc(var(--product-tabbar-height, 66px) + var(--product-sticky-height, 62px) + 12px);
    }

    .top-price, .recomendation, .catalog-list-view, .banners,
    .top-price-main__wrapper, .top-price-slider__wrapper, .top-price-slider__container {
        min-width: 0;
        max-width: 100%;
    }
    .top-price, .recomendation, .catalog-list-view, .banners { width: 100%; }

    .top-price > .container,
    .recomendation > .container,
    .catalog-list-view > .container,
    .banners .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .top-price .top-price-slider__wrapper,
    .recomendation .top-price-slider__wrapper,
    .catalog-list-view .recomendation .top-price-main__wrapper .top-price-slider__wrapper {
        width: 100%;
        max-width: 100%;
    }

    .top-price .top-price-slider__wrapper .slick-list,
    .recomendation .top-price-slider__wrapper .slick-list,
    .catalog-list-view .recomendation .top-price-main__wrapper .top-price-slider__wrapper .slick-list {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .top-price-slider__wrapper .new-product {
        width: calc(100% - 20px);
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        row-gap: 16px;
        grid-template-rows: 130px 51px 40px minmax(80px, auto) auto;
    }
    /* Slider rows provide spacing; legacy card offsets overlap their content. */
    .top-price-slider__wrapper .new-product > .new-product__in-stock,
    .top-price-slider__wrapper .new-product > .new-product__price-wrapper {
        margin-top: 0;
    }
    .top-price-slider__wrapper .slick-list { overflow: hidden; }
    .top-price-slider__wrapper .slick-slide,
    .top-price-slider__wrapper .slick-slide:not(.slick-active) {
        visibility: visible;
        opacity: 1;
        transition: none;
    }

    .catalog-list-view .recomendation .section-title__wrapper {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0 0 20px;
    }
    .catalog-list-view .recomendation .section-title {
        width: 100%;
        font-size: 24px;
        line-height: 29px;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .catalog-list-view .top-price-slider__wrapper .new-product {
        grid-template-rows: 130px 51px 24px 72px auto;
        row-gap: 12px;
    }
    .catalog-list-view .new-product__price-wrapper {
        display: grid;
        grid-template-rows: 40px 24px;
        row-gap: 8px;
        align-items: start;
    }
    .catalog-list-view .new-product__price-bonus { justify-self: center; }
    .catalog-list-view .recomendation .top-price-main__wrapper .top-price-slider__wrapper .slick-list {
        overflow: hidden;
    }
    .catalog-list-view .top-price-slider__wrapper .slick-slide:not(.slick-active) {
        visibility: hidden;
        opacity: 0;
    }

    .banners__wrapper:not(.slick-initialized) { display: grid; gap: 16px; }
    .banners .banners__wrapper .banner__wrapper {
        width: 100%;
        min-height: 0;
        height: auto;
        aspect-ratio: 1;
        background-size: cover !important;
    }
}

@media (max-width: 767px) {
    .new-catalog__main-items .new-product,
    .favorite-page .new-product {
        grid-template-rows: 130px minmax(51px, auto) minmax(24px, auto) minmax(72px, auto) auto;
        row-gap: 12px;
    }
    .new-catalog__main-items .new-product > .new-product__in-stock,
    .favorite-page .new-product > .new-product__in-stock,
    .new-catalog__main-items .new-product > .new-product__price-wrapper,
    .favorite-page .new-product > .new-product__price-wrapper { margin-top: 0; }
    .new-catalog__main-items .new-product__price-wrapper,
    .favorite-page .new-product__price-wrapper { display: grid; grid-template-rows: minmax(40px, auto) 24px; row-gap: 8px; align-items: start; }
    .new-catalog__main-items .new-product__price-bonus,
    .favorite-page .new-product__price-bonus { justify-self: center; }
}
