/* My American Shop exact style countdown bar for Warehouse / PrestaShop 1.7 */
.All.countdown-timer-bar,
.mas-countdown-bar {
    width: 100%;
    z-index: 999999 !important;
    display: block;
    clear: both;
    box-sizing: border-box;
    font-family: inherit;
}

.mas-countdown-bar.countdown-position-top { top: 0; }
.mas-countdown-bar.countdown-position-bottom { bottom: 0; }

.mas-countdown-inner,
.countdown-timer-bar .divtong {
    width: 100%;
    min-height: 76px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 0 15px;
    float: none !important;
    background: #ffffff !important;
    border: 0 !important;
}

.mas-countdown-content,
.countdown-timer-bar .khung {
    width: 100%;
    max-width: 835px;
    min-height: 76px;
    display: grid !important;
    grid-template-columns: 370px 175px 225px;
    align-items: center;
    justify-content: center;
    column-gap: 28px;
    row-gap: 0;
    box-sizing: border-box;
}

.mas-countdown-message,
.countdown-timer-bar .txtContent,
.countdown-timer-bar .txtContent p {
    color: #111111 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.12;
    text-align: left;
    display: block;
    font-size: 19px;
    font-weight: 400;
}

.mas-countdown-message strong,
.mas-countdown-message b {
    display: block;
    color: #111111 !important;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.4px;
    text-transform: uppercase;
}

.mas-countdown-time,
.countdown-timer-bar .div_time {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    border-radius: 0;
    white-space: nowrap;
}

.mas-time-box,
.countdown-timer-bar .share {
    padding: 0 0;
    float: none !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-width: 42px;
    text-align: center;
}

.countdown-number-wrap,
.countdown-label-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.mas-time-separator {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 32px;
    line-height: 31px;
    font-weight: 700;
    color: #111111;
    padding: 0 7px;
    margin-top: 0;
}

.countdown-timer-bar .number,
.number {
    color: #111111 !important;
    font-size: 32px;
    line-height: 31px;
    font-weight: 800;
    letter-spacing: 1px;
    margin: 0;
    float: none !important;
    border-radius: 0;
    text-align: center;
}

.countdown-timer-bar .font,
.font {
    color: #555555 !important;
    margin: 5px 0 0 0;
    float: none !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    text-align: center;
}

/* Reference style has only Hrs / Mins / Secs, so days are hidden always. */
.mas-days-box,
.mas-days-separator {
    display: none !important;
}

.mas-countdown-button,
.countdown-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.mas-countdown-button .btnclick,
.countdown-timer-bar .btnclick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 225px;
    min-height: 56px;
    padding: 0 18px;
    margin: 0;
    border-radius: 5px;
    background: #f9659a !important;
    color: #ffffff !important;
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    box-sizing: border-box;
}

.mas-countdown-button:hover .btnclick,
.countdown-timer-bar .btnclick:hover {
    opacity: .92;
}

.mas-countdown-toggle,
.countdown-timer-bar #icon1,
#icon1 {
    display: none !important;
}

.cotdoc,
.countdown-timer-bar .cotdoc {
    border-left: 0 !important;
}

body.countdown-bar-top {
    padding-top: 76px !important;
}

body.countdown-bar-bottom {
    padding-bottom: 76px !important;
}

@media (max-width: 991px) {
    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 68px;
        padding: 5px 10px;
    }

    .mas-countdown-content,
    .countdown-timer-bar .khung {
        max-width: 100%;
        min-height: 58px;
        grid-template-columns: minmax(260px, 1fr) 160px 190px;
        column-gap: 16px;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        font-size: 22px;
    }

    .mas-countdown-message,
    .mas-countdown-message p {
        font-size: 15px;
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 25px;
        line-height: 25px;
    }

    .font,
    .countdown-timer-bar .font {
        font-size: 12px;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 190px;
        min-height: 44px;
        font-size: 16px;
    }

    body.countdown-bar-top {
        padding-top: 68px !important;
    }
}

