/* 购物车促销条样式 - 使用Splide轮播库 */
.cart-promotion-banner__container {
    background: #a66b67;
    color: white;
    margin: 0;
    overflow: hidden;
    height: 32px;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

/* Splide轮播样式 */
.cart-promotion-banner__container .splide {
    height: 100%;
}

.cart-promotion-banner__container .splide__track {
    height: 100%;
}

.cart-promotion-banner__container .splide__list {
    height: 100%;
}

.cart-promotion-banner__container .splide__slide {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: #a66b67;
    color: white;
}

.cart-promotion-banner__text {
    color: white;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    font-weight: 400;
}

/* 修复cart-drawer布局 */
.cart-drawer__body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-drawer__body .cart-drawer__header {
    flex-shrink: 0;
    padding: 20px 20px 20px 20px;
    position: relative;
    background: white;
    z-index: 10;
    transform: translateX(100%);
    transition: transform 200ms ease;
}

/* 修复header下划线 */
.cart-drawer__body .cart-drawer__header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 40px);
    height: 1px;
    background-color: rgb(var(--color-entry-line));
}

.cart-drawer__body .cart-drawer__close {
    position: relative;
    top: 0;
    right: 0;
}

.cart-drawer__body .cart-promotion-banner__container {
    flex-shrink: 0;
    margin: 0;
    background: white;
    z-index: 9;
    transform: translateX(100%);
    transition: transform 200ms ease;
}

.cart-drawer__body .cart-drawer__inner {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    margin-top: 0;
}

.cart-drawer__body .cart-drawer__inner .cart-drawer__inner-wrapper {
    height: auto;
    min-height: 0;
    padding: 0 20px;
}

/* 购物车抽屉激活时的动画 */
.cart-drawer.active .cart-drawer__body .cart-drawer__header,
.cart-drawer.active .cart-drawer__body .cart-promotion-banner__container {
    transform: translateX(0);
}

/* 空购物车时的样式调整 */
.cart-drawer__body .cart-empty .cart-drawer__header {
    padding-bottom: 20px;
}

.cart-drawer__body .cart-empty .cart-drawer__inner .cart-drawer__inner-wrapper {
    margin-top: 0;
}

/* 移动端适配 */
@media (max-width: 959px) {
    .cart-drawer__body .cart-drawer__header {
        padding: 15px 15px 15px 15px;
    }

    .cart-drawer__body .cart-drawer__inner .cart-drawer__inner-wrapper {
        padding: 0 15px;
    }

    .cart-promotion-banner__container .splide__slide {
        font-size: 12px;
        padding: 6px 10px;
        height: 32px;
    }

    .cart-promotion-banner__text {
        font-size: 12px;
    }
}