.o_mega_mart_countdown {
    --mm-countdown-active-bg: var(--mm-countdown-normal-bg, var(--mm-countdown-ribbon-bg, #ffffff));
    --mm-countdown-active-text: var(--mm-countdown-normal-text, var(--mm-countdown-ribbon-text, #0f172a));
    --mm-countdown-active-border: var(--mm-countdown-normal-border, var(--mm-countdown-ribbon-bg, #cbd5e1));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    max-width: 100%;
    min-height: 1.85rem;
    padding: .24rem .6rem;
    border: 1px solid var(--mm-countdown-active-border);
    border-radius: 999px;
    color: var(--mm-countdown-active-text);
    background: var(--mm-countdown-active-bg);
    box-shadow: 0 .28rem .7rem rgba(15, 23, 42, .08);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.o_mega_mart_countdown .fa {
    color: currentColor;
    flex: 0 0 auto;
}

.o_mega_mart_countdown .o_mega_mart_countdown_label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.o_mega_mart_countdown .o_mega_mart_countdown_value {
    font-variant-numeric: tabular-nums;
}

.o_mega_mart_countdown_warning_state {
    --mm-countdown-active-bg: var(--mm-countdown-warning-bg, #fff7ed);
    --mm-countdown-active-text: var(--mm-countdown-warning-text, #9a3412);
    --mm-countdown-active-border: var(--mm-countdown-warning-border, #fdba74);
}

.o_mega_mart_countdown_high_state {
    --mm-countdown-active-bg: var(--mm-countdown-high-bg, #fef2f2);
    --mm-countdown-active-text: var(--mm-countdown-high-text, #b91c1c);
    --mm-countdown-active-border: var(--mm-countdown-high-border, #fca5a5);
}

.o_mega_mart_countdown_critical_state {
    --mm-countdown-active-bg: var(--mm-countdown-critical-bg, #fff1f2);
    --mm-countdown-active-text: var(--mm-countdown-critical-text, #be123c);
    --mm-countdown-active-border: var(--mm-countdown-critical-border, #fb7185);
    transform: translateY(-1px);
    box-shadow: 0 .35rem .8rem rgba(190, 18, 60, .15);
}

.o_mega_mart_countdown_last_chance_state {
    --mm-countdown-active-bg: var(--mm-countdown-last-chance-bg, #7f1d1d);
    --mm-countdown-active-text: var(--mm-countdown-last-chance-text, #ffffff);
    --mm-countdown-active-border: var(--mm-countdown-last-chance-border, #fecaca);
    transform: translateY(-1px);
    box-shadow: 0 .45rem 1rem rgba(127, 29, 29, .24);
}

.o_mega_mart_countdown_compact {
    width: fit-content;
    min-width: 0;
    margin-top: .28rem;
    padding: .22rem .52rem;
    font-size: .72rem;
}

.o_mega_mart_countdown_compact .o_mega_mart_countdown_label {
    display: none;
}

.o_mega_mart_countdown_compact .o_mega_mart_countdown_value {
    unicode-bidi: isolate;
}

.o_mega_mart_countdown_full {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: .34rem .42rem;
    width: fit-content;
    max-width: 28rem;
    margin-top: .35rem;
    padding: .34rem .42rem;
    border-radius: .5rem;
    white-space: normal;
    background: var(--mm-countdown-active-bg);
    box-shadow: 0 .32rem .78rem rgba(15, 23, 42, .1);
}

.o_mega_mart_countdown_full .o_mega_mart_countdown_label {
    display: inline-flex;
    align-items: center;
    min-height: 1.45rem;
    padding: .14rem .36rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: .74rem;
    font-weight: 700;
}

.o_mega_mart_countdown_full .o_mega_mart_countdown_value {
    display: flex;
    flex-wrap: wrap;
    gap: .22rem;
    unicode-bidi: isolate;
}

.o_mega_mart_countdown_full .o_mega_mart_countdown_unit {
    display: grid;
    justify-items: center;
    min-width: 2.35rem;
    padding: .18rem .24rem;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: .42rem;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.o_mega_mart_countdown_full .o_mega_mart_countdown_number {
    unicode-bidi: isolate;
    font-size: .94rem;
    line-height: 1;
    font-weight: 700;
}

.o_mega_mart_countdown_full .o_mega_mart_countdown_unit_label {
    unicode-bidi: isolate;
    margin-top: .12rem;
    font-size: .64rem;
    font-weight: 500;
    opacity: .85;
}

.o_mega_mart_notification_item .o_mega_mart_countdown {
    margin-inline-start: 0;
}

.oe_product_cart .o_mega_mart_countdown {
    align-self: flex-start;
    margin-inline-end: auto;
}

.oe_product_cart .o_mega_mart_countdown[data-ribbon-position*="right"] {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

#product_detail .o_mega_mart_countdown_full,
#product_details .o_mega_mart_countdown_full,
.o_wsale_product_page .o_mega_mart_countdown_full,
.js_product .o_mega_mart_countdown_full {
    width: 100%;
    max-width: 28rem;
    margin: .45rem 0 .65rem;
    border-color: var(--mm-countdown-ribbon-bg, var(--mm-countdown-active-border));
}

#product_detail .o_mega_mart_countdown_full[data-ribbon-position*="right"],
#product_details .o_mega_mart_countdown_full[data-ribbon-position*="right"],
.o_wsale_product_page .o_mega_mart_countdown_full[data-ribbon-position*="right"],
.js_product .o_mega_mart_countdown_full[data-ribbon-position*="right"] {
    justify-content: flex-end;
}

[dir="rtl"] .oe_product_cart .o_mega_mart_countdown {
    align-self: flex-end;
    margin-inline-start: auto;
    margin-inline-end: 0;
}

@media (max-width: 575.98px) {
    .o_mega_mart_countdown_full {
        align-items: flex-start;
        width: 100%;
        max-width: 100%;
        padding: .42rem .45rem;
    }

    .o_mega_mart_countdown_full .o_mega_mart_countdown_value {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: .2rem;
    }

    .o_mega_mart_countdown_full .o_mega_mart_countdown_unit {
        min-width: 0;
    }
}