@media (max-width: 767px) {
    .All.countdown-timer-bar,
    .mas-countdown-bar {
        width: 100%;
        z-index: 999999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 128px;
        padding: 13px 12px 12px 12px;
        background: #ffffff !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Mobile layout same as My American Shop reference:
       text on left, timer on right, pink code button centered below. */
    .mas-countdown-content,
    .countdown-timer-bar .khung {
        width: 100%;
        max-width: 430px;
        min-height: 103px;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "message timer"
            "button button";
        align-items: start;
        justify-content: center;
        column-gap: 8px;
        row-gap: 7px;
        box-sizing: border-box;
    }

    .mas-countdown-message,
    .countdown-timer-bar .txtContent,
    .countdown-timer-bar .txtContent p {
        grid-area: message;
        text-align: center;
        font-size: 12.5px !important;
        line-height: 1.18;
        color: #333333 !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 210px;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        display: block;
        font-size: 17px !important;
        line-height: 1.05;
        font-weight: 800;
        color: #111111 !important;
        letter-spacing: -0.2px;
        white-space: nowrap;
    }

    .mas-countdown-time,
    .countdown-timer-bar .div_time {
        grid-area: timer;
        display: flex !important;
        align-items: flex-start;
        justify-content: flex-end;
        flex-wrap: nowrap;
        white-space: nowrap;
        padding-top: 1px;
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 25px !important;
        line-height: 25px !important;
        font-weight: 800;
        letter-spacing: .8px;
    }

    .mas-time-box,
    .countdown-timer-bar .share {
        min-width: 31px;
        padding: 0 !important;
    }

    .mas-time-separator {
        padding: 0 4px !important;
        margin-top: 0;
    }

    .font,
    .countdown-timer-bar .font {
        font-size: 10.5px !important;
        line-height: 1;
        margin-top: 5px !important;
        color: #555555 !important;
        text-transform: none;
    }

    .mas-countdown-button,
    .countdown-link {
        grid-area: button;
        justify-self: center;
        margin-top: 0;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 218px;
        min-width: 218px;
        min-height: 50px;
        padding: 0 18px;
        border-radius: 5px;
        font-size: 18px !important;
        font-weight: 500;
        background: #f9659a !important;
        color: #ffffff !important;
    }

    body.countdown-bar-top {
        padding-top: 128px !important;
    }
}

@media (max-width: 374px) {
    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 122px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .mas-countdown-content,
    .countdown-timer-bar .khung {
        column-gap: 5px;
        row-gap: 6px;
    }

    .mas-countdown-message,
    .countdown-timer-bar .txtContent,
    .countdown-timer-bar .txtContent p {
        font-size: 11.5px !important;
        max-width: 190px;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        font-size: 15.5px !important;
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 22px !important;
        line-height: 22px !important;
    }

    .mas-time-box,
    .countdown-timer-bar .share {
        min-width: 28px;
    }

    .mas-time-separator {
        padding: 0 3px !important;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 200px;
        min-width: 200px;
        min-height: 46px;
        font-size: 16px !important;
    }

    body.countdown-bar-top {
        padding-top: 122px !important;
    }
}


/* MAS compact mobile reference override - reduces height and keeps subtitle in one line */
@media (max-width: 767px) {
    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 130px !important;
        padding: 12px 14px 10px 14px !important;
        background: #ffffff !important;
    }

    .mas-countdown-content,
    .countdown-timer-bar .khung {
        width: 100% !important;
        max-width: 430px !important;
        min-height: 108px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "message timer"
            "button button" !important;
        align-items: start !important;
        column-gap: 8px !important;
        row-gap: 6px !important;
    }

    .mas-countdown-message,
    .countdown-timer-bar .txtContent,
    .countdown-timer-bar .txtContent p {
        grid-area: message !important;
        text-align: center !important;
        max-width: none !important;
        width: 100% !important;
        font-size: 11.5px !important;
        line-height: 1.16 !important;
        color: #333333 !important;
        overflow: visible !important;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        font-size: 17px !important;
        line-height: 1.05 !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        letter-spacing: -0.3px !important;
    }

    .mas-countdown-message br {
        display: block !important;
    }

    .mas-countdown-message strong + br,
    .mas-countdown-message b + br {
        display: block !important;
    }

    .mas-countdown-time,
    .countdown-timer-bar .div_time {
        grid-area: timer !important;
        justify-content: flex-end !important;
        padding-top: 0 !important;
        min-width: 0 !important;
        transform: translateY(-1px);
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 24px !important;
        line-height: 24px !important;
        font-weight: 800 !important;
        letter-spacing: 0.8px !important;
    }

    .mas-time-box,
    .countdown-timer-bar .share {
        min-width: 30px !important;
    }

    .mas-time-separator {
        padding: 0 3px !important;
    }

    .font,
    .countdown-timer-bar .font {
        font-size: 10px !important;
        line-height: 1 !important;
        margin-top: 5px !important;
        text-transform: none !important;
    }

    .mas-countdown-button,
    .countdown-link {
        grid-area: button !important;
        justify-self: center !important;
        margin-top: 0 !important;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 218px !important;
        min-width: 218px !important;
        min-height: 50px !important;
        height: 50px !important;
        padding: 0 16px !important;
        border-radius: 5px !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    body.countdown-bar-top {
        padding-top: 130px !important;
    }
}

@media (max-width: 374px) {
    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 126px !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
    }

    .mas-countdown-content,
    .countdown-timer-bar .khung {
        min-height: 104px !important;
        column-gap: 5px !important;
        row-gap: 5px !important;
    }

    .mas-countdown-message,
    .countdown-timer-bar .txtContent,
    .countdown-timer-bar .txtContent p {
        font-size: 10.6px !important;
        line-height: 1.15 !important;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        font-size: 15.5px !important;
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 21px !important;
        line-height: 21px !important;
    }

    .mas-time-box,
    .countdown-timer-bar .share {
        min-width: 27px !important;
    }

    .mas-time-separator {
        padding: 0 2px !important;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 200px !important;
        min-width: 200px !important;
        min-height: 46px !important;
        height: 46px !important;
        font-size: 16px !important;
    }

    body.countdown-bar-top {
        padding-top: 126px !important;
    }
}

