/* Modal Segunda Via — padrão agenciavirtuallight.neonergia.icu */

/* Sobrescreve base-theme / OutSystems (.modal { opacity: 0; pointer-events: none }) */
#modal-segunda-via.modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px 100px;
    box-sizing: border-box;
    overflow: hidden;
    opacity: 1;
    pointer-events: auto;
    width: auto;
    height: auto;
    transition: none;
}

#modal-segunda-via.modal.is-open {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

#modal-segunda-via.modal[hidden] {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.modal-open {
    overflow: hidden;
}

.modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal__body {
    padding: 32px 28px 28px;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal__body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.modal-login.MainPopup {
    width: 100%;
}

.modal .modal__input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px !important;
    background: #fff;
    font-family: var(--font-inter), Arial, sans-serif;
    font-size: 14px;
    line-height: 1.25;
    color: #272727;
    outline: none;
    box-sizing: border-box;
}

.modal .modal__input:focus {
    border-color: #FBB030;
}

.modal__btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .modal__body {
        padding: 28px 20px 24px;
    }
}

.modal-loading {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-loading.is-open {
    display: flex !important;
}

.modal-loading__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-loading__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    padding: 36px 28px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    text-align: center;
    pointer-events: auto;
}

.modal-loading__spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid #f0f0f0;
    border-top-color: #06A09A;
    border-radius: 50%;
    animation: modal-loading-spin 0.75s linear infinite;
}

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

.modal-loading__title {
    margin: 0 0 6px;
    font-family: var(--font-inter-bold), Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #474747;
}

.modal-loading__text {
    margin: 0;
    font-family: var(--font-inter), Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #757575;
}

.modal-loading__hint {
    margin: 12px 0 0;
    font-family: var(--font-inter), Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    color: #9e9e9e;
}

.modal-loading__hint[hidden] {
    display: none;
}

.modal-loading--error .modal-loading__spinner {
    display: none;
}

.modal-loading__btn {
    margin-top: 20px;
    min-width: 120px;
    height: 40px;
    padding: 0 24px;
    border: 0;
    border-radius: 4px;
    background: #ef7c05;
    color: #fff;
    font-family: var(--font-inter), Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.modal-loading__btn:hover {
    background: #d4500b;
}

body.loading-open {
    overflow: hidden;
    touch-action: none;
}
