/* Módulo 1 – Selector de Packs */

.e89-pack-selector {
    margin: 0 0 20px;
}

.e89-pack-title {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
}

.e89-pack-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.e89-pack-card {
    flex: 1 1 0;
    min-width: 90px;
    padding: 12px 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: border-color .15s, box-shadow .15s;
}

.e89-pack-card:hover {
    border-color: #000;
}

.e89-pack-card.active {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.e89-pack-card .pack-qty {
    font-weight: 700;
}

.e89-pack-card .pack-unit {
    font-size: 12px;
    color: #777;
}

.e89-pack-card .pack-total {
    font-size: 14px;
    font-weight: 700;
}

.e89-pack-units {
    margin-top: 15px;
}

.e89-pack-unit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.e89-pack-unit .unit-label {
    font-weight: 700;
    min-width: 45px;
}

.e89-pack-unit .unit-name {
    font-size: 12px;
    color: #777;
    min-width: 60px;
}

.e89-pack-unit .unit-colors {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.e89-pack-unit .unit-color {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ccc;
    padding: 0;
    cursor: pointer;
    background-color: #eee;
    transition: transform .1s, box-shadow .1s;
}

.e89-pack-unit .unit-color:hover {
    transform: scale(1.12);
}

.e89-pack-unit .unit-color.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.e89-pack-note {
    font-size: 60%;
    color: #777;
    font-weight: 400;
}

/* Con el selector activo, el color del formulario de variación se oculta:
   el color se elige por unidad en el pack. */
form.cart.e89-pack-active .variations tr:has(select[name="attribute_pa_color"]) {
    display: none;
}
