.factura-modal-box {
    font-family: "Manrope", sans-serif;
    background: #fff;
    padding: 24px 32px;
    border-radius: 8px;
    max-width: 480px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    margin: auto;
}

.dataTables_length select {
    min-width: 80px;
    padding: 4px 8px;
    font-size: 14px;
}

.dataTables_length select {
	min-width: 80px;
	padding: 4px 8px;
	font-size: 14px;
}
#tabla-ventas_wrapper {
	margin-top: 1em;
}
#tabla-ventas_wrapper .dataTables_length {
	margin-bottom: 1em;
}

#modal-factura ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

#modal-factura li {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

#modal-factura h2 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

#modal-factura .button {
    margin-top: 20px;
}


.factura-modal-box h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #222;
}

.factura-modal-box p {
    margin: 6px 0;
    font-size: 16px;
    color: #333;
}

.factura-modal-box p strong {
    font-weight: 500;
    color: #000;
}

.factura-modal-box .close-button {
    margin-top: 16px;
    padding: 8px 16px;
    background-color: #007cba;
    border: none;

}
.factura-datos-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
}

.factura-datos-table th,
.factura-datos-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.factura-datos-table th {
    width: 25%;
    font-weight: 600;
    color: #111;
}

.factura-datos-table td {
    color: #333;
}

.factura-datos-table thead th {
    background-color: #f5f5f5;
    font-size: 18px;
    text-align: center;
    padding: 15px;
}



#factura-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}
.factura-modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    position: absolute;
}
.factura-modal {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 5% auto;
    padding: 2em;
    position: relative;
    z-index: 10001;
    border-radius: 8px;
}
.factura-modal label {
    display: block;
    margin-bottom: 1em;
}
.factura-modal input, .factura-modal select {
    width: 100%;
    padding: 0.5em;
    margin-top: 0.3em;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1em;
}
.modal-actions button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.6em 1.2em;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.modal-actions button:hover {
    background-color: #444;
}

.modal-actions button#close-modal {
    background-color: #ccc;
    color: #000;
}

.modal-actions button#close-modal:hover {
    background-color: #aaa;
}

.factura-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background-color: #222;
    color: #fff;
    padding: 1em 1.5em;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10002;
    font-size: 14px;
}
.factura-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.select2regiones{
	
}

/* En tu archivo assets/css/checkout.css */

/* Reglas para alinear los radios de Boleta/Factura */
.tipo-documento-radios {
    display: flex;       /* Usa flexbox para alinear los elementos internos en una fila */
    gap: 20px;           /* Espacio entre los grupos de radio */
    margin-bottom: 1em;  /* Espacio debajo de los radios, si lo deseas */
}

.tipo-documento-radios .form-row {
    margin-bottom: 0;    /* Elimina el margen inferior por defecto de los elementos <p> que actúan como form-row */
    display: flex;       /* Asegura que el input de radio y su label estén alineados dentro de cada form-row */
    align-items: center; /* <-- ¡Esta es la clave para la alineación vertical! */
}

.tipo-documento-radios label {
    display: inline-block; /* Asegura que el label no ocupe todo el ancho */
    margin-left: 0.5em;    /* Espacio entre el radio y su etiqueta de texto */
    font-weight: normal;   /* Establece el peso de la fuente a normal, si no quieres que sea negrita */
    vertical-align: middle; /* <-- Opcional, como un extra de compatibilidad */
}

.tipo-documento-radios input[type="radio"] {
    /* Puedes ajustar el margen o alineación del propio input si sigue desalineado */
    margin-top: -10px;
    margin-bottom: 0;
    vertical-align: middle; /* Asegura que el input también se alinee verticalmente */
}
/* En tu archivo assets/css/checkout.css */

/* Estilos para los campos de FACTURA (RUT, Razón Social, Giro, Dirección) */
#factura-fields-wrapper .form-row {
    float: none;           /* Asegura que no floten, anulando cualquier columna flotante de WooCommerce */
    width: 100% !important; /* Fuerza el 100% de ancho */
    clear: both;           /* Limpia cualquier flotación anterior, asegurando que cada uno empiece en una nueva línea */
    margin-bottom: 2em;    /* <-- AQUI: Añade o ajusta este margin-bottom. 2em es un buen valor para espaciado. */
}

/* Opcional: Si los campos de Región y Comuna (selects) necesitan el mismo espacio */
/* También se aplicará a los campos de texto si están dentro del mismo .form-row */
/* Puedes ser más específico si necesitas diferente espacio para inputs vs selects */
#factura-fields-wrapper .form-row:not(:last-child) { /* Esto aplica a todos excepto al último campo dentro del wrapper */
    margin-bottom: 2em; /* Puedes ajustar este valor */
}

/* Si quieres que los inputs tengan un poco de margen inferior DENTRO de su propio campo div, pero esto es menos común */
#factura-fields-wrapper .form-row input.input-text {
    /* margin-bottom: 0.5em; */ /* Esto añadiría espacio entre el input y el borde inferior del div, quizás no lo que buscas */
}