/* Copyright © Rob Art | Illustration 2026 */
@font-face {
    font-family: 'Jost';
    src: url('../pro/assets/fonts/countdown/Jost-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Domine';
    src: url('../pro/assets/fonts/countdown/Domine-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: 'Trocchi';
    src: url('../pro/assets/fonts/countdown/Trocchi-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Pangolin';
    src: url('../pro/assets/fonts/countdown/Pangolin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Oxanium';
    src: url('../pro/assets/fonts/countdown/Oxanium-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 800;
    font-display: swap;
}

.blwp-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    padding-bottom: 10px;
    /* Font-size is set inline per-render via the scale slider (pro/intermediate.php).
       Children (boxed mode) use em so they cascade off this. */
}

/* (Holder layout rules moved to maintenance-screen.php inline CSS so they always load.) */

/* Countdown inside above-logo holder — no extra margin (holder already absolutely positioned) */
.blwp-holder--above-logo .blwp-countdown,
.blwp-preview-holder--above-logo .blwp-countdown {
    margin: 0;
}

/* ── Bold ── */
.blwp-countdown--bold .blwp-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
    position: relative;
}
.blwp-countdown--bold .blwp-cd-sep {
    font-size: 3rem;
    font-weight: 100;
    opacity: 0.35;
    padding: 0 4px;
    line-height: 1;
    align-self: center;
}
.blwp-countdown--bold .blwp-cd-num {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.blwp-countdown--bold .blwp-cd-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    opacity: 0.7;
    margin-top: 6px;
}

/* ── Minimal ── */
.blwp-countdown--minimal { gap: 0; }
.blwp-countdown--minimal .blwp-cd-unit { display: flex; align-items: center; }
.blwp-countdown--minimal .blwp-cd-num {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 0.04em;
}
.blwp-countdown--minimal .blwp-cd-label { display: none; }
.blwp-countdown--minimal .blwp-cd-sep {
    font-size: 2.4rem;
    font-weight: 300;
    opacity: 0.5;
    padding: 0 8px;
    line-height: 1;
}

/* ── Inline ── */
.blwp-countdown--inline .blwp-cd-inline-text {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 0.02em;
}
.blwp-countdown--inline .blwp-cd-inline-text strong {
    font-weight: 700;
}

/* ── Boxed ── */
.blwp-countdown--boxed { gap: 1em; }
.blwp-countdown--boxed .blwp-cd-sep { display: none; }
.blwp-countdown--boxed .blwp-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.4);
    width: 6.25em;
    padding: 0;
}
.blwp-countdown--boxed .blwp-cd-num {
    font-size: 2.6em;
    font-weight: 300;
    line-height: 1;
    padding: 0.34em 0.25em 0.24em;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.4);
}
.blwp-countdown--boxed .blwp-cd-label {
    font-size: 0.7em;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    opacity: 0.7;
    padding: 0.4em 0;
}

/* ── Flip Card (Premium) — handled by vendored flipdown.js + flipdown.min.css.
   We just provide the wrapper margin + label spacing so the rest of the panel
   layout is consistent with the other styles. */
.blwp-countdown--flip {
    display: flex;
    justify-content: center;
    padding: 0.8em 0;
    width: 100%;
    overflow-x: auto;
}
/* flex:0 0 auto stops the container shrinking and forcing rotor-groups to wrap.
   width:auto lets the container grow when days hits 100+ (3 rotors instead of 2). */
.blwp-countdown--flip .flipdown {
    margin: 0 auto;
    flex: 0 0 auto;
    width: auto;
    height: 132px;
}
.blwp-countdown--flip .flipdown .rotor,
.blwp-countdown--flip .flipdown .rotor-leaf {
    width: 60px;
    height: 96px;
    font-size: 4.8rem;
}
.blwp-countdown--flip .flipdown .rotor-top,
.blwp-countdown--flip .flipdown .rotor-bottom,
.blwp-countdown--flip .flipdown .rotor-leaf-front,
.blwp-countdown--flip .flipdown .rotor-leaf-rear,
.blwp-countdown--flip .flipdown .rotor:after {
    width: 60px;
    height: 48px;
}
.blwp-countdown--flip .flipdown .rotor-top,
.blwp-countdown--flip .flipdown .rotor-leaf-front {
    line-height: 96px;
}
.blwp-countdown--flip .flipdown .rotor-group {
    padding-right: 36px;
}
.blwp-countdown--flip .flipdown .rotor-group:last-child {
    padding-right: 0;
}
.blwp-countdown--flip .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before,
.blwp-countdown--flip .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    left: 138px;
    width: 12px;
    height: 12px;
}
.blwp-countdown--flip .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before {
    bottom: 24px;
}
.blwp-countdown--flip .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    bottom: 60px;
}
.blwp-countdown--flip .flipdown .rotor-group-heading:before {
    height: 36px;
    line-height: 36px;
}
/* Clearfix for the floated rotor-groups inside FlipDown's root. */
.blwp-countdown--flip .flipdown::after {
    content: "";
    display: block;
    clear: both;
}
/* Seam between top + bottom halves of each card.
   FlipDown's own `:after` carries a coloured background; we override it to
   transparent + a 2px black border-top so the seam looks like a hinge line. */
.blwp-countdown--flip .flipdown .rotor:after {
    background: transparent !important;
    border-top: solid 2px #000 !important;
}

/* ── Odometer (Premium) — handled by vendored odometer.min.js + a theme CSS.
   We render a single big number (total seconds remaining) for impact. */
.blwp-countdown--odometer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4em;
}
.blwp-cd-odometer-wrap {
    font-size: 3em;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}
.blwp-cd-odometer-label {
    font-size: 0.7em;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Custom flip CSS removed — flipdown handles its own DOM and animation. */

/* ── Pie Circle (Premium) — ring drawn by ProgressBar.js into .blwp-cd-pie. */
.blwp-countdown--pie { gap: 1.1em; }
.blwp-countdown--pie .blwp-cd-sep { display: none; }
.blwp-countdown--pie .blwp-cd-unit {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 6.5em;
    height: 6.5em;
}
.blwp-countdown--pie .blwp-cd-pie {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.blwp-countdown--pie .blwp-cd-num {
    position: relative;
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1;
    z-index: 1;
}
.blwp-countdown--pie .blwp-cd-label {
    position: relative;
    margin-top: 0.25em;
    font-size: 0.45em;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    z-index: 1;
}

/* ── Status message ── */
.blwp-status {
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-align: center;
    margin: 12px auto;
    min-height: 1.4em;
    max-width: 680px;
    width: 100%;
}
.blwp-status-msg {
    display: block;
}
