/* Base visual de los widgets de Pago Simple. PrimeFaces conserva su estructura
   y comportamiento; esta hoja solo se carga en las cinco vistas del flujo. */
body.miucen-public .ui-widget {
    font-family: inherit;
    font-size: 1rem;
}

body.miucen-public .ui-state-disabled {
    opacity: 0.6;
}

body.miucen-public .ui-inputfield {
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    background: #fff;
}

/* El estado de error es más específico que el borde normal del campo. */
body.miucen-public .payment-email-field .ui-inputfield.ui-state-error,
body.miucen-public .pago-identification-form .ui-inputfield.ui-state-error {
    border-color: #c2410c;
}

body.miucen-public .ui-outputlabel-rfi,
body.miucen-public label.ui-state-error {
    color: #c2410c;
}

body.miucen-public .ui-button {
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: var(--ucen-blue);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: none;
    transition: background-color 0.2s ease;
}

body.miucen-public .ui-button.ui-button-text-icon-left {
    padding-left: 36px;
}

body.miucen-public .ui-button.ui-button-text-icon-right {
    padding-right: 36px;
}

body.miucen-public .ui-button .ui-button-text {
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

body.miucen-public .ui-button .fa {
    color: inherit;
    font-size: 1rem;
    text-indent: 0;
}

/* Las variantes de página conservan su color; este es solo el hover por defecto. */
body.miucen-public .ui-button:where(:not(.ui-state-disabled):hover) {
    background: #0052a3;
}

body.miucen-public .ui-button:focus-visible,
body.miucen-public .ui-button.ui-state-focus {
    outline: 3px solid rgba(0, 102, 204, 0.3);
    outline-offset: 3px;
}

body.miucen-public .ui-datatable {
    color: var(--text-dark);
}

body.miucen-public .ui-datatable tbody.ui-datatable-data > tr {
    border-color: #e2e8f0;
    background: #fff;
}

body.miucen-public .ui-datatable tbody.ui-datatable-data > tr.ui-datatable-even {
    background: #f4f4f4;
}

body.miucen-public .ui-datatable thead th,
body.miucen-public .ui-datatable tbody td,
body.miucen-public .ui-datatable tfoot td {
    padding: 0.85rem;
    border-color: #e2e8f0;
    line-height: 1.5;
}

body.miucen-public .ui-datatable .ui-datatable-empty-message td {
    color: #64748b;
    text-align: center;
}

body.miucen-public .ui-datatable thead th {
    text-align: left;
}

body.miucen-public .ui-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--text-dark);
}

body.miucen-public .ui-panel .ui-panel-titlebar {
    background: var(--ucen-navy);
    border-radius: 7px 7px 0 0;
    color: #fff;
    padding: 1rem;
    font-weight: 600;
}

body.miucen-public .ui-panel .ui-panel-content {
    padding: 1rem;
}

body.miucen-public .payment-selection-box .ui-radiobutton-box.ui-state-focus {
    outline: 2px solid var(--ucen-blue);
    outline-offset: 3px;
}

body.miucen-public .ucen-custom-messages {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

body.miucen-public .ucen-custom-messages .ui-messages-close {
    position: absolute;
    right: 0.75rem;
    top: 0.65rem;
    color: inherit;
}

body.miucen-public .ucen-custom-messages .ui-messages-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Growl también puede anexarse al body. Los iconos no usan Material ni sprites. */
body.miucen-public .ui-growl-item-container {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: var(--ucen-navy);
    opacity: 1;
    box-shadow: 0 8px 24px rgba(26, 36, 59, 0.18);
}

body.miucen-public .ui-growl-image {
    background: none;
    font-family: FontAwesome;
    font-size: 1.5rem;
    text-align: center;
    line-height: 32px;
}

body.miucen-public .ui-growl-image-info::before { content: "\f05a"; color: var(--ucen-blue); }
body.miucen-public .ui-growl-image-warn::before { content: "\f071"; color: #a16207; }
body.miucen-public .ui-growl-image-error::before,
body.miucen-public .ui-growl-image-fatal::before { content: "\f06a"; color: #b91c1c; }

body.miucen-public .ui-growl-icon-close {
    background: none;
    color: var(--ucen-navy);
    width: 20px;
    height: 20px;
    text-indent: 0;
    text-align: center;
}

body.miucen-public .ui-growl-icon-close::before {
    content: "\00d7";
    font: 20px/1 Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    body.miucen-public .ui-button { transition: none; }
}
