﻿.rh-panel .rh-alert--exito {
    border-color: #b8dfc5;
    border-left: 4px solid #16803a;
    background: #eefaf1;
    color: #165c31;
}

.rh-panel .rh-alert--error {
    border-color: #eac4bf;
    border-left: 4px solid #bd3026;
    background: #fff6f4;
    color: #8e2c24;
}

.rh-panel .rh-alert--info {
    border-left: 4px solid #005cbd;
}

.rh-panel .qroma-otp-meta-grid {
    margin: 0 0 23px;
}

.rh-destino {
    margin-bottom: 17px;
    padding: 12px 14px;
    background: #f0f7ff;
    border: 1px solid #c9def5;
    border-radius: 10px;
    color: #21496f;
    font-size: .85rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.rh-otp-renovacion {
    margin-top: 10px;
}

    .rh-otp-renovacion .rh-alert {
        margin-bottom: 14px;
    }

/* Evita que estilos de display: flex o display: grid anulen hidden. */
.rh-panel [hidden] {
    display: none !important;
}

.rh-field input.rh-otp-input {
    appearance: none;
    -moz-appearance: textfield;
    font-variant-numeric: tabular-nums;
}

    .rh-field input.rh-otp-input::-webkit-outer-spin-button,
    .rh-field input.rh-otp-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.rh-primary-button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

@media (max-width: 420px) {
    .rh-panel .qroma-otp-meta-grid {
        grid-template-columns: 1fr;
    }
}

.qroma-otp-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    margin: 0 0 20px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 0.89rem;
    line-height: 1.5;
}

    /* Icono general */
    .qroma-otp-alert .qroma-otp-alert-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        font-weight: 700;
        font-size: 14px;
    }

    /* ==========================================
   ERROR - ROJO
   ========================================== */

    .qroma-otp-alert.qroma-otp-alert--error {
        border-color: #eac4bf;
        border-left: 4px solid #bd3026;
        background: #fff6f4;
        color: #8e2c24;
    }

        .qroma-otp-alert.qroma-otp-alert--error
        .qroma-otp-alert-icon {
            background: #fde8e5;
            color: #bd3026;
        }

    /* ==========================================
   EXITO - VERDE
   ========================================== */

    .qroma-otp-alert.qroma-otp-alert--exito {
        border-color: #b8dfc5;
        border-left: 4px solid #16803a;
        background: #eefaf1;
        color: #165c31;
    }

        .qroma-otp-alert.qroma-otp-alert--exito
        .qroma-otp-alert-icon {
            background: #d7f3df;
            color: #16803a;
        }

    /* ==========================================
   INFORMACION - AZUL
   ========================================== */

    .qroma-otp-alert.qroma-otp-alert--info {
        border-color: #c9def5;
        border-left: 4px solid #005cbd;
        background: #f0f7ff;
        color: #21496f;
    }

        .qroma-otp-alert.qroma-otp-alert--info
        .qroma-otp-alert-icon {
            background: #dcecff;
            color: #005cbd;
        }

/* Error de validación debajo del campo OTP */
.qroma-otp-field-error {
    display: block;
    margin: 12px 0 16px;
    padding: 11px 14px;
    color: #b42318;
    background-color: #fff5f4;
    border: 1px solid #f4c7c3;
    border-left: 3px solid #d92d20;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

    /* Respetar el atributo hidden */
    .qroma-otp-field-error[hidden] {
        display: none !important;
    }

/* Separación del botón respecto al campo */
#otp-validacion-form .qroma-otp-submit {
    margin-top: 16px;
}