/* Full screen overlay container (hidden by default) */
#epr-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Visible state */
#epr-loading-overlay.is-visible {
    display: flex;
}

/* Lock scroll while overlay is visible */
.epr-overlay-lock {
    overflow: hidden !important;
}

/* Overlay content box */
#epr-loading-overlay .epr-loading-box {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    padding: 22px 22px 18px 22px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.08);
}

#epr-loading-overlay .epr-loading-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f4d26;
}

#epr-loading-overlay .epr-loading-subtitle {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 16px;
}

/* Progress bar (indeterminate animation by default) */
#epr-loading-overlay .epr-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
    position: relative;
}

#epr-loading-overlay .epr-progress-bar span {
    display: block;
    height: 100%;
    width: 30%;
    border-radius: 999px;
    background: #2f6b2f;
    animation: eprIndeterminate 1.1s infinite ease-in-out;
}

/* If you later use eprSetLoadingProgress(), you can disable animation by adding a class */
#epr-loading-overlay.is-determinate .epr-progress-bar span {
    animation: none;
    width: 0%;
}

@keyframes eprIndeterminate {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(360%); }
}