/* ==========================================================================
   Las Nebus - Selector de tallas tipo rejilla de botones (estilo latostadora)
   Estiliza el grupo de atributos renderizado por hummingbird como type=radio:
   .product-variant__radios > .product-variant__radio.form-check
   ========================================================================== */

.product-variant__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    padding: 0;
}

/* Cada celda de la rejilla */
.product-variant__radios .product-variant__radio.form-check {
    margin: 0;
    padding: 0;
    min-height: auto;
}

/* Oculta el input radio nativo pero accesible al teclado/lectores */
.product-variant__radios .product-variant__radio.form-check .form-check-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

/* El label se convierte en el botón/pill */
.product-variant__radios .product-variant__radio.form-check > label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 44px;
    padding: 0 14px;
    margin: 0;
    border: 1px solid #c9ccd1;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    -webkit-user-select: none;
    user-select: none;
}

.product-variant__radios .product-variant__radio.form-check > label .form-check-label {
    pointer-events: none;
}

/* Hover */
.product-variant__radios .product-variant__radio.form-check > label:hover {
    border-color: #222;
}

/* Talla seleccionada: pill resaltada (oscura, como la referencia) */
.product-variant__radios .product-variant__radio.form-check .form-check-input:checked + label {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: 0 0 0 1px #111;
}

/* Foco accesible por teclado */
.product-variant__radios .product-variant__radio.form-check .form-check-input:focus-visible + label,
.product-variant__radios .product-variant__radio.form-check .form-check-input:focus + label {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* ==========================================================================
   Bloque "Guía de tallas"
   ========================================================================== */

/* El bloque vive dentro de .product__actions-qty-add (hook displayProductActions),
   en línea con el botón de añadir al carrito. */
.lasnebus-tallas-guide {
    display: flex;
    align-items: center;
    margin: 0;
}

.lasnebus-tallas-guide__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    background: none;
    border: none;
    padding: 4px 10px;
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.lasnebus-tallas-guide__trigger:hover {
    color: #444;
}

.lasnebus-tallas-guide__icon {
    font-size: 1rem;
    text-decoration: none;
}

/* ---- Modal de la guía de tallas (overlay + caja centrada con imagen) ---- */

.lasnebus-tallas-modal[hidden] {
    display: none;
}

.lasnebus-tallas-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lasnebus-tallas-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border: 0;
    cursor: pointer;
}

.lasnebus-tallas-modal__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.lasnebus-tallas-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    line-height: 1;
    font-size: 1.6rem;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color .15s ease, color .15s ease;
}

.lasnebus-tallas-modal__close:hover {
    background: #f0f0f0;
    color: #111;
}

.lasnebus-tallas-modal__title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}

.lasnebus-tallas-modal__img-wrap {
    margin: 0 0 14px;
}

.lasnebus-tallas-modal__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.lasnebus-tallas-modal__note {
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
}

/* Bloquea el scroll del fondo mientras el modal está abierto. */
body.lasnebus-tallas-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Las Nebus - Selector de tallas tipo rejilla de botones (estilo latostadora)
   Estiliza el grupo de atributos renderizado por hummingbird como type=radio:
   .product-variant__radios > .product-variant__radio.form-check
   ========================================================================== */

.product-variant__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    padding: 0;
}

/* Cada celda de la rejilla */
.product-variant__radios .product-variant__radio.form-check {
    margin: 0;
    padding: 0;
    min-height: auto;
}

/* Oculta el input radio nativo pero accesible al teclado/lectores */
.product-variant__radios .product-variant__radio.form-check .form-check-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

/* El label se convierte en el botón/pill */
.product-variant__radios .product-variant__radio.form-check > label {
    display: block;
    align-items: center;
    /* justify-content: center; */
    width: initial;
    height: 30px;
    padding: 0px 8px;
    /* margin: 0; */
    border: 1px solid #c9ccd1;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 30px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
    -webkit-user-select: none;
    user-select: none;
    text-align: center;
    max-width: fit-content;
    min-width: 30px;
}

.product-variant__radios .product-variant__radio.form-check > label .form-check-label {
    pointer-events: none;
}

/* Hover */
.product-variant__radios .product-variant__radio.form-check > label:hover {
    border-color: #222;
}

/* Talla seleccionada: pill resaltada (oscura, como la referencia) */
.product-variant__radios .product-variant__radio.form-check .form-check-input:checked + label {
    border-color: #111;
    background: #111;
    color: #fff;
    box-shadow: 0 0 0 1px #111;
}

/* Foco accesible por teclado */
.product-variant__radios .product-variant__radio.form-check .form-check-input:focus-visible + label,
.product-variant__radios .product-variant__radio.form-check .form-check-input:focus + label {
    outline: 2px solid #4a90d9;
    outline-offset: 2px;
}

/* ==========================================================================
   Bloque "Guía de tallas"
   ========================================================================== */

/* El bloque vive dentro de .product__actions-qty-add (hook displayProductActions),
   en línea con el botón de añadir al carrito. */
.lasnebus-tallas-guide {
    display: flex;
    align-items: center;
    margin: 0;
}

.lasnebus-tallas-guide__trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    background: none;
    border: none;
    padding: 4px 10px;
    color: #111;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    white-space: nowrap;
}

.lasnebus-tallas-guide__trigger:hover {
    color: #444;
}

.lasnebus-tallas-guide__icon {
    font-size: 1rem;
    text-decoration: none;
}

/* ---- Modal de la guía de tallas (overlay + caja centrada con imagen) ---- */

.lasnebus-tallas-modal[hidden] {
    display: none;
}

.lasnebus-tallas-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lasnebus-tallas-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border: 0;
    cursor: pointer;
}

.lasnebus-tallas-modal__box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.lasnebus-tallas-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 36px;
    height: 36px;
    line-height: 1;
    font-size: 1.6rem;
    color: #555;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color .15s ease, color .15s ease;
}

.lasnebus-tallas-modal__close:hover {
    background: #f0f0f0;
    color: #111;
}

.lasnebus-tallas-modal__title {
    margin: 0 0 16px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111;
}

.lasnebus-tallas-modal__img-wrap {
    margin: 0 0 14px;
}

.lasnebus-tallas-modal__img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.lasnebus-tallas-modal__note {
    margin: 0;
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
}

/* Bloquea el scroll del fondo mientras el modal está abierto. */
body.lasnebus-tallas-modal-open {
    overflow: hidden;
}

label.input-color__label .color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}