/* =========================================================
   ObeGames V24 - Thanh khuyến mãi đồng bộ trên trang chi tiết
   ========================================================= */

.top-notice.dynamic-promo-notice {
    position: relative;
    z-index: 1002;
    width: 100%;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        #ff8a00,
        #ff9f1a,
        #ff8a00
    );
    box-shadow: 0 6px 22px rgba(0, 0, 0, .16);
}

.dynamic-promo-notice .dynamic-promo-link {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 16px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
}

.dynamic-promo-notice .dynamic-promo-link:hover,
.dynamic-promo-notice .dynamic-promo-link:focus {
    color: #ffffff !important;
}

.dynamic-promo-notice .dynamic-promo-icon {
    flex: 0 0 auto;
    font-size: 16px;
}

.dynamic-promo-notice .dynamic-promo-label,
.dynamic-promo-notice .dynamic-promo-code {
    white-space: nowrap;
}

.dynamic-promo-notice .dynamic-promo-code {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 7px;
    color: #ffffff;
    background: rgba(255, 255, 255, .15);
    font-weight: 900;
    letter-spacing: .025em;
}

.dynamic-promo-notice .dynamic-promo-divider {
    width: 1px;
    height: 18px;
    flex: 0 0 1px;
    background: rgba(255, 255, 255, .38);
}

.dynamic-promo-notice .dynamic-promo-countdown {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.dynamic-promo-notice .dynamic-promo-countdown strong {
    min-width: 128px;
    color: #ffffff;
    font-weight: 900;
}

/*
 * Trang chi tiết cần thêm khoảng trống khi thanh khuyến mãi đang hiển thị,
 * tránh Header chồng lên tiêu đề bài.
 */
body.has-active-header-promotion .article-hero {
    padding-top: 205px;
}

body.no-active-header-promotion .article-hero {
    padding-top: 180px;
}

body.has-active-header-promotion #og-promotion-detail {
    padding-top: 178px;
}

body.no-active-header-promotion #og-promotion-detail {
    padding-top: 145px;
}

@media (max-width: 991px) {
    body.has-active-header-promotion .article-hero {
        padding-top: 185px;
    }

    body.no-active-header-promotion .article-hero {
        padding-top: 150px;
    }
}

@media (max-width: 767px) {
    .top-notice.dynamic-promo-notice,
    .dynamic-promo-notice .dynamic-promo-link {
        min-height: 48px;
    }

    .dynamic-promo-notice .dynamic-promo-link {
        gap: 6px;
        padding: 6px 8px;
        font-size: 13px;
    }

    .dynamic-promo-notice .dynamic-promo-label,
    .dynamic-promo-notice .dynamic-promo-divider {
        display: none;
    }

    .dynamic-promo-notice .dynamic-promo-code {
        max-width: 42vw;
        padding: 3px 7px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dynamic-promo-notice .dynamic-promo-countdown strong {
        min-width: 118px;
    }

    body.has-active-header-promotion .article-hero {
        padding-top: 178px;
    }

    body.no-active-header-promotion .article-hero {
        padding-top: 145px;
    }

    body.has-active-header-promotion #og-promotion-detail {
        padding-top: 176px;
    }

    body.no-active-header-promotion #og-promotion-detail {
        padding-top: 145px;
    }
}

@media (max-width: 420px) {
    .dynamic-promo-notice .dynamic-promo-link {
        gap: 4px;
        padding-right: 5px;
        padding-left: 5px;
        font-size: 11.5px;
    }

    .dynamic-promo-notice .dynamic-promo-code {
        max-width: 38vw;
        padding: 2px 5px;
    }

    .dynamic-promo-notice .dynamic-promo-countdown {
        gap: 3px;
    }

    .dynamic-promo-notice .dynamic-promo-countdown strong {
        min-width: 0;
    }
}
