.ai-promotion-strip {
    width: min(1180px, calc(100% - 28px));
    margin: 16px auto;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 16px;
    background:
        linear-gradient(105deg, #fff, #faf4ff) padding-box,
        linear-gradient(105deg, #7436c6 0%, #a139c3 48%, #ec2b8d 100%) border-box;
    box-shadow: 0 10px 28px rgba(151, 48, 175, .1);
}

.ai-promotion-strip-inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 82px;
    padding: 11px 14px;
}

.ai-promotion-close {
    position: absolute;
    z-index: 3;
    top: 5px;
    right: 6px;
    display: grid;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 1px solid #dce5f1;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #708198;
    cursor: pointer;
    font: 16px/1 Arial, sans-serif;
}

.ai-promotion-close:hover {
    border-color: #b9c8db;
    color: #2e4b70;
}

.ai-promotion-label {
    display: grid;
    gap: 2px;
    padding-right: 13px;
    border-right: 1px solid #e0e9f5;
    color: #7436b7;
}

.ai-promotion-label span {
    color: #9b4f9f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
}

.ai-promotion-label strong {
    font-size: 14px;
}

.ai-promotion-viewport {
    position: relative;
    min-width: 0;
    min-height: 58px;
}

.ai-promotion-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(14px);
    transition: opacity .35s ease, transform .35s ease;
}

.ai-promotion-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.ai-promotion-slide img,
.ai-promotion-placeholder {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #e8f0fb;
    color: #2f6fb6;
    object-fit: cover;
    font-size: 19px;
    font-weight: 900;
}

.ai-promotion-slide strong,
.ai-promotion-slide small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-promotion-slide strong {
    color: #183458;
    font-size: 14px;
}

.ai-promotion-slide small {
    margin-top: 3px;
    color: #72839a;
    font-size: 10px;
}

.ai-promotion-slide > a {
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(105deg, #7436c6 0%, #a139c3 48%, #ec2b8d 100%);
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.ai-promotion-dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-promotion-dots i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #c9d5e4;
    transition: width .2s ease, background .2s ease;
}

.ai-promotion-dots i.is-active {
    width: 15px;
    background: #d82b94;
}

.ai-promotion-products {
    background:
        linear-gradient(105deg, #fff 0%, #faf3ff 62%, #fff0f8 100%) padding-box,
        linear-gradient(105deg, #7436c6 0%, #a139c3 48%, #ec2b8d 100%) border-box;
    box-shadow: 0 10px 28px rgba(151, 48, 175, .1);
}

.ai-promotion-product-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.ai-promotion-product-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding-right: 12px;
    border-right: 1px solid #dcefed;
}

.ai-promotion-product-card:last-child {
    padding-right: 0;
    border-right: 0;
}

.ai-promotion-product-thumb,
.ai-promotion-product-thumb > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    overflow: hidden;
    border-radius: 10px;
    color: #a336b8;
    background: #f7eafa;
    font-size: 16px;
    font-weight: 900;
}

.ai-promotion-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-promotion-product-card > div {
    min-width: 0;
}

.ai-promotion-product-card strong,
.ai-promotion-product-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-promotion-product-card strong {
    color: #203d48;
    font-size: 12px;
}

.ai-promotion-product-card small {
    margin-top: 3px;
    color: #738b91;
    font-size: 9px;
}

.ai-promotion-all {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(105deg, #7436c6 0%, #a139c3 48%, #ec2b8d 100%);
    box-shadow: 0 6px 16px rgba(173, 45, 180, .2);
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 112px;
}

.ai-promotion-all,
.ai-promotion-all i,
.ai-promotion-slide > a {
    color: #fff;
    -webkit-text-fill-color: #fff;
    text-shadow: 0 1px 1px rgba(84, 12, 101, .18);
}

.ai-promotion-all:hover {
    color: #fff;
    -webkit-text-fill-color: #fff;
    background: linear-gradient(105deg, #662db8 0%, #9332b8 48%, #df237f 100%);
}

@media (max-width: 680px) {
    .ai-promotion-strip {
        width: calc(100% - 16px);
        margin: 10px auto;
        border-radius: 12px;
    }

    .ai-promotion-strip-inner {
        grid-template-columns: 1fr auto;
        min-height: 76px;
        padding: 9px 10px;
    }

    .ai-promotion-label {
        display: none;
    }

    .ai-promotion-slide {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .ai-promotion-slide > a {
        display: none;
    }

    .ai-promotion-slide img,
    .ai-promotion-placeholder {
        width: 52px;
        height: 52px;
    }

    .ai-promotion-products .ai-promotion-strip-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
    }

    .ai-promotion-product-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
    }

    .ai-promotion-product-card {
        padding-right: 0;
        border-right: 0;
    }

    .ai-promotion-product-card:nth-child(n + 3) {
        display: none;
    }

    .ai-promotion-all {
        width: 100%;
    }
}
