/**
 * Tooltip Tallas v5.4.1 - Estilos Producción
 *
 * v5.4.1 — Sin cambios visuales (solo fix de timing en JS).
 *
 * v5.4.0 — Soporte móvil:
 *  - La flecha se invierte cuando el tooltip cae debajo del swatch
 *    ([data-placement="bottom"]).
 *  - La flecha sigue al centro del swatch usando la variable CSS
 *    --wctt-arrow-left fijada por el JS.
 *  - En pantallas pequeñas, ligero ajuste de tamaño para legibilidad.
 */

/* Tooltip principal */
#wctt-tooltip {
    position: absolute !important;
    background: #000 !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
    z-index: 999999 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4) !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
    pointer-events: none !important;
    min-width: 140px;
    --wctt-arrow-left: 50%;
}

#wctt-tooltip.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Flecha cuando el tooltip está ARRIBA del swatch (apunta hacia abajo) */
#wctt-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: var(--wctt-arrow-left) !important;
    transform: translateX(-50%) !important;
    border: 6px solid transparent !important;
    border-top-color: #000 !important;
}

/* Flecha cuando el tooltip está DEBAJO del swatch (apunta hacia arriba) */
#wctt-tooltip[data-placement="bottom"]::after {
    top: auto !important;
    bottom: 100% !important;
    border-top-color: transparent !important;
    border-bottom-color: #000 !important;
}

/* Tabla */
#wctt-tooltip table {
    margin: 0 !important;
    border-collapse: collapse !important;
    width: 100% !important;
    background: transparent !important;
}

#wctt-tooltip th,
#wctt-tooltip td {
    padding: 3px 8px !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    color: #fff !important;
}

#wctt-tooltip th {
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    border-bottom: 1px solid rgba(255,255,255,.3) !important;
    padding-bottom: 5px !important;
    font-weight: 600 !important;
}

#wctt-tooltip td {
    font-size: 13px !important;
    font-weight: 500 !important;
    padding-top: 6px !important;
}

/* Indicador de tooltip disponible */
.wctt-has-tooltip {
    position: relative;
}

/* ===== Ajustes para móvil ===== */
@media (max-width: 600px) {
    #wctt-tooltip {
        font-size: 13px !important;
        padding: 11px 16px !important;
        min-width: 160px;
    }
    #wctt-tooltip th {
        font-size: 11px !important;
    }
    #wctt-tooltip td {
        font-size: 14px !important;
    }
}
