/* Quick Ship Program: tabla HTML (antes imagen). Escritorio = tabla, móvil/tablet = tarjetas. */

.qs {
    --qs-border: #1f1f1f;
    --qs-head: #cbcccf;
    --qs-cat: #ccc;
    --qs-tint: #f3f3f3;
    font-family: Helvetica, Arial, sans-serif;
    color: #111;
}

.qs--fire       { --qs-cat: #f6d892; --qs-tint: #f9e9d9; }
.qs--firesmoke  { --qs-cat: #f4b592; --qs-tint: #f9e6df; }
.qs--ceiling    { --qs-cat: #e98472; --qs-tint: #fac0bc; }
.qs--aircontrol { --qs-cat: #77a6c4; --qs-tint: #c4e7fb; }
.qs--backdraft  { --qs-cat: #7baf7e; --qs-tint: #d3f9d4; }
.qs--louvers    { --qs-cat: #a57daf; --qs-tint: #ebd2fa; }
.qs--access     { --qs-cat: #ad987d; --qs-tint: #dedad7; }

.qs .qs__intro { padding-top: 10px; }

.qs .qs__title {
    color: #426590;
    margin: 15px 0;
    font-size: 24px;
    font-family: Helvetica, Arial, sans-serif !important;
    text-transform: none;
    padding-left: 2%;
}

.qs .qs__download {
    text-align: right;
    margin: 0 2% 10px;
}

.qs .qs__download a {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #426590;
    padding: 7px 16px;
    border-radius: 3px;
    text-decoration: none;
}

.qs .qs__download a:hover,
.qs .qs__download a:focus { background: #2f4c70; color: #fff; }

/* ---------- Tabla (escritorio) ---------- */

.qs__tablewrap {
    margin: 0 1% 10px;
}

.qs__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.35;
    background: #fff;
}

.qs__table th,
.qs__table td {
    border: 1px solid var(--qs-border);
    padding: 6px 8px;
    vertical-align: middle;
}

.qs__table thead th {
    background: var(--qs-head);
    font-weight: 400;
    font-size: 15px;
    text-align: center;
    white-space: nowrap;
    padding: 8px 6px;
}

.qs__table thead .qs__th-max { font-size: 16px; }
.qs__table .qs__th-cat { width: 10%; }
.qs__table .qs__th-opt { width: 40%; }

.qs__table .qs__cat {
    background: var(--qs-cat);
    text-align: left;
    vertical-align: middle;
    font-weight: 400;
    color: #111;
    padding: 10px 10px;
}

.qs__cat-name {
    display: block;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
}

.qs__cat-note {
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
    margin-top: 2px;
}

.qs__cat-icon {
    display: block;
    width: 90px;
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

.qs__table .qs__prod {
    font-weight: 700;
    font-size: 14px;
}

.qs__table .qs__loc,
.qs__table .qs__qty {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 5px;
}

.qs__table .qs__loc { white-space: nowrap; }

.qs__table .qs__opt { font-size: 12.5px; }

/* Cargo mínimo: mismo peso visual que las cantidades pero en gris. */
.qs__table thead .qs__th-min { background: #dcdde0; }
.qs__table .qs__min { font-weight: 400; color: #333; font-size: 13px; }
.qs__table .qs__opt strong { font-weight: 700; }

.qs__table tbody tr { background: #fff; }
.qs__table tbody tr.qs__tint { background: var(--qs-tint); }
/* La celda de opciones compartida por varias filas va en blanco, como en la hoja original. */
.qs__table tbody .qs__opt--shared { background: #fff; }

.qs__table tbody tr:hover td { box-shadow: inset 0 0 0 999px rgba(66, 101, 144, .07); }

/* ---------- Tarjetas (móvil / tablet) ---------- */

.qs__cards { display: none; }

.qs__group { margin: 0 0 22px; }

.qs__group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--qs-cat);
    border-radius: 6px 6px 0 0;
    padding: 10px 14px;
}

.qs__group-icon { width: 48px; height: auto; flex: 0 0 auto; }

.qs .qs__group-name {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    text-transform: none;
    color: #111 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: normal;
    line-height: 1.2;
}

.qs__group-note { margin: 2px 0 0; font-size: 13px; line-height: 1.3; }

.qs__card {
    background: #fff;
    border: 1px solid #d5d5d5;
    border-top: 0;
    border-left: 5px solid var(--qs-cat);
    padding: 12px 14px;
}

.qs__card:last-child { border-radius: 0 0 6px 6px; }

.qs__card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.qs .qs__card-prod {
    font-family: Helvetica, Arial, sans-serif !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    color: #111 !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.qs__card-loc {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    color: #426590;
    background: #eef3f9;
    border-radius: 3px;
    padding: 2px 7px;
    white-space: nowrap;
}

.qs__card-qty {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 10px 0 0;
}

.qs__card-qty > div {
    background: var(--qs-tint);
    border-radius: 4px;
    text-align: center;
    padding: 5px 4px;
}

.qs__card-qty dt {
    font-size: 11px;
    font-weight: 400;
    color: #444;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.qs__card-qty dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.qs__card-qty dd.qs__card-min {
    font-size: 11px;
    font-weight: 400;
    color: #555;
    margin-top: 1px;
}

.qs__card-opt {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #333;
}

/* ---------- Notas ---------- */

.qs__notes {
    margin: 12px 2% 20px;
    font-size: 13px;
    line-height: 1.5;
}

.qs__notes-title { display: block; margin-bottom: 4px; }

.qs__notes ul { margin: 0; padding-left: 18px; }
.qs__notes li { margin-bottom: 3px; }
.qs__notes a { color: #426590; font-weight: 700; }
.qs__rev { margin: 6px 0 0; color: #555; font-size: 12px; }

@media (max-width: 1199.98px) {
    .qs__tablewrap { display: none; }
    .qs__cards { display: block; margin: 0 2%; }
}


/* Opciones con formato del editor (párrafos, listas, enlaces) dentro de celdas y tarjetas. */
.qs__opt p, .qs__card-opt p { margin: 0 0 4px; }
.qs__opt p:last-child, .qs__card-opt p:last-child { margin-bottom: 0; }
.qs__opt ul, .qs__opt ol, .qs__card-opt ul, .qs__card-opt ol { margin: 2px 0 4px; padding-left: 16px; }
.qs__opt a, .qs__card-opt a { color: #426590; text-decoration: underline; }
