/* Black Friday teaser strip. Loaded in <head> by inc/bf-teaser.php (gm_bf_teaser_enqueue). Markup: global_contents/bf-teaser-strip.php. */
@font-face {
    font-family: 'Inter GM';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
}

/* style.css has "* { font-size: 16px }" and generic p/div rules: every size here is explicit. */
.gm-bf,
.gm-bf * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter GM', Inter, 'Helvetica Neue', Arial, sans-serif !important;
    text-shadow: none !important;
}

.gm-bf {
    position: relative;
    z-index: 20; /* above the header's absolutely positioned right panel */
    width: 100%;
    min-height: 79px;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #fff;
    color: #111;
    border-bottom: 1px solid #e5e5e5;
    transition: max-height 0.3s ease, min-height 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.gm-bf[hidden] {
    display: none !important;
}

.gm-bf__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 32px;
}

.gm-bf__title,
.gm-bf__msg,
.gm-bf__tuned {
    color: #111;
    font-weight: 600 !important;
    text-transform: uppercase;
    white-space: nowrap;
}

.gm-bf__title {
    font-size: 24px !important;
    line-height: 30px !important;
    letter-spacing: 0.18em;
}

.gm-bf__msg {
    font-size: 16px !important;
    line-height: 22px !important;
    letter-spacing: 0.20em;
}

.gm-bf__tuned {
    font-size: 16px !important;
    line-height: 22px !important;
    letter-spacing: 0.18em;
}

/* Vertical rules: CSS strokes, not typed "|". */
.gm-bf__rule {
    flex: 0 0 1px;
    width: 1px;
    height: 30px;
    background: #333;
}

.gm-bf__reveal {
    display: flex;
    align-items: center;
    gap: 24px;
}

.gm-bf__timer {
    display: grid;
    grid-template-columns: 54px 10px 54px 10px 54px 10px 54px;
    grid-template-rows: 38px 12px;
    column-gap: 4px;
    width: 270px;
    font-variant-numeric: tabular-nums lining-nums;
}

.gm-bf__num {
    grid-row: 1;
    color: #111;
    font-size: 34px !important;
    line-height: 38px !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    text-align: center;
    font-variant-numeric: tabular-nums lining-nums;
}

.gm-bf__colon {
    grid-row: 1;
    color: #111;
    font-size: 28px !important;
    line-height: 38px !important;
    font-weight: 500 !important;
    text-align: center;
}

.gm-bf__label {
    grid-row: 2;
    color: #333;
    font-size: 9px !important;
    line-height: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* Without JavaScript the digits never appear: the fixed reveal date shows instead. */
.gm-bf__timer { display: none; }
.gm-bf__date {
    color: #111;
    font-size: 16px !important;
    line-height: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.gm-bf--js .gm-bf__timer { display: grid; }
.gm-bf--js .gm-bf__date {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* 1280-1439 px: same row, tighter. */
@media only screen and (max-width: 1439px) {
    .gm-bf__inner { gap: 16px; padding: 14px 24px; }
    .gm-bf__reveal { gap: 16px; }
}

/* 1024-1279 px: compact single row. */
@media only screen and (max-width: 1279px) {
    .gm-bf { min-height: 68px; }
    .gm-bf__inner { padding: 12px 24px; }
    .gm-bf__title { font-size: 18px !important; line-height: 24px !important; letter-spacing: 0.12em; }
    .gm-bf__msg,
    .gm-bf__tuned { font-size: 12px !important; line-height: 18px !important; letter-spacing: 0.12em; }
    .gm-bf__timer {
        grid-template-columns: 44px 8px 44px 8px 44px 8px 44px;
        grid-template-rows: 30px 12px;
        column-gap: 3px;
        width: auto;
    }
    .gm-bf__num { font-size: 26px !important; line-height: 30px !important; }
    .gm-bf__colon { font-size: 22px !important; line-height: 30px !important; }
}

/* Below 1024 px: stacked (approved mobile mockup). No STAY TUNED, no dividers. */
@media only screen and (max-width: 1023px) {
    .gm-bf { min-height: 129px; }
    .gm-bf__inner {
        flex-direction: column;
        gap: 0;
        max-width: 440px;
        padding: 12px 16px;
    }
    .gm-bf__rule,
    .gm-bf__tuned { display: none; }
    .gm-bf__title { font-size: 20px !important; line-height: 26px !important; letter-spacing: 0.18em; }
    .gm-bf__reveal {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 4px;
    }
    .gm-bf__msg { font-size: 12px !important; line-height: 18px !important; letter-spacing: 0.20em; }
    .gm-bf__timer,
    .gm-bf--js .gm-bf__timer {
        grid-template-columns: 1fr 8px 1fr 8px 1fr 8px 1fr;
        grid-template-rows: 32px 12px;
        column-gap: 4px;
        width: 100%;
        max-width: 344px;
        padding: 0 18px;
        border-left: 1px solid #333;
        border-right: 1px solid #333;
    }
    .gm-bf__num { font-size: 28px !important; line-height: 32px !important; }
    .gm-bf__colon { font-size: 24px !important; line-height: 32px !important; }
    .gm-bf__label { letter-spacing: 0.04em; }
    .gm-bf__date { font-size: 14px !important; line-height: 20px !important; }
}

/* 320-359 px safeguard. */
@media only screen and (max-width: 359px) {
    .gm-bf__title { font-size: 18px !important; line-height: 24px !important; letter-spacing: 0.14em; }
    .gm-bf__num { font-size: 26px !important; }
    .gm-bf__timer,
    .gm-bf--js .gm-bf__timer { padding: 0 12px; }
}

/* The anniversary badge and the black "1300Tailor / BOOK NOW" panel are absolutely positioned at
   top: 0 / height: 100% of the fixed header. Start them below the strip so the strip does not cover
   them. --gm-bf-cur is the strip's current visible height (0 when hidden or collapsed on scroll). */
body.gm-has-bf .site-header .anniversary-header-wrapper,
body.gm-has-bf .site-header .manu-right-contact-div {
    top: var(--gm-bf-cur, 0px);
    height: calc(100% - var(--gm-bf-cur, 0px));
    transition: top 0.3s ease, height 0.3s ease;
}

/* The script measures how much the strip already pushes the page content and corrects the rest:
   positive on templates whose first content sits under the fixed header (home hero, locations...),
   0 on templates with one header-height spacer, negative on templates with two (blog). */
body.gm-has-bf #content {
    padding-top: max(0px, var(--gm-bf-push, 0px));
    margin-top: min(0px, var(--gm-bf-push, 0px));
}