/* FINAL MAS tighter spacing + smaller code button override */
@media (min-width: 768px) {
    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 76px !important;
        padding: 0 12px !important;
    }

    .mas-countdown-content,
    .countdown-timer-bar .khung {
        max-width: 920px !important;
        min-height: 76px !important;
        grid-template-columns: 390px 175px 190px !important;
        column-gap: 14px !important;
    }

    .mas-countdown-message,
    .countdown-timer-bar .txtContent,
    .countdown-timer-bar .txtContent p {
        font-size: 17px !important;
        line-height: 1.08 !important;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        font-size: 24px !important;
        line-height: 1.02 !important;
        margin-bottom: 1px !important;
        letter-spacing: -0.2px !important;
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 31px !important;
        line-height: 30px !important;
    }

    .font,
    .countdown-timer-bar .font {
        font-size: 14px !important;
        margin-top: 3px !important;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 188px !important;
        min-width: 188px !important;
        min-height: 54px !important;
        height: 54px !important;
        padding: 0 14px !important;
        font-size: 18px !important;
        border-radius: 5px !important;
    }

    body.countdown-bar-top {
        padding-top: 76px !important;
    }
}

@media (max-width: 767px) {
    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 98px !important;
        padding: 9px 12px 8px 12px !important;
    }

    .mas-countdown-content,
    .countdown-timer-bar .khung {
        max-width: 430px !important;
        min-height: 80px !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "message timer"
            "button button" !important;
        column-gap: 7px !important;
        row-gap: 5px !important;
        align-items: start !important;
    }

    .mas-countdown-message,
    .countdown-timer-bar .txtContent,
    .countdown-timer-bar .txtContent p {
        font-size: 10.5px !important;
        line-height: 1.12 !important;
        max-width: none !important;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        font-size: 15px !important;
        line-height: 1.02 !important;
        margin-bottom: 1px !important;
        white-space: nowrap !important;
    }

    .mas-countdown-time,
    .countdown-timer-bar .div_time {
        transform: none !important;
        padding-top: 0 !important;
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 20px !important;
        line-height: 20px !important;
        letter-spacing: .5px !important;
    }

    .mas-time-box,
    .countdown-timer-bar .share {
        min-width: 26px !important;
    }

    .mas-time-separator {
        padding: 0 2px !important;
    }

    .font,
    .countdown-timer-bar .font {
        font-size: 9px !important;
        margin-top: 3px !important;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 168px !important;
        min-width: 168px !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
        border-radius: 4px !important;
    }

    body.countdown-bar-top {
        padding-top: 98px !important;
    }
}

@media (max-width: 374px) {
    .mas-countdown-inner,
    .countdown-timer-bar .divtong {
        min-height: 96px !important;
        padding: 8px 9px 7px 9px !important;
    }

    .mas-countdown-content,
    .countdown-timer-bar .khung {
        min-height: 78px !important;
        column-gap: 4px !important;
        row-gap: 4px !important;
    }

    .mas-countdown-message,
    .countdown-timer-bar .txtContent,
    .countdown-timer-bar .txtContent p {
        font-size: 9.8px !important;
    }

    .mas-countdown-message strong,
    .mas-countdown-message b {
        font-size: 13.5px !important;
    }

    .countdown-timer-bar .number,
    .number,
    .mas-time-separator {
        font-size: 18px !important;
        line-height: 18px !important;
    }

    .mas-time-box,
    .countdown-timer-bar .share {
        min-width: 24px !important;
    }

    .mas-countdown-button .btnclick,
    .countdown-timer-bar .btnclick {
        width: 158px !important;
        min-width: 158px !important;
        height: 36px !important;
        min-height: 36px !important;
        font-size: 13px !important;
    }

    body.countdown-bar-top {
        padding-top: 96px !important;
    }
}
