﻿/**
 * sizeguide_v2.css
 * Estilo de talles y burbujas identico a digitalsport.com.ar
 * Fuente referencia: products.css#sizes de digitalsport
 */

/* ================================================================
   BOTONES DE TALLE
   (basado en #product_details #info #buybox #sizes label de digitalsport)
   ================================================================ */

/* Reset del ul */
.product-variants-item ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 6px 0 !important;
    text-align: left !important;
    display: block !important;
}

/* Li: inline sin float */
.product-variants .input-container,
.product-variants li.input-container {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
}

/* OOS li — especificidad 0,3,0 > custom.css 0,2,1 (li.input-container.out-of-stock-float-left) */
.product-variants .input-container.out-of-stock-float-left {
    display: inline-block !important;
    float: none !important;
    text-decoration: none !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    vertical-align: top !important;
}

/* Label base de talle (igual a .sizeLbl de digitalsport).
   Se limita a input-radio para no pintar el contenedor de los colores. */
.product-variants .input-container label:has(> input.input-radio) {
    position: relative !important;
    display: inline-block !important;
    min-width: 30px !important;
    margin: 0 2px 4px 0 !important;
    height: 20px !important;
    padding: 6px 5px 3px 5px !important;
    border: none !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #686859 !important;
    text-align: center !important;
    cursor: pointer !important;
    background: #FFF !important;
    border-radius: 2px !important;
    box-sizing: content-box !important;
    overflow: visible !important;
    line-height: 1.4 !important;
}

/* Hover en stock: borde inferior naranja (var --color1 de digitalsport = #8CC63E) */
.product-variants .input-container:not(.out-of-stock-float-left) label:has(> input.input-radio):hover {
    border-bottom: #8CC63E 3px solid !important;
    height: 17px !important;
}

/* Talle seleccionado (:has para input dentro del label) */
.product-variants .input-container label:has(> input.input-radio:checked),
.product-variants .input-container label.checked:has(> input.input-radio) {
    background: #8CC63E !important;
    color: #FFF !important;
}

/* Out of stock: label */
.product-variants .input-container.out-of-stock-float-left label:has(> input.input-radio) {
    background: #ddd !important;
    color: #fff !important;
    border-bottom: #ddd 3px solid !important;
    height: 17px !important;
    cursor: default !important;
}

/* Out of stock: span — anula el color:red!important y tachado de theme_mod_tachar_talles */
.product-variants .input-container.out-of-stock-float-left label:has(> input.input-radio) span.radio-label,
.product-variants .input-container.out-of-stock-float-left label:has(> input.input-radio) span {
    color: #fff !important;
    text-decoration: none !important;
}

/* Ocultar radio nativo */
.product-variants input.input-radio {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Span del talle: anular el box-style del tema (background #fff, border, box-shadow)
   para que el fondo/color del LABEL (que controlamos) sea visible */
.product-variants .input-container label:has(> input.input-radio) .radio-label {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    font-weight: 400 !important;
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}

/* ================================================================
   BURBUJA
   (basado en #product_details #info #buybox #sizes label .bubble)
   ================================================================ */

/* Label con burbuja: overflow visible para que la burbuja no se corte */
.mlsg-has-bubble {
    position: relative !important;
    overflow: visible !important;
}

/* La burbuja */
.mlsg-bubble {
    position: absolute;
    bottom: 30px;
    left: 50%;
    width: 120px;
    height: auto;
    margin: 0 0 0 -62px;
    padding: 5px;
    background: rgba(0,0,0,.8);
    color: #fff;
    font-size: 12px;
    border-radius: 2px;
    text-align: right;
    overflow: hidden; /* contiene el float de .mlsg-b-arg */
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    pointer-events: none;
    transition: opacity .4s, visibility 0s .4s;
}

/* Mostrar al hacer hover */
.mlsg-has-bubble:hover .mlsg-bubble {
    opacity: 1;
    visibility: visible;
    z-index: 100;
    transition: opacity .4s, visibility 0s;
}

/* Burbuja "Sin Stock" — centrada */
.mlsg-bubble.mlsg-bubble-oos {
    text-align: center;
}

/* Más espacio sólo cuando la guía incluye medidas corporales */
.mlsg-bubble.mlsg-bubble-measures {
    width: 170px;
    margin-left: -87px;
}

/* Columna ARG — float left al 50% (igual que .arg de digitalsport) */
.mlsg-b-arg {
    font-size: 17px;
    font-weight: bold;
    width: 50%;
    margin-right: 2px;
    display: inline-block;
    float: left;
    color: #FFF;
    text-align: center;
}

.mlsg-b-arglbl {
    font-size: 14px;
    font-weight: 500;
    height: 21px;
    letter-spacing: 2px;
    line-height: 1.4;
}

.mlsg-b-argval {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.1;
}

/* Filas derecha: us / uk / eur / cm — display block, text-align right */
.mlsg-b-us,
.mlsg-b-uk,
.mlsg-b-eur,
.mlsg-b-cm {
    display: block;
}

.mlsg-b-measure {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
}

/* ================================================================
   LINK "VER GUIA DE TALLES"
   ================================================================ */

#mlsg-guide-link {
    margin-top: 4px;
    margin-bottom: 4px;
}

.mlsg-guide-link-a {
    font-size: 12px;
    color: #8CC63E;
    text-decoration: underline;
    cursor: pointer;
}

.mlsg-guide-link-a:hover {
    color: #c55f1f;
}

/* ================================================================
   MODAL GUIA DE TALLES
   ================================================================ */

.mlsg-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlsg-modal-box {
    background: #fff;
    border-radius: 4px;
    width: 90%;
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    overflow: hidden;
}

.mlsg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e8e8e8;
    background: #f8f8f8;
    flex-shrink: 0;
}

.mlsg-modal-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.mlsg-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

.mlsg-modal-close:hover { color: #000; }

.mlsg-modal-body {
    overflow-y: auto;
    padding: 12px 16px;
    flex: 1;
}

.mlsg-modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.mlsg-modal-table th {
    background: #F2F2F2;
    color: #555;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 7px 8px;
    text-align: center;
    border-bottom: 2px solid #ddd;
}

.mlsg-modal-table td {
    padding: 6px 8px;
    text-align: center;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.mlsg-modal-table tr:last-child td { border-bottom: none; }
.mlsg-modal-table tr:nth-child(even) td { background: #fafafa; }

/* Subtítulo de chart cuando hay múltiples guías */
.mlsg-modal-chart { margin-bottom: 20px; }
.mlsg-modal-chart:last-child { margin-bottom: 0; }
.mlsg-modal-chart-name {
    font-size: 12px;
    font-weight: 600;
    color: #8CC63E;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Nota de uso (texto explicativo, solo tienda) */
.mlsg-modal-usage-note {
    margin-top: 12px;
    padding: 10px 12px;
    background: #f5f9ef;
    border: 1px solid #dcecc9;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #4a5c3a;
}

body.mlsg-modal-open { overflow: hidden; }
