/*
 * main.ejs: antes en el primer <style> de la vista (la CSP no admite
 * 'unsafe-inline' en style-src). --principal-color y --colortexto los escribe
 * js/csp/theme-vars.js con los colores del comercio.
 */
/* Ocultar etiquetas de montos por defecto */
.amount-label {
    display: none !important;
}

/* Mostrar etiquetas solo para comercio 3627 */
body.merchant-3627 .amount-label {
    display: block !important;
}

/* Por defecto, mostrar toda la sección de monto exacto para todos los comercios */
.exact-amount-section {
    display: block !important;
}

/* Para comercio 3627: ocultar la barra deslizadora y su texto descriptivo */
body.merchant-3627 .col-12.my-3.exact-amount-section,
body.merchant-3627 .exact-amount-section br {
    display: none !important;
}

/* Estilos responsivos adicionales */
@media (max-width: 768px) {
    .row.justify-content-center.mb-4 {
        margin-bottom: 1rem !important;
    }

    [id^="ammount"][id$="Container"] {
        margin-bottom: 0.75rem !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .bg-danger.border-btm-danger {
        border-radius: 15px !important;
        padding: 0.75rem !important;
    }

    .exact-amount-section input#rangenumber {
        width: 100% !important;
        max-width: 280px !important;
        font-size: 1.1rem !important;
        padding: 0.75rem 1rem !important;
    }

    .amount-label {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }
}

@media (max-width: 576px) {
    [id^="ammount"][id$="Container"] .col-8 p {
        font-size: 0.9rem !important;
    }

    .exact-amount-section input#rangenumber {
        max-width: 260px !important;
        font-size: 1rem !important;
    }

    h6.text-center {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
}

body .identification label,
body .custom-select,
.text-gray
{
    color: var(--colortexto)!important;
    border-color: var(--colortexto)!important;
}
.comercio-header, .bandera-header, body .tarjeta-credito-active {
    border-color: var(--principal-color)!important;
}
body a{
    color: var(--principal-color);
}
body .select:before{
    border-color: var(--principal-color) transparent transparent transparent;
}
.centerCardInfo {
    display: flex;
    align-items: center;
}

/* Estilo básico para el checkbox */
#autoCompleteDaviplata {
    display: none;
}

/* Estilo para la etiqueta del checkbox */
#autoCompleteDaviplata + label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
}

/* Estilo para el cuadro del checkbox */
#autoCompleteDaviplata + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #aaa;
    border-radius: 3px;
    background-color: #fff;
}

/* Estilo para el ícono de "check" cuando el checkbox está seleccionado */
#autoCompleteDaviplata:checked + label:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 2px;
    width: 6px;
    height: 13px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Estilo cuando el checkbox está seleccionado */
#autoCompleteDaviplata:checked + label:before {
    background-color: #f11f40;
    border-color: #f11f40;
}

.centerButton {
    display: flex !important;
    justify-content: center!important;
}

/*
 * Antes style= en línea en main.ejs (marcado y HTML armado en sus scripts); ningún
 * JS modifica estas propiedades. `:where(.clase) { … !important }` reproduce la
 * precedencia del atributo sin !important: gana a toda regla normal y pierde ante
 * cualquier otra !important (p. ej. input{border-radius:30px!important} de
 * style.css o las de #rangenumber de arriba), igual que antes. Lo que en el
 * style= ya llevaba !important va sin :where.
 */
:where(.main__overlay) {
    right: 0 !important;
    z-index: 1 !important;
}

:where(.main__c2p-mark) {
    max-width: 114px !important;
}

:where(.main__secure-loader) {
    width: 10% !important;
}

:where(.main__bank-select) {
    width: 100% !important;
}

:where(.main__timer) {
    font-size: 30px !important;
}

:where(.main__daviplata-finish) {
    height: 40px !important;
}

:where(.main__c2p-brand) {
    margin-top: 24px !important;
}

:where(.main__c2p-icon) {
    background-image: url(https://src.mastercard.com/srci/integration/components/src-ui-kit/assets/icons/src.svg) !important;
    width: 30px !important;
    height: 20px !important;
    display: inline-flex !important;
    background-size: cover !important;
}

:where(.main__c2p-text) {
    display: inline !important;
}

:where(.main__c2p-info) {
    text-decoration: underline !important;
    font-weight: bold !important;
    cursor: pointer !important;
}

:where(.main__cards) {
    padding: 0px !important;
}

:where(.main__amount-row) {
    column-gap: 4px !important;
}

:where(.main__amount-input) {
    max-width: 300px !important;
    text-align: center !important;
    border: 2px solid #dc3545 !important;
    border-radius: 25px !important;
}

:where(.main__range-min) {
    left: 0 !important;
}

:where(.main__range-max) {
    right: 0 !important;
}

:where(.main__error-body) {
    padding: 6rem 3rem !important;
}

/* Opción de banco de select2 (custom_template) y logo de la entidad (#logoEntidad). */
:where(.main__bank-option) {
    display: inline-flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

:where(.main__bank-option-img) {
    width: 20% !important;
    height: 20% !important;
}

.main__bank-option-text {
    margin-bottom: 0 !important;
}

:where(.main__entity-logo) {
    width: 20% !important;
}

:where(.main__entity-logo-neopay) {
    width: 60% !important;
}
