/**
 * WP Minner Hostinger Black Friday Promotional Popup — Scoped Stylesheet
 *
 * Scope: Strictly isolated to .wpm-hostinger-promo and body.wpm-hostinger-promo-open
 * Version: 1.2.13
 */

/* ==========================================================================
   1. ROOT VARIABLES & COMPONENT ISOLATION
   ========================================================================== */
.wpm-hostinger-promo {
    --wpm-hp-charcoal: #202020;
    --wpm-hp-yellow: #f4b82c;
    --wpm-hp-yellow-hover: #dda51f;
    --wpm-hp-yellow-soft: #fdf5e0;
    --wpm-hp-yellow-border: #f9e2a8;
    --wpm-hp-yellow-text: #8c6300;
    --wpm-hp-cream: #f8f7f3;
    --wpm-hp-white: #ffffff;
    --wpm-hp-border: #e5e2da;
    --wpm-hp-text-muted: #555555;
    --wpm-hp-text-subtle: #777777;
    --wpm-hp-close-bg: #f5f4f0;
    --wpm-hp-font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --wpm-hp-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    display: none;
    position: relative;
    z-index: 999990;
}

.wpm-hostinger-promo *,
.wpm-hostinger-promo *::before,
.wpm-hostinger-promo *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   2. BODY SCROLL LOCK
   ========================================================================== */
body.wpm-hostinger-promo-open {
    overflow: hidden !important;
}

/* ==========================================================================
   3. BACKDROP OVERLAY
   ========================================================================== */
.wpm-hostinger-promo__backdrop {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(18, 18, 18, 0.68) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999990 !important;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   4. MODAL VIEWPORT CONTAINER
   ========================================================================== */
.wpm-hostinger-promo__container {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 999991 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    pointer-events: none !important;
}

/* ==========================================================================
   5. MODAL DIALOG SURFACE & ANIMATIONS
   ========================================================================== */
.wpm-hostinger-promo__dialog {
    pointer-events: auto !important;
    position: relative !important;
    width: 100% !important;
    max-width: 480px !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: var(--wpm-hp-white) !important;
    border: 1px solid var(--wpm-hp-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22), 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    padding: 32px 28px 26px !important;
    text-align: center !important;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Active State — 400ms Smooth Bottom-to-Top Slide + Fade In */
.wpm-hostinger-promo.is-active {
    display: block !important;
}

.wpm-hostinger-promo.is-active .wpm-hostinger-promo__backdrop {
    opacity: 1 !important;
}

.wpm-hostinger-promo.is-active .wpm-hostinger-promo__dialog {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Closing State — 300ms Smooth Slide Down + Fade Out */
.wpm-hostinger-promo.is-closing .wpm-hostinger-promo__backdrop {
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.wpm-hostinger-promo.is-closing .wpm-hostinger-promo__dialog {
    opacity: 0 !important;
    transform: translateY(16px) scale(0.97) !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

/* ==========================================================================
   6. CLOSE BUTTON
   ========================================================================== */
.wpm-hostinger-promo__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: var(--wpm-hp-close-bg) !important;
    border: 1px solid var(--wpm-hp-border) !important;
    color: var(--wpm-hp-charcoal) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: background 0.16s ease, transform 0.16s ease, border-color 0.16s ease !important;
    z-index: 2 !important;
}

.wpm-hostinger-promo__close:hover {
    background: #eae8e1 !important;
    border-color: #d8d4ca !important;
    transform: scale(1.06) !important;
}

.wpm-hostinger-promo__close:focus-visible {
    outline: 2px solid var(--wpm-hp-yellow) !important;
    outline-offset: 2px !important;
}

.wpm-hostinger-promo__close svg {
    display: block !important;
    pointer-events: none !important;
}

/* ==========================================================================
   7. PROMOTIONAL ACCENT ICON
   ========================================================================== */
.wpm-hostinger-promo__accent-wrap {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
}

.wpm-hostinger-promo__accent-icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: var(--wpm-hp-yellow-soft) !important;
    border: 1px solid var(--wpm-hp-yellow-border) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--wpm-hp-charcoal) !important;
}

.wpm-hostinger-promo__accent-icon svg {
    display: block !important;
}

/* ==========================================================================
   8. CONTENT & TYPOGRAPHY
   ========================================================================== */
.wpm-hostinger-promo__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.wpm-hostinger-promo__eyebrow {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: var(--wpm-hp-yellow-soft) !important;
    color: var(--wpm-hp-yellow-text) !important;
    border-radius: 20px !important;
    font-family: var(--wpm-hp-font-heading) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.wpm-hostinger-promo__title {
    font-family: var(--wpm-hp-font-heading) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: var(--wpm-hp-charcoal) !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    letter-spacing: -0.2px !important;
}

.wpm-hostinger-promo__desc {
    font-family: var(--wpm-hp-font-body) !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    color: var(--wpm-hp-text-muted) !important;
    margin: 0 0 16px 0 !important;
    padding: 0 4px !important;
    max-width: 410px !important;
}

/* ==========================================================================
   9. LIVE COUNTDOWN TIMER
   ========================================================================== */
.wpm-hostinger-promo__countdown {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 0 20px 0 !important;
    width: 100% !important;
    max-width: 380px !important;
}

.wpm-hp-cd-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--wpm-hp-cream) !important;
    border: 1px solid var(--wpm-hp-border) !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    min-width: 58px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.wpm-hp-cd-num {
    font-family: var(--wpm-hp-font-heading) !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    color: var(--wpm-hp-charcoal) !important;
    font-variant-numeric: tabular-nums !important;
}

.wpm-hp-cd-lbl {
    font-family: var(--wpm-hp-font-body) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    color: var(--wpm-hp-text-subtle) !important;
    margin-top: 3px !important;
}

.wpm-hp-cd-sep {
    font-family: var(--wpm-hp-font-heading) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--wpm-hp-yellow-hover) !important;
    line-height: 1 !important;
    margin-top: -12px !important;
    user-select: none !important;
}

/* ==========================================================================
   10. ACTIONS: PRIMARY CTA & SECONDARY MAYBE LATER
   ========================================================================== */
.wpm-hostinger-promo__actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 8px !important;
}

