/**
 * 返利信息组件样式
 * 使用BEM命名规范避免样式冲突
 */

/* 主容器 */
f-rebate-page {
    display: block;
    width: 100%;
}

.f-rebate-page__container {
}

.f-rebate-page__container--full {
    max-width: none;
    padding: 0;
}

/* 横幅样式 */
.f-rebate-page__banner {
    width: 100%;
}

.f-rebate-page__banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
}

f-rebate-page .sort-box {
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

f-rebate-page .sort-box .f-select-custom--trigger {
    border: 1px solid rgb(var(--color-border));
    padding: 5px 8px;
    min-width: 200px;
    min-height: 36px;
}

f-rebate-page .sort-box .f-toolbar--sortby {
    display: flex;
    align-items: center;
}

f-rebate-page .sort-box .f-toolbar--sortby > span {
    margin-right: 15px;

}

/* 底部盒子 */
.f-rebate-page__bottom-box {
    margin: 0 auto;
}


/* 规则视图 */
.f-rebate-page__rules-view {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: start;
    padding-top: 12px;
    padding-bottom: 12px;
}
.f-rebate-page__rules-view.padding{
    padding-left: 20px;
    padding-right: 20px;
}
.f-rebate-page__rules-view--between {
    padding-top: 20px;
    padding-bottom: 20px;
    justify-content: space-between;
}

@media (max-width: 769px) {
    .f-rebate-page__rules-view {
        flex-direction: column;
        height: auto;
        padding: 7px 0 10px;
    }

    .f-rebate-page__rules-view--between {
        flex-direction: column;
        height: auto;
        padding: 7px 0 10px;
    }
}

/* 时间盒子 */
.f-rebate-page__time-box {
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

@media (max-width: 769px) {
    .f-rebate-page__time-box {
        flex-direction: column;
        order: 2;
        margin-top: 5px;
        margin-bottom: 4px;
    }
}

.f-rebate-page__timeout-text {
    margin-right: 10px;
}

.f-rebate-page__timeout-text--uppercase {
    text-transform: uppercase;
}

@media (max-width: 769px) {
    .f-rebate-page__timeout-text {
        font-size: 14px;
        margin-right: 0;
        text-align: center;
        margin-bottom: 5px;
    }
}

.f-rebate-page__timeout-day {
    min-width: 42px !important;
}

@media (max-width: 769px) {
    .f-rebate-page__timeout-day {
        min-width: 32px !important;
        font-size: 13px;
    }
}

/* 时间数字样式 */
.f-rebate-page__time-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    min-width: 35px;
    height: 26px;
    text-align: center;
    border-radius: 4px;
    font-style: normal;
    line-height: 1;
    font-size: 16px;
}

.f-rebate-page__time-number--millisecond {
    font-size: 19px;
    width: 50px;
}

@media (max-width: 769px) {
    .f-rebate-page__time-number {
        font-size: 14px;
        font-weight: 400;
    }

    .f-rebate-page__time-number--millisecond {
        font-size: 18px;
    }
}

.f-rebate-page__time-unit {
    display: inline-block;
    min-width: 35px;
    text-align: center;
}

.f-rebate-page__time-separator {
    flex-shrink: 0;
    width: 12px;
    display: inline-block;
    text-align: center;
}

@media (max-width: 769px) {
    .f-rebate-page__time-separator {
        font-size: 12px;
    }
}

.f-rebate-page__time {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* 规则列表 */
.f-rebate-page__rules-list {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 20px;
    width: 30%;
}

@media (max-width: 769px) {
    .f-rebate-page__rules-list {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .show-time-style .f-rebate-page__rules-list-box{
        background-color: rgba(255,255,255,0) !important;
        color: var(--rebate_coupon-font-tip-left);

    }
    .show-time-style .f-rebate-page__scrolling-text{
        color: inherit!important;

    }
}

.f-rebate-page__rules-list-box {
    position: relative;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 4px;
}

.f-rebate-page__msg {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-weight: 400;
    flex: 1;
    justify-content: center;
}

.f-rebate-page__msg--animation {
    overflow: hidden;
    white-space: nowrap;
}

.f-rebate-page__msg--animation .f-rebate-page__scrolling-text {
    animation-name: f-rebate-scroll;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    padding-right: 20px;
}

.f-rebate-page__scrolling-text {
    white-space: nowrap;
    display: inline-block;
}

.f-rebate-page__rule-item {
    display: inline-block;
    font-size: 16px;
}

.f-rebate-page__rule-item b {
    font-weight: 700;
}

@media (max-width: 769px) {
    .f-rebate-page__rule-item {
        font-size: 14px;
    }
}

/* 箭头样式 */
.f-rebate-page__left-arrow {
    position: absolute;
    top: 3px;
    left: -16px;
}

.f-rebate-page__right-arrow {
    position: absolute;
    top: 3px;
    right: -16px;
}

/* 普通规则列表 */
.f-rebate-page__normal-rules-list {
    white-space: nowrap;
    max-width: var(--width, 1200px);
    overflow: hidden;
}

@media (max-width: 769px) {
    .f-rebate-page__normal-rules-list {
        order: 1;
        width: 100%;
    }
}

.f-rebate-page__normal-rules-list .f-rebate-page__msg {
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-weight: 400;
}

@media (max-width: 769px) {
    .f-rebate-page__normal-rules-list .f-rebate-page__msg {
        width: 100%;
        max-width: calc(100vw - 20px);
        margin: 0 auto;
    }
}

.f-rebate-page__normal-rules-list .f-rebate-page__msg--animation .f-rebate-page__scrolling-text {
    animation-name: f-rebate-scroll;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

/* 滚动动画 */
@keyframes f-rebate-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.f-rebate-pagination{
    margin-top: 40px;
}