/* Evo Digital frontend fallback styles. Elementor page styling is provided by the reusable HTML widget. */
html:has(#edrg-review-generator),
body:has(#edrg-review-generator) {
    background: #071121 !important;
}
body:has(#edrg-review-generator) {
    color: #f4f7fb !important;
}


/* Full-screen review generation state. The overlay is created by frontend.js. */
.edrg-generating-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: #071121;
    color: #f5f7fb;
    font-family: Inter, Arial, sans-serif;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.edrg-generating-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.edrg-generating-spinner {
    width: 46px;
    height: 46px;
    margin-bottom: 28px;
    border: 4px solid rgba(255,255,255,.16);
    border-top-color: #ff8500;
    border-right-color: #ff3038;
    border-radius: 50%;
    animation: edrg-spin .8s linear infinite;
}

.edrg-generating-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.5px;
}

.edrg-generating-subtitle {
    max-width: 560px;
    color: #8d9ab0;
    font-size: 14px;
    line-height: 1.6;
}

@keyframes edrg-spin {
    to { transform: rotate(360deg); }
}

/* Do not dim the Generate button while the request is running. */
#edrg-review-generator .edrg-generate:disabled {
    opacity: 1 !important;
    cursor: wait;
    transform: none;
}

html.edrg-is-generating,
body.edrg-is-generating {
    overflow: hidden !important;
}

@media (max-width: 767px) {
    .edrg-generating-title {
        font-size: 25px;
    }

    .edrg-generating-subtitle {
        max-width: 330px;
        font-size: 13px;
    }
}
