/* ==========================================================
   MB FunnelKit — Product & Homepage Countdown Timer Styles
   Polished, modern frontend UI
   ========================================================== */

/* ── Keyframes ── */
@keyframes fkcdt-urgpulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

@keyframes fkcdt-sway {
    0%, 100% { transform: rotate(-12deg); }
    50%       { transform: rotate(12deg); }
}

/* ==========================================================
   Single Product Timer
   ========================================================== */

#fkcdt-product {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    width: 100%;
    margin: 5px 0 5px;
}

#fkcdt-product .fkcdt-pdiv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: #001f3f;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    transition: all .4s ease;
    text-align: center;
    flex-wrap: wrap;
}

/* Urgency state — under 1 hour */
#fkcdt-product .fkcdt-pdiv.urgent {
    background: linear-gradient(135deg, #7c2d00, #b95d0e);
    animation: fkcdt-urgpulse 1.5s ease-in-out infinite;
}

/* Expired state */
#fkcdt-product .fkcdt-pdiv.expired {
    background: #f8f4f0;
    border: 1.5px solid #e8c9a0;
    justify-content: center;
}

#fkcdt-product .fkcdt-expired-msg {
    font-size: 13px;
    font-weight: 700;
    color: #b95d0e;
    text-transform: uppercase;
    letter-spacing: .6px;
}

/* Icon */
#fkcdt-product .fkcdt-icon {
    display: inline-block;
    animation: fkcdt-sway 2s ease-in-out infinite;
    font-size: 1.15em;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Line 1 — headline */
#fkcdt-product .fkcdt-line1 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Separator dot between label and timer on desktop */
#fkcdt-product .fkcdt-sep-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    display: inline-block;
    flex-shrink: 0;
}

/* Line 2 — countdown */
#fkcdt-product .fkcdt-line2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

#fkcdt-product .fkcdt-plbl {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}

/* Time unit blocks */
#fkcdt-product .fkcdt-punit {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}

#fkcdt-product [id^="fk-p"] {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.3px;
}

#fkcdt-product .fkcdt-punit-sep {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.5);
    margin: 0 2px;
}

/* Mobile stacked */
@media (max-width: 600px) {
    #fkcdt-product .fkcdt-pdiv {
        flex-direction: row;
        gap: 4px;
        padding: 5px 12px;
    }

    #fkcdt-product .fkcdt-sep-dot {
        display: none;
    }

    #fkcdt-product .fkcdt-line1 {
        font-size: 12px;
        justify-content: center;
    }

    #fkcdt-product .fkcdt-line2 {
        font-size: 12px;
    }

    #fkcdt-product [id^="fk-p"] {
        font-size: 14px;
    }
}

/* Add-to-cart spacing */
.single_add_to_cart_button {
    margin-top: 12px !important;
}

@media (min-width: 1024px) {
    .single-product .page-container.woocommerce .product .summary form.cart .options .simple_product_wrap {
        padding-right: 0px !important;
    }
}

/* ==========================================================
   Homepage Countdown Banner
   — colors are injected inline via JS/PHP so these are
     structural/layout styles only; colors come from admin
   ========================================================== */

#fkcdt-homepage-countdown {
    width: 100%;
    z-index: 10;
}

#fkcdt-homepage-countdown #fkcdt-product {
    margin: 0;
}

#fkcdt-homepage-countdown #fkcdt-product .fkcdt-pdiv {
    border-radius: 0;
    border: none;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    flex-wrap: wrap;
}

#fkcdt-homepage-countdown #fkcdt-product .fkcdt-icon {
    display: none;
}

#fkcdt-homepage-countdown #fkcdt-product .fkcdt-line1 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .9;
}

#fkcdt-homepage-countdown #fkcdt-product .fkcdt-line2 {
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
}

#fkcdt-homepage-countdown #fkcdt-product [id^="fk-p"] {
    font-size: 17px;
    font-weight: 800;
}

@media (max-width: 600px) {
    #fkcdt-homepage-countdown #fkcdt-product .fkcdt-pdiv {
        flex-direction: column;
        gap: 3px;
        padding: 8px 12px;
    }

    #fkcdt-homepage-countdown #fkcdt-product .fkcdt-sep-dot {
        display: none;
    }

    #fkcdt-homepage-countdown #fkcdt-product .fkcdt-line1 {
        font-size: 11px;
    }

    #fkcdt-homepage-countdown #fkcdt-product .fkcdt-line2 {
        font-size: 13px;
    }

    #fkcdt-homepage-countdown #fkcdt-product [id^="fk-p"] {
        font-size: 15px;
    }
}

/* Hero carousel fixes */
@media (min-width: 1024px) {
    .hero__banners-container {
        margin: 0 auto;
        width: calc(100vw - 40px) !important;
        min-width: calc(100vw - 55px) !important;
        max-width: calc(100vw - 72px) !important;
    }
}

.hero__banners-container .hero-carousel__controls {
    display: none !important;
}
