/**
 * EasyPusher Public Styles - Opt-in Prompt
 *
 * @package EasyPusher
 * @since   1.0.0
 */

/* ============================================
   Prompt Container - Slides down from top center
   ============================================ */
#easypusher-popup {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) translateY(-100%) !important;
    opacity: 0 !important;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
    z-index: 2147483647 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    box-sizing: border-box !important;
}

#easypusher-popup.easypusher-popup--visible {
    transform: translateX(-50%) translateY(0) !important;
    opacity: 1 !important;
}

#easypusher-popup *,
#easypusher-popup *::before,
#easypusher-popup *::after {
    box-sizing: border-box !important;
}

/* ============================================
   Prompt Card - Two rows: top 90% (2 cols), bottom 10% (branding)
   ============================================ */
#easypusher-popup .easypusher-popup__card {
    display: grid !important;
    grid-template-columns: 20% 1fr !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
        "icon body"
        "branding branding" !important;
    align-items: start !important;
    gap: 0 16px !important;
    padding: 24px 20px 8px 20px !important;
    margin: 0 !important;
    background: #ffffff !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
    max-width: 440px !important;
    width: calc(100vw - 32px) !important;
}

/* When branding is hidden (paid plan), use single row */
#easypusher-popup .easypusher-popup__card:not(:has(.easypusher-popup__branding)) {
    grid-template-rows: 1fr !important;
    grid-template-areas: "icon body" !important;
}

/* ============================================
   Icon - Left Column (20%)
   ============================================ */
#easypusher-popup .easypusher-popup__icon {
    grid-area: icon !important;
    width: 100% !important;
    max-width: 80px !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f3f4f6 !important;
}

#easypusher-popup .easypusher-popup__icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* ============================================
   Body Wrapper - Right Column (80%)
   ============================================ */
#easypusher-popup .easypusher-popup__body {
    grid-area: body !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-width: 0 !important;
}

/* ============================================
   Message Content
   ============================================ */
#easypusher-popup .easypusher-popup__content {
    width: 100% !important;
}

#easypusher-popup .easypusher-popup__message {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #1f2937 !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

/* ============================================
   Buttons Container - Aligned Right
   ============================================ */
#easypusher-popup .easypusher-popup__buttons {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    width: 100% !important;
}

/* ============================================
   Deny Button
   ============================================ */
#easypusher-popup .easypusher-popup__btn--deny {
    padding: 8px 12px !important;
    border: none !important;
    border-radius: 0 !important;
    /* No radius */
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
    background: transparent !important;
    color: #6b7280 !important;
    /* Gray default */
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
}

#easypusher-popup .easypusher-popup__btn--deny:hover {
    background: rgba(107, 114, 128, 0.08) !important;
    color: #374151 !important;
}

/* ============================================
   Allow Button
   ============================================ */
#easypusher-popup .easypusher-popup__btn--allow {
    padding: 8px 20px !important;
    border: none !important;
    border-radius: 0 !important;
    /* No radius */
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    /* No shadow */
}

#easypusher-popup .easypusher-popup__btn--allow:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
}

#easypusher-popup .easypusher-popup__btn--allow:active {
    transform: translateY(0) scale(0.98) !important;
}

/* ============================================
   Branding Footer (Free Plan)
   ============================================ */
#easypusher-popup .easypusher-popup__branding {
    grid-area: branding !important;
    padding-top: 4px !important;
    margin-top: 8px !important;
    border-top: 1px solid #f3f4f6 !important;
    text-align: center !important;
}

#easypusher-popup .easypusher-popup__branding a {
    font-size: 11px !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    transition: color 0.15s ease !important;
}

#easypusher-popup .easypusher-popup__branding a:hover {
    color: #8629FD !important;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 480px) {
    #easypusher-popup .easypusher-popup__card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 16px !important;
        padding: 24px 20px 8px 20px !important;
        margin: 0 !important;
        width: calc(100vw - 32px) !important;
        border-radius: 0 0 12px 12px !important;
    }

    #easypusher-popup .easypusher-popup__icon {
        width: 48px !important;
        max-width: none !important;
        height: 48px !important;
        aspect-ratio: auto !important;
    }

    #easypusher-popup .easypusher-popup__body {
        align-items: center !important;
        gap: 20px !important;
        width: 100% !important;
    }

    #easypusher-popup .easypusher-popup__message {
        text-align: center !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    #easypusher-popup .easypusher-popup__buttons {
        width: 100% !important;
        justify-content: center !important;
        gap: 16px !important;
    }

    #easypusher-popup .easypusher-popup__btn--deny,
    #easypusher-popup .easypusher-popup__btn--allow {
        padding: 12px 20px !important;
        font-size: 14px !important;
        flex: 1 !important;
    }

    #easypusher-popup .easypusher-popup__branding {
        width: 100% !important;
    }
}