:root {
    --promo-pink: #E83181;
    --promo-pink-mid: #EC629B;
    --promo-pink-light: #F089B0;
    --promo-pink-very-light: #FDEAF2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.el-img-picture {
    position: relative;
}

.promotion-badge {
    position: absolute;
    top: 8px;
    right: -10px;
    width: 41px;
    height: 39px;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url(/public/img/promotions_pink_label.svg) no-repeat center;
    background-size: 41px 39px;
}

.promotion-badge-label {
    position: relative;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.2px;
    padding: 0 2px;
}

.promotion-badge-label:not(:empty) {
    max-width: 39px;
    overflow: hidden;
}

.promotion-hint {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px solid var(--promo-pink);
    border-radius: 2px;
    background: var(--promo-pink-very-light);
    font-size: 12px;
    line-height: 1.25;
}

.promotion-hint-icon {
    width: 15px;
    height: 13px;
    flex: 0 0 auto;
}

.promotion-hint-text {
    color: #375A64;
}

.promotion-hint[data-promotion-type] {
    cursor: pointer;
}

.el-price[promotion-triggered] .price-with-bonuses {
    display: none;
}

.basket-form-promotion-discount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0;
    padding: 10px 16px;
    border-radius: 2px;
    background: linear-gradient(270deg, var(--promo-pink-light) 0%, var(--promo-pink-mid) 50%, var(--promo-pink) 100%);
    color: #fff;
    font-weight: 600;
}

.basket-form-promotion-discount-title,
.basket-form-promotion-discount-value {
    color: #fff;
}

.basket-form-promotion-discount-value {
    white-space: nowrap;
}

.basket-form-title-price.strikethrough:before {
    content: "";
    position: absolute;
    left: -2px;
    top: 46%;
    width: 105%;
    height: 1px;
    background: white;
}

.bundle-widget-title {
    position: relative;
    margin-top: 16px;
    padding: 15px;
    background: #EC629B;
    font-size: 16px;
    text-align: left;
    color: #fff;
}

@keyframes bundleTitleShine {
    from { transform: translateX(-160%) skewX(-20deg); }
    to   { transform: translateX(320%) skewX(-20deg); }
}

@media (max-width: 600px) {
    .bundle-widget-title {
        overflow: hidden;
        isolation: isolate;
    }

    .bundle-widget-title::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 55%;
        height: 100%;
        background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0) 100%);
        transform: translateX(-160%) skewX(-20deg);
        pointer-events: none;
    }

    .bundle-widget-title.shine::after {
        animation: bundleTitleShine 0.9s ease-out;
    }

    @media (prefers-reduced-motion: reduce) {
        .bundle-widget-title.shine::after {
            animation: none;
        }
    }
}

.bundle-items-list {
    display: flex;
    flex-direction: column;
}

.bundle-items-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 2px;
}

.bundle-items-image {
    flex: 0 0 auto;
    display: block;
}

.bundle-items-image img,
.bundle-items-image picture {
    width: 56px;
    height: 56px;
    object-fit: contain;
    display: block;
}

.bundle-items-name {
    flex: 1 1 auto;
    color: #2b4a52;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
}

.bundle-items-price {
    flex: 0 0 auto;
    border-radius: 2px;
    padding: 7px 16px;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.el-basket.bundle-items-button {
    flex: 0 0 auto;
    margin: 0;
}

@media (max-width: 600px) {
    .el .promotion-hint {
        box-sizing: border-box;
        margin-bottom: 26px;
        margin-top: 0;
    }

    .basket-pharmacy .el .promotion-hint {
        width: calc(100% + 20px);
    }

    .basket-pharmacy-elements .el {
        width: auto;
    }

    .basket-pharmacy-elements .el-img-picture {
        width: max-content;
    }

    .bundle-items-row {
        display: grid;
        grid-template-columns: 64px 1fr auto;
        grid-template-areas:
            "img name  name"
            "img price button";
        column-gap: 14px;
        row-gap: 12px;
        align-items: center;
    }

    .bundle-items-list .el {
        width: auto;
    }

    .bundle-items-image {
        grid-area: img;
        align-self: center;
    }

    .bundle-items-name {
        grid-area: name;
    }

    .bundle-items-price {
        grid-area: price;
        justify-self: start;
    }

    .el-basket.bundle-items-button {
        grid-area: button;
        justify-self: end;
    }
}
