.recx-fast-order {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    font-family: inherit;
}

.recx-fast-order > h2 {
    display: none;
}

.recx-fast-order > p {
    margin: 0 0 16px;
    color: #475569;
    font-size: 15px;
}

.recx-fast-order > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.recx-fast-order input[type="search"] {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #172033;
    font-size: 16px;
    box-sizing: border-box;
}

.recx-fast-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.recx-fast-product {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    min-width: 0;
}

.recx-fast-product h3 {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.recx-fast-price {
    font-size: 14px;
    line-height: 1.5;
}

.recx-fast-price .amount {
    font-weight: 600;
}

@media (max-width: 600px) {
    .recx-fast-products {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .recx-fast-product {
        padding: 12px 14px;
    }

    .recx-fast-product h3 {
        margin-bottom: 6px;
    }
}
.recx-fast-product[hidden],
.recx-fast-empty[hidden] {
    display: none !important;
}

.recx-fast-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    margin-bottom: 12px;
    scrollbar-width: thin;
}

.recx-fast-category {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
}

.recx-fast-category.is-active {
    background: #164e63;
    border-color: #164e63;
    color: #fff;
}

.recx-fast-empty {
    padding: 16px;
    color: #475569;
    text-align: center;
}

@media (max-width: 600px) {
    .recx-fast-category {
        min-height: 44px;
    }
}
/* RECX-MVP-FAST-01: controles de cantidad */

.recx-fast-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.recx-fast-minus,
.recx-fast-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #164e63;
    font-size: 23px;
    font-weight: 600;
    cursor: pointer;
    touch-action: manipulation;
}

.recx-fast-plus {
    background: #164e63;
    border-color: #164e63;
    color: #fff;
}

.recx-fast-qty {
    min-width: 36px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #164e63;
    line-height: 1.2;
}

.recx-fast-unavailable {
    color: #475569;
    font-size: 14px;
}

.recx-fast-minus:focus-visible,
.recx-fast-plus:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 2px;
}
/* RECX-MVP-FAST-01-B113D1: resumen compacto */

.recx-fast-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    margin: 18px 0;
    border: 1px solid #dce6ed;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(22, 78, 99, 0.07);
}

.recx-fast-summary-details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.recx-fast-summary-details strong {
    font-size: 15px;
    color: #164e63;
}

.recx-fast-summary-count {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #164e63;
    font-variant-numeric: tabular-nums;
}

.recx-fast-summary-total {
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    color: #164e63;
}

.recx-fast-summary-usd {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
}

.recx-fast-confirm {
    min-height: 44px;
    padding: 10px 15px;
    border: 0;
    border-radius: 10px;
    background: #164e63;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 3px 9px rgba(22, 78, 99, 0.15);
}

.recx-fast-confirm:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

.recx-fast-minus:not(:disabled),
.recx-fast-plus:not(:disabled) {
    box-shadow: 0 2px 5px rgba(22, 78, 99, 0.10);
}

.recx-fast-minus:disabled,
.recx-fast-plus:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .recx-fast-order {
        padding-bottom: 165px;
    }

    .recx-fast-summary {
        position: fixed;
        z-index: 100;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin: 0;
        padding: 9px 12px;
        border-radius: 15px;
        box-shadow: 0 5px 25px rgba(15, 23, 42, 0.18);
    }

    .recx-fast-summary-details {
        gap: 2px;
    }

    .recx-fast-summary-total {
        font-size: 18px;
    }

    .recx-fast-confirm {
        width: 100%;
    }
}
/* RECX-E37D: Miniaturas de productos */
.recx-fast-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 0 0 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.recx-fast-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}
/* RECX-E37H: Dos columnas moviles */
@media (min-width: 360px) and (max-width: 600px) {

    .recx-fast-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .recx-fast-product {
        min-width: 0;
        padding: 11px;
    }

    .recx-fast-product-image {
        width: 72px;
        height: 72px;
        margin-bottom: 9px;
    }

    .recx-fast-product h3 {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 7px;
        overflow-wrap: break-word;
    }

    .recx-fast-price {
        font-size: 12px;
        line-height: 1.5;
    }

    .recx-fast-quantity {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        margin-top: 11px;
    }

    .recx-fast-minus,
    .recx-fast-plus {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 22px;
        border-radius: 10px;
    }

    .recx-fast-qty {
        min-width: 20px;
        font-size: 18px;
        font-weight: 700;
    }
}
/* RECX-E37J: Refinamiento responsive */

/* Tarjetas equilibradas */
.recx-fast-products {
    align-items: stretch;
}

.recx-fast-product {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.recx-fast-product-image {
    align-self: center;
}

.recx-fast-product h3 {
    width: 100%;
    overflow-wrap: anywhere;
}

.recx-fast-quantity {
    margin-top: auto;
    padding-top: 12px;
}

/* Escritorio: aprovechar el espacio disponible */
@media (min-width: 901px) {
    .recx-fast-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1200px) {
    .recx-fast-products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Moviles: dos columnas con margenes y controles equilibrados */
@media (min-width: 360px) and (max-width: 600px) {
    .recx-fast-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 0 4px;
    }

    .recx-fast-product {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .recx-fast-product-image {
        width: 76px;
        height: 76px;
        margin: 0 auto 10px;
    }

    .recx-fast-product h3 {
        font-size: 14px;
        line-height: 1.35;
        min-height: 38px;
        margin-bottom: 6px;
    }

    .recx-fast-price {
        font-size: 12px;
        line-height: 1.5;
    }

    .recx-fast-quantity {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        padding-top: 12px;
    }

    .recx-fast-minus,
    .recx-fast-plus {
        width: 40px;
        height: 40px;
        min-width: 40px;
        flex-shrink: 0;
    }

    .recx-fast-qty {
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
        font-size: 18px;
    }
}
/* RECX-E37L: Refinamiento visual movil */
@media (min-width: 360px) and (max-width: 600px) {

    .recx-fast-products {
        gap: 12px;
        padding: 4px 6px 8px;
    }

    .recx-fast-product {
        padding: 13px 11px 14px;
        border-color: #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(22, 78, 99, .08);
    }

    .recx-fast-product-image {
        margin: 2px auto 13px;
    }

    .recx-fast-product h3 {
        margin-bottom: 9px;
    }

    .recx-fast-price {
        line-height: 1.65;
    }

    .recx-fast-quantity {
        margin-top: auto;
        padding-top: 15px;
        gap: 6px;
    }

    .recx-fast-summary {
        border-color: #dce6ed;
        box-shadow: 0 5px 18px rgba(15, 23, 42, .15);
    }
}