/* ── Heuro Count Banner ────────────────────────────────────────────────────── */
.hc-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    margin: 0;
    border: none;
    border-radius: 0;
    text-align: left;
    letter-spacing: normal;
    text-transform: none;
}

.hc-banner *,
.hc-banner *::before,
.hc-banner *::after {
    box-sizing: border-box;
}

.hc-banner.hc-hidden {
    display: none !important;
}

/* Left: icon + info */
.hc-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.hc-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.hc-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hc-type-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.hc-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
}

.hc-date-display {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 2px;
}

/* Divider */
.hc-divider {
    width: 1px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* Countdown */
.hc-countdown {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hc-countdown-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
    align-self: flex-start;
}

.hc-units {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.hc-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hc-num {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    min-width: 2ch;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.hc-unit-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.65;
}

/* Button */
.hc-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
}

.hc-btn:hover {
    opacity: 0.88;
    text-decoration: none;
}

/* Expired state */
.hc-banner.hc-expired .hc-countdown-label {
    display: none;
}

.hc-banner.hc-expired .hc-units {
    opacity: 0.4;
}

/* ── Float wrapper ──────────────────────────────────────────────────────────── */
/*
 * The wrapper is moved to document.body by JS to escape Divi sections that use
 * CSS transforms (which create a new stacking context and break position:fixed).
 * z-index 1000000 clears Divi's header (1000), lightbox (99999), and builder UI.
 */
#hc-float-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000000;
    pointer-events: none; /* wrapper itself is transparent to clicks */
}

.hc-banner.hc-float {
    position: relative; /* stacks inside wrapper */
    pointer-events: all;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    margin-left: auto;
    margin-right: auto;
}

/* ── Close button ───────────────────────────────────────────────────────────── */
.hc-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: currentColor;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.hc-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.28);
}

/* Responsive */
@media (max-width: 768px) {
    .hc-banner {
        flex-wrap: wrap;
        padding: 16px;
        gap: 14px;
    }

    .hc-divider {
        display: none;
    }

    .hc-left {
        flex: 1 1 100%;
    }

    .hc-countdown {
        flex: 1 1 auto;
    }

    .hc-num {
        font-size: 22px;
    }

    .hc-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
