.tengfei-promotion-widget-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
}

.tengfei-promotion-widget,
.tengfei-promotion-widget * {
    box-sizing: border-box;
}

.zib_promotion_final {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 12px;
}

.left_final_box,
.right_final_box {
    flex: 1 1 0;
    min-width: 0;
    height: var(--tf-promo-height, 230px);
}

.left_img_item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.left_img_item .relative.zib-slider,
.left_img_item .new-swiper,
.left_img_item .swiper-wrapper,
.left_img_item .swiper-slide,
.left_img_item .swiper-slide > a,
.left_img_item .swiper-slide > span {
    display: block;
    height: 100%;
}

.left_img_item .relative.zib-slider {
    margin: 0;
}

.left_img_item .new-swiper {
    border-radius: 6px;
}

.left_img_item .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tengfei-promotion-widget .tf-promotion-slider {
    --swiper-navigation-color: #fff;
}

.countdown_float {
    position: absolute;
    z-index: 5;
    top: 8px;
    left: 50%;
    right: auto;
    width: auto;
    max-width: calc(100% - 20px);
    padding: 0;
    transform: translateX(-50%);
    font-size: 14px;
    line-height: 1.4;
    pointer-events: none;
}

.countdown_float.countdown-left {
    left: 10px;
    right: auto;
    transform: none;
}

.countdown_float.countdown-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.countdown_float.countdown-right {
    left: auto;
    right: 10px;
    transform: none;
}

.countdown-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100%;
    gap: 8px;
    padding: 5px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
}

.countdown-desc {
    white-space: nowrap;
    font-weight: 700;
}

.countdown-time {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px 7px;
    white-space: nowrap;
}

.countdown-time .day,
.countdown-time .hour,
.countdown-time .minute,
.countdown-time .second {
    font-weight: 700;
}

.countdown-time .day-unit,
.countdown-time .hour-unit,
.countdown-time .minute-unit,
.countdown-time .second-unit {
    opacity: 0.86;
}

.right_final_box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card_link {
    display: block;
    height: calc((var(--tf-promo-height, 230px) - 8px) / 2);
    color: inherit;
    text-decoration: none !important;
}

.card_link:hover,
.card_link:focus {
    color: inherit;
    opacity: 0.92;
}

.right_card_item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 16px;
    overflow: hidden;
    border-radius: 6px;
    text-align: left;
    background-image: linear-gradient(to left, transparent, var(--main-bg-color, #fff)), var(--tf-promo-card-bg, none);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.card_content {
    width: 100%;
    min-width: 0;
}

.right_card_item h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin: 0 0 6px;
    color: var(--main-color, #333);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

.right_card_item h4 span {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}

.right_card_item h4 span.tag_blue:not(.is-image) {
    padding: 2px 5px;
    border-radius: 6px;
    color: #4096ff;
    background: #e6f4ff;
    font-size: 10px;
}

.right_card_item h4 span.tag_orange:not(.is-image) {
    padding: 2px 5px;
    border-radius: 6px;
    color: #fa8c16;
    background: #fff2e6;
    font-size: 10px;
}

.right_card_item h4 span.is-image {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.right_card_item h4 span img {
    display: block;
    width: 60px;
    height: 30px;
    border: none;
    object-fit: contain;
}

.right_card_item p {
    margin: 0;
    color: var(--muted-color, #666);
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .zib_promotion_final {
        flex-direction: column;
        gap: 10px;
    }

    .left_final_box {
        height: var(--tf-promo-mobile-height, var(--tf-promo-height, 230px));
    }

    .left_img_item .new-swiper {
        --m-height: var(--tf-promo-mobile-height, var(--tf-promo-height, 230px));
    }

    .right_final_box {
        height: auto;
    }

    .card_link {
        height: 112px;
    }

    .right_card_item {
        padding: 14px;
    }

    .right_card_item h4 {
        font-size: 15px;
    }

    .right_card_item p {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .countdown_float {
        font-size: 12px;
    }

    .countdown-content {
        max-width: calc(100% - 10px);
        gap: 5px;
        padding: 4px 10px;
    }

    .countdown-time {
        padding: 2px 5px;
    }
}
