/**
 * Estilos para el frontend del plugin Busqueda Talla Idonea
 * Adaptado para el bloque de Gutenberg
 */

/* Contenedor principal */
.bti-formulario-container {
    max-width: 100%;
    margin: 0;
    font-family: inherit;
}

/* Formulario */
.formulario-tipo-de-pie {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.formulario-tipo-de-pie > div {
    display: flex;
    flex-direction: column;
}

.formulario-tipo-de-pie label {
    font-weight: 600;
    margin-bottom: 5px;
}

.formulario-tipo-de-pie input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.formulario-tipo-de-pie input[type="number"]:focus {
    border-color: #00cbc2;
    outline: none;
}

/* Botón de búsqueda */
.button-primary {
    display: inline-block;
    background-color: #00cbc2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
}

.button-primary:hover {
    background-color: #2980b9;
}

/* Loader */
.bti-loader {
    text-align: center;
    margin: 15px 0;
}

.bti-loader img {
    width: 50px;
}

/* Tipo de empeine */
.bti-tipo-empeine-container {
    margin-top: 15px;
}

.bti-tipo-empeine {
    text-align: center;
    font-size: 18px;
    margin-bottom: 0;
    font-weight: 500;
}

.bti-tipo-empeine-recomendacion {
    text-align: center;
    font-size: 16px;
    margin-bottom: 0;
    color: #666;
}

.bti-tipo-empeine-recomendacion a {
    color: #00cbc2;
    text-decoration: none;
}

.bti-tipo-empeine-recomendacion a:hover {
    text-decoration: underline;
}

/* Tabla de resultados (ahora en la columna derecha) */
.ltw-bti-calc-results .formulario-tipo-de-pie__resultado {
    padding: 0;
    margin-top: 0;
    border: none;
    background-color: transparent;
}

.bti-tabla-resultados {
    overflow-x: auto;
    margin-top: 20px;
}

.bti-tabla-resultados table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
}

.bti-tabla-resultados th,
.bti-tabla-resultados td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: left;
}

.bti-tabla-resultados th {
    background-color: #f8f8f8;
    font-weight: bold;
}

.bti-tabla-resultados tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bti-talla-destacada {
    font-weight: bold;
    text-align: center;
    font-size: 1.1em;
}

/* Botones de empeine */
.bti-botones-empeine {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.bti-boton-empeine {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.bti-boton-empeine:hover {
    background-color: #00cbc2;
    color: white;
    border-color: #00cbc2;
}

/* Sin resultados */
.bti-sin-resultados {
    padding: 20px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 10px;
    text-align: center;
    color: #666;
}

/* Descripción de resultados */
.bti-descripcion-resultados {
    margin-bottom: 20px;
}

/* Utilidades */
.list-none {
    list-style-type: none;
    padding-left: 0;
}

.ml-0 {
    margin-left: 0;
}

/* Ocultar el contenedor de resultados en la columna izquierda en pantallas pequeñas */
@media (max-width: 1023px) {
    .bti-tipo-empeine-container {
        margin-bottom: 30px;
    }
}