/* Bento interactivo — StocKy Repuestos */

#repuestos-mostrador [data-repuestos-bento] .repuestos-bento-card {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#repuestos-mostrador [data-repuestos-bento] .repuestos-bento-card:hover {
    box-shadow:
        0 20px 40px -24px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(148, 163, 184, 0.15);
}

#repuestos-mostrador .repuestos-bento-seg[aria-selected='true'] {
    border-color: rgb(0 132 255 / 0.35);
    background: rgb(0 132 255 / 0.08);
    color: #0084ff;
    box-shadow: 0 1px 2px rgb(0 132 255 / 0.12);
}

#repuestos-mostrador .repuestos-bento-seg {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

#repuestos-mostrador .repuestos-bento-seg:active {
    transform: scale(0.98);
}

#repuestos-mostrador [data-repuestos-slot-btn][aria-pressed='true'],
#repuestos-mostrador [data-repuestos-area][aria-pressed='true'],
#repuestos-mostrador [data-repuestos-vehicle-option][aria-pressed='true'],
#repuestos-mostrador [data-repuestos-year][aria-pressed='true'],
#repuestos-mostrador [data-repuestos-serial-pick][aria-pressed='true'],
#repuestos-mostrador [data-repuestos-min-name][aria-pressed='true'],
#repuestos-mostrador [data-repuestos-lote][aria-pressed='true'] {
    border-color: rgb(0 132 255 / 0.45);
    background: rgb(224 242 254 / 0.9);
    color: #0f172a;
}

#repuestos-mostrador [data-repuestos-warranty-action][aria-pressed='true'] {
    border-color: rgb(245 158 11 / 0.45);
    background: rgb(255 251 235 / 0.95);
    color: #92400e;
}

#repuestos-mostrador [data-repuestos-supplier-toggle][aria-pressed='true'] {
    border-color: rgb(0 132 255 / 0.35);
    background: rgb(224 242 254 / 0.95);
}

#repuestos-mostrador [data-repuestos-credit-toggle].is-on {
    border-color: transparent;
    background: #8b5cf6;
}

#repuestos-mostrador [data-repuestos-credit-toggle].is-on [data-repuestos-credit-knob] {
    transform: translateX(1.25rem);
}

#repuestos-mostrador [data-repuestos-excel-run]:disabled {
    opacity: 0.65;
    cursor: wait;
}

#repuestos-mostrador [data-repuestos-pay-mode][aria-pressed='true'] {
    background: #0084ff;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px -8px rgb(0 132 255 / 0.55);
}

#repuestos-mostrador [data-repuestos-compat-result] {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#repuestos-mostrador [data-repuestos-compat-result].is-updating {
    opacity: 0.55;
    transform: translateY(2px);
}

#repuestos-mostrador [data-repuestos-wa-preview] {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#repuestos-mostrador [data-repuestos-bento-card="cotizador"]:hover [data-repuestos-wa-preview] {
    border-color: rgb(34 197 94 / 0.45);
    box-shadow: 0 12px 28px -16px rgb(34 197 94 / 0.35);
}

@media (prefers-reduced-motion: reduce) {
    #repuestos-mostrador .repuestos-bento-card,
    #repuestos-mostrador .repuestos-bento-seg,
    #repuestos-mostrador [data-repuestos-compat-result] {
        transition: none;
    }
}