.wpm-hostinger-promo__cta-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 24px !important;
    background: var(--wpm-hp-yellow) !important;
    color: var(--wpm-hp-charcoal) !important;
    font-family: var(--wpm-hp-font-heading) !important;
    font-size: 15.5px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(244, 184, 44, 0.35) !important;
    transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease !important;
}

.wpm-hostinger-promo__cta-btn:hover {
    background: var(--wpm-hp-yellow-hover) !important;
    color: var(--wpm-hp-charcoal) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(244, 184, 44, 0.45) !important;
    text-decoration: none !important;
}

.wpm-hostinger-promo__cta-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(244, 184, 44, 0.25) !important;
}

.wpm-hostinger-promo__cta-btn:focus-visible {
    outline: 2px solid var(--wpm-hp-charcoal) !important;
    outline-offset: 2px !important;
}

.wpm-hostinger-promo__cta-btn svg {
    flex-shrink: 0 !important;
    display: block !important;
    transition: transform 0.15s ease !important;
}

.wpm-hostinger-promo__cta-btn:hover svg {
    transform: translateX(3px) !important;
}

.wpm-hostinger-promo__secondary-btn {
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 16px !important;
    margin: 0 !important;
    color: var(--wpm-hp-text-subtle) !important;
    font-family: var(--wpm-hp-font-body) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    transition: color 0.15s ease !important;
}

.wpm-hostinger-promo__secondary-btn:hover {
    color: var(--wpm-hp-charcoal) !important;
}

.wpm-hostinger-promo__secondary-btn:focus-visible {
    outline: 2px solid var(--wpm-hp-yellow) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

/* ==========================================================================
   11. REDUCED MOTION & ACCESSIBILITY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .wpm-hostinger-promo__backdrop,
    .wpm-hostinger-promo__dialog,
    .wpm-hostinger-promo__cta-btn,
    .wpm-hostinger-promo__cta-btn svg,
    .wpm-hostinger-promo__close {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* ==========================================================================
   12. MOBILE RESPONSIVENESS (<= 480px, 390px, 320px)
   ========================================================================== */
@media (max-width: 480px) {
    .wpm-hostinger-promo__container {
        padding: 12px !important;
    }

    .wpm-hostinger-promo__dialog {
        padding: 24px 18px 20px !important;
        border-radius: 14px !important;
        max-height: calc(100dvh - 24px) !important;
    }

    .wpm-hostinger-promo__close {
        top: 10px !important;
        right: 10px !important;
        width: 34px !important;
        height: 34px !important;
    }

    .wpm-hostinger-promo__accent-wrap {
        margin-bottom: 10px !important;
    }

    .wpm-hostinger-promo__accent-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }

    .wpm-hostinger-promo__accent-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .wpm-hostinger-promo__eyebrow {
        font-size: 10px !important;
        padding: 3px 10px !important;
        margin-bottom: 6px !important;
    }

    .wpm-hostinger-promo__title {
        font-size: 20px !important;
        margin-bottom: 6px !important;
    }

    .wpm-hostinger-promo__desc {
        font-size: 13.5px !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }

    .wpm-hostinger-promo__countdown {
        gap: 6px !important;
        margin-bottom: 16px !important;
    }

    .wpm-hp-cd-box {
        min-width: 50px !important;
        padding: 6px 6px !important;
        border-radius: 8px !important;
    }

    .wpm-hp-cd-num {
        font-size: 18px !important;
    }

    .wpm-hp-cd-lbl {
        font-size: 9px !important;
    }

    .wpm-hp-cd-sep {
        font-size: 15px !important;
        margin-top: -10px !important;
    }

    .wpm-hostinger-promo__cta-btn {
        font-size: 14.5px !important;
        min-height: 46px !important;
        padding: 10px 18px !important;
    }
}

@media (max-width: 340px) {
    .wpm-hostinger-promo__container {
        padding: 8px !important;
    }

    .wpm-hostinger-promo__dialog {
        padding: 20px 14px 18px !important;
    }

    .wpm-hostinger-promo__countdown {
        gap: 4px !important;
    }

    .wpm-hp-cd-box {
        min-width: 44px !important;
        padding: 5px 4px !important;
    }

    .wpm-hp-cd-num {
        font-size: 16px !important;
    }

    .wpm-hp-cd-lbl {
        font-size: 8.5px !important;
    }

    .wpm-hp-cd-sep {
        font-size: 13px !important;
        margin-top: -8px !important;
    }
}
