/* ==========================================================================
   Lista de precios mayorista — pagina publica /frutos-secos-por-mayor-santiago
   Estilos propios y con prefijo .ws- para no chocar con el tema legado de
   public/users/ que carga el layout de la tienda.
   ========================================================================== */

.ws-page {
    padding: 34px 0 60px;
    color: #2f3640;
    font-family: 'Roboto', Arial, sans-serif;
}

/* Cabecera --------------------------------------------------------------- */
.ws-head {
    margin-bottom: 22px;
}

.ws-head h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #2f3640;
}

.ws-lead {
    font-size: 15px;
    color: #5b6472;
    margin: 0 0 12px;
    max-width: 620px;
}

.ws-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: #6b7280;
}

.ws-meta .fa {
    color: #f0a92e;
    margin-right: 5px;
}

/* Como comprar ----------------------------------------------------------- */
.ws-howto {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: #fff8ec;
    border: 1px solid #f5e2c0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.ws-howto > div:first-child {
    flex: 1 1 320px;
}

.ws-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.ws-btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
}

.ws-btn--wsp {
    background: #25d366;
    color: #fff;
}

.ws-btn--wsp:hover,
.ws-btn--wsp:focus {
    background: #1eb955;
    color: #fff;
    text-decoration: none;
}

/* Accion principal de la tienda mayorista. El verde de .ws-btn--wsp es de
   WhatsApp y solo se usa para ir a WhatsApp: en un boton que envia un formulario
   promete algo que no hace. */
.ws-btn--primary {
    background: #f0a92e;
    color: #2f3640;
}

.ws-btn--primary:hover,
.ws-btn--primary:focus {
    background: #dd991f;
    color: #2f3640;
    text-decoration: none;
}

.ws-btn--ghost {
    background: #fff;
    border-color: #d8dde6;
    color: #4b5563;
}

.ws-btn--ghost:hover,
.ws-btn--ghost:focus {
    background: #f2f5f9;
    color: #2f3640;
    text-decoration: none;
}

/* Buscador --------------------------------------------------------------- */
.ws-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ws-search input[type='text'] {
    flex: 1 1 320px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    font-size: 14px;
    color: #2f3640;
}

.ws-search input[type='text']:focus {
    outline: none;
    border-color: #f0a92e;
    box-shadow: 0 0 0 3px rgba(240, 169, 46, 0.15);
}

.ws-search button {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: #2f3640;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
}

.ws-search button:hover {
    background: #1f242b;
}

.ws-clear {
    font-size: 13px;
    color: #6b7280;
}

.ws-count {
    font-size: 13px;
    color: #8a94a6;
    margin: 0 0 20px;
}

/* Grupos por categoria --------------------------------------------------- */
.ws-group {
    margin-bottom: 28px;
}

.ws-group h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f0a92e;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f5e2c0;
}

.ws-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
}

.ws-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ws-table thead th {
    background: #f7f9fc;
    border-bottom: 1px solid #e6e9ef;
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a94a6;
    font-weight: 700;
    white-space: nowrap;
}

.ws-table tbody td {
    padding: 10px 12px;
    border-top: 1px solid #eef1f5;
    vertical-align: middle;
}

.ws-table tbody tr:hover td {
    background: #fffaf1;
}

.ws-col-code,
.ws-col-unit,
.ws-col-stock {
    white-space: nowrap;
}

.ws-table thead th.ws-col-price {
    text-align: right;
}

.ws-col-price {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.ws-code {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eef0f4;
    color: #77808f;
    font-size: 11.5px;
    font-weight: 600;
}

.ws-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.ws-product img,
.ws-thumb-empty {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 6px;
    border: 1px solid #e6e9ef;
    background: #f1f3f7;
    object-fit: cover;
}

.ws-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #c2c8d4;
}

.ws-name {
    font-weight: 600;
    line-height: 1.3;
}

.ws-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 11px;
    font-size: 11.5px;
    font-weight: 600;
}

.ws-tag--ok {
    background: #e8f7ee;
    color: #1e7f45;
}

.ws-tag--out {
    background: #fdeaea;
    color: #a72525;
}

/* Estado vacio ----------------------------------------------------------- */
.ws-empty {
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    color: #8a94a6;
}

.ws-empty .fa {
    font-size: 36px;
    color: #d3d8e0;
    margin-bottom: 12px;
}

/* Descarga CSV ----------------------------------------------------------- */
.ws-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    background: #2f3640;
    color: #fff;
    border-radius: 10px;
    padding: 22px 24px;
    margin-top: 30px;
}

.ws-download > div:first-child {
    flex: 1 1 300px;
}

.ws-download strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.ws-download p {
    margin: 0;
    font-size: 13.5px;
    color: #b9c0cc;
}

.ws-download form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    margin-left: auto;
}

.ws-download input[type='email'] {
    height: 42px;
    min-width: 240px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    color: #2f3640;
}

.ws-download button {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: #f0a92e;
    color: #2f3640;
    font-size: 13.5px;
    font-weight: 700;
}

.ws-download button:hover {
    background: #dd991f;
}

/* Pantallas chicas ------------------------------------------------------- */
@media (max-width: 767px) {
    .ws-head h1 {
        font-size: 23px;
    }

    .ws-actions,
    .ws-download form {
        margin-left: 0;
        width: 100%;
    }

    .ws-download input[type='email'] {
        flex: 1 1 100%;
        min-width: 0;
    }
}

/* ==========================================================================
   Conmutador lista / catalogo y vista de fichas
   ========================================================================== */

.ws-viewswitch {
    display: inline-flex;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #fff;
}

.ws-viewswitch a {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #5b6472;
    text-decoration: none;
}

.ws-viewswitch a + a {
    border-left: 1px solid #e6e9ef;
}

.ws-viewswitch a:hover {
    background: #f4f6fa;
    color: #2f3640;
    text-decoration: none;
}

.ws-viewswitch a.is-on {
    background: #2f3640;
    color: #fff;
}

.ws-viewswitch .fa {
    margin-right: 6px;
}

.ws-dash {
    color: #c2c8d4;
}

/* Fichas con foto, al estilo del catalogo impreso -------------------------- */
.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.ws-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 14px 12px 12px;
    text-align: center;
}

.ws-card-img {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 10px;
}

.ws-card-img img,
.ws-card-img .ws-thumb-empty {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #eef1f5;
    background: #f7f8fa;
}

.ws-card-img .ws-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.ws-card-out {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    background: #fdeaea;
    color: #a72525;
    border-radius: 11px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ws-card h3 {
    font-size: 14.5px;
    font-weight: 700;
    margin: 8px 0 10px;
    line-height: 1.3;
    color: #2f3640;
}

.ws-card-prices {
    width: 100%;
    border-collapse: collapse;
}

.ws-card-prices th {
    font-size: 11px;
    font-weight: 600;
    color: #8a94a6;
    padding: 2px 4px;
    text-align: center;
}

.ws-card-prices td {
    font-size: 13px;
    font-weight: 700;
    color: #2f3640;
    padding: 2px 4px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .ws-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .ws-card-img,
    .ws-card-img img,
    .ws-card-img .ws-thumb-empty {
        width: 96px;
        height: 96px;
    }
}

.ws-download-error {
    flex: 1 1 100%;
    margin: 8px 0 0;
    font-size: 13px;
    color: #ffc9c9;
}

/* ==========================================================================
   Formato y detalle desplegable
   ========================================================================== */

.ws-col-unit {
    white-space: nowrap;
    color: #5b6472;
}

/* El nombre del producto abre el detalle: los productos solo mayoristas no
   tienen ficha publica, asi que la descripcion se muestra aqui mismo. */
a.ws-product,
a.ws-product:hover,
a.ws-product:focus {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.ws-product:hover .ws-name {
    color: #f0a92e;
}

.ws-caret {
    margin-left: 6px;
    color: #b4bac6;
    transition: transform 0.15s ease;
}

[aria-expanded='true'] .ws-caret {
    transform: rotate(180deg);
}

.ws-detail-row > td {
    padding: 0 !important;
    border-top: 0 !important;
}

.ws-detail {
    padding: 12px 16px 16px 62px;
    background: #fbfcfe;
    border-top: 1px dashed #e6e9ef;
    font-size: 13.5px;
    line-height: 1.6;
    color: #5b6472;
}

.ws-detail p {
    margin: 0 0 6px;
}

.ws-detail p:last-child {
    margin-bottom: 0;
}

.ws-card h3 a,
.ws-card h3 a:hover,
.ws-card h3 a:focus {
    color: inherit;
    text-decoration: none;
}

.ws-card h3 a:hover {
    color: #f0a92e;
}

.ws-card-unit {
    margin: -6px 0 8px;
    font-size: 12px;
    color: #8a94a6;
}

.ws-detail--card {
    padding: 10px 4px 0;
    text-align: left;
    background: none;
    border-top: 1px solid #eef1f5;
    margin-top: 10px;
    font-size: 12.5px;
}

/* ==========================================================================
   Boton "Agregar" de la lista (PRD D14)
   ========================================================================== */

.ws-add {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.ws-add input[type="number"] {
    width: 58px;
    padding: 4px 6px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    font-size: 13px;
    text-align: right;
}

/* Naranjo de la marca, no el azul generico del panel: este boton vive en la
   tienda, donde el acento es #f0a92e (mismo que .ws-download y los titulos de
   categoria). */
.ws-add button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border: 0;
    border-radius: 6px;
    background: #f0a92e;
    color: #2f3640;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ws-add button:hover,
.ws-add button:focus {
    background: #dd991f;
    color: #2f3640;
}

.ws-add input[type="number"]:focus {
    outline: none;
    border-color: #f0a92e;
    box-shadow: 0 0 0 3px rgba(240, 169, 46, .15);
}

.ws-col-add {
    white-space: nowrap;
}

/* En la vista de tarjetas el boton va debajo del precio, a lo ancho. */
.ws-card .ws-add {
    margin-top: 10px;
}

.ws-card .ws-add button {
    flex: 1;
    justify-content: center;
}

/* ==========================================================================
   Checkout mayorista
   ========================================================================== */

.ws-empty {
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
}

.ws-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.ws-alert--warn {
    background: #fff4e0;
    border: 1px solid #f0d9a8;
    color: #96620a;
}

.ws-alert p { margin: 0 0 4px; }

.ws-costs {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 20px 0;
}

.ws-costs h2 { margin: 0 0 12px; font-size: 17px; }

.ws-costs dl {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 20px;
    margin: 0;
}

.ws-costs dt { font-weight: 400; color: #5b6472; }
.ws-costs dd { margin: 0; text-align: right; }

.ws-costs .ws-costs-total {
    font-weight: 700;
    font-size: 17px;
    padding-top: 8px;
    border-top: 1px solid #e6e9ef;
}

/* El flete no va incluido: el aviso tiene que leerse, no esconderse. */
.ws-costs-note {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: #f4f6fa;
    border-left: 3px solid #FE980F;
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #2f3640;
}

.ws-checkout-form fieldset {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
}

.ws-checkout-form legend {
    width: auto;
    padding: 0 8px;
    margin: 0;
    border: 0;
    font-size: 15px;
    font-weight: 600;
}

.ws-checkout-form label { display: block; margin-top: 10px; font-weight: 500; }

.ws-checkout-form input[type="text"],
.ws-checkout-form select {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
}

.ws-checkout-form input[type="radio"],
.ws-checkout-form input[type="checkbox"] { margin-right: 6px; }

.ws-accept {
    display: block;
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff8ec;
    border: 1px solid #f0d9a8;
    border-radius: 6px;
    font-weight: 400;
    line-height: 1.5;
}

.ws-help { margin: 6px 0 0; font-size: 13px; color: #5b6472; }

/* Guardar los datos de facturacion para la proxima compra. Sin el recuadro
   calido de .ws-accept: aquello es una condicion que hay que aceptar, esto es
   una comodidad opcional y no debe pedir la misma atencion. */
.ws-remember {
    display: block;
    margin-top: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.ws-remember-help {
    margin-left: 22px;
}

.ws-remember-help a {
    color: #b5760a;
    font-weight: 600;
}

.ws-checkout-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.ws-checkout-actions button[disabled] { opacity: .5; cursor: not-allowed; }

/* Sin stock: se explica en vez de dejar un boton que despues rechaza el pedido. */
.ws-add-out {
    display: inline-block;
    margin: 8px 0 0;
    font-size: 13px;
    color: #96620a;
}

.ws-add-stock {
    margin: 4px 0 0;
    font-size: 12px;
    color: #8a94a6;
}

/* Motivo por el que el boton de confirmar esta apagado. */
.ws-blocked {
    background: #fff4e0;
    border: 1px solid #f0d9a8;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    width: 100%;
    color: #96620a;
}

.ws-blocked ul { margin: 6px 0 0 18px; }

.ws-checkout-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

.ws-checkout-actions { flex-direction: column; align-items: flex-start; }

/* Mis datos de facturacion */
.ws-billing-list { display: grid; gap: 14px; margin-bottom: 20px; }

.ws-billing-card {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    padding: 16px 20px;
}

.ws-billing-card h2 { margin: 0 0 12px; font-size: 17px; }
.ws-billing-card header { display: flex; align-items: center; gap: 10px; }
.ws-billing-meta { margin: 8px 0 12px; color: #5b6472; font-size: 14px; line-height: 1.5; }

.ws-billing-card label { display: block; margin-top: 10px; font-weight: 500; }

.ws-billing-card input[type="text"] {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
}

.ws-billing-card details summary { cursor: pointer; color: #b5760a; margin-bottom: 8px; }
.ws-billing-card button { margin-top: 12px; }
.ws-billing-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-billing-actions form { margin: 0; }

/* ==========================================================================
   Barra de categorias
   ==========================================================================
   Se desplaza en horizontal en vez de envolver: con 10 categorias, envolver se
   come la pantalla del telefono antes de que se vea un producto. */

.ws-cats {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 10px;
    margin-bottom: 6px;
    /* Sin barra visible: el gesto es el scroll, no arrastrar una barra. */
    scrollbar-width: none;
}

.ws-cats::-webkit-scrollbar {
    display: none;
}

.ws-cats a {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid #e6e9ef;
    border-radius: 999px;
    background: #fff;
    color: #2f3640;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.ws-cats a:hover,
.ws-cats a:focus {
    border-color: #f0a92e;
    color: #2f3640;
}

/* Mismo color que los titulos de categoria (.ws-group h2): la pastilla elegida y
   el titulo del grupo que aparece debajo son la misma idea. */
.ws-cats a.is-on {
    background: #f0a92e;
    border-color: #f0a92e;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 767px) {
    /* Pegada arriba al hacer scroll: cambiar de categoria sin volver al inicio. */
    .ws-cats {
        position: sticky;
        top: 62px;
        z-index: 900;
        background: #fff;
        padding-top: 8px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .04);
    }
}

/* En telefono el formulario de descarga forzaba el ancho del documento: el input
   tenia min-width 240px y, con el boton al lado, no cabia en 390px. Un solo
   elemento que no entra ensancha toda la pagina y corta los titulos a la
   derecha. */
@media (max-width: 767px) {
    .ws-download {
        flex-direction: column;
        align-items: stretch;
    }

    .ws-download form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .ws-download input[type='email'] {
        min-width: 0;
        width: 100%;
    }

    .ws-download button {
        width: 100%;
    }
}

/* Pasos para comprar por mayor. El pedido se cierra en el sitio, asi que el
   bloque explica el flujo real en vez de mandar a WhatsApp. */
.ws-steps {
    margin: 8px 0 0;
    padding-left: 20px;
    line-height: 1.6;
}

.ws-steps li {
    margin-bottom: 4px;
}

.ws-howto-note {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: #5b6472;
}

/* Buscador y acciones sobre la lista en una sola fila: descargar y ver el pedido
   son acciones sobre la lista, no parte de la explicacion de como comprar. */
.ws-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ws-toolbar .ws-search {
    flex: 1 1 320px;
    margin-bottom: 0;
}

.ws-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 767px) {
    .ws-toolbar-actions {
        margin-left: 0;
        width: 100%;
    }

    .ws-toolbar-actions .ws-btn {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* Pagina del pedido ya realizado -------------------------------------------- */
.ws-status {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 1.5;
}

.ws-status--ok {
    background: #e8f7ee;
    border: 1px solid #bfe6cd;
    color: #1e7f45;
}

.ws-status--wait {
    background: #fff4e0;
    border: 1px solid #f0d9a8;
    color: #96620a;
}

.ws-order-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
}

/* Sin esto una columna de grid no baja de su contenido y la tabla del pedido
   se sale de la tarjeta en vez de dejar que .ws-table-wrap la desplace. */
.ws-order-grid > * {
    min-width: 0;
}

/* Como pagar y el formulario son dos tarjetas pero una sola columna: si entran
   al grid por separado quedan tres columnas y la tabla del pedido se queda sin
   ancho. */
.ws-order-payment {
    display: grid;
    gap: 16px;
    align-items: start;
}

.ws-order-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 20px;
    margin: 14px 0 0;
}

.ws-order-summary dt {
    font-weight: 400;
    color: #5b6472;
}

.ws-order-summary dd {
    margin: 0;
    text-align: right;
}

/* Aviso de pedido esperando transferencia. Va arriba de todo porque cambia lo que
   el comprador puede hacer en esta pagina. */
.ws-pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid #f0d9a8;
    border-left: 4px solid #f0a92e;
    border-radius: 10px;
    background: #fff8ec;
    font-size: 14px;
    line-height: 1.5;
    color: #7a5307;
}

.ws-pending > div {
    flex: 1 1 320px;
}

/* ---- Instrucciones de transferencia y aviso de duplicado ---------------- */

/* El numero de pedido es el dato que hay que copiar en la descripcion de la
   transferencia: se muestra como un bloque aparte para que no se pierda dentro
   del parrafo. */
.ws-transfer-reference {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px dashed #f0a92e;
    border-radius: 8px;
    background: #fff8ec;
}

.ws-transfer-reference span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #96620a;
}

.ws-transfer-reference strong {
    font-size: 20px;
    color: #2f3640;
}

.ws-field-hint {
    display: block;
    margin: -6px 0 12px;
    font-size: 12px;
    color: #8a94a6;
}

.ws-duplicate-warning {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #f0d9a8;
    border-left: 4px solid #f0a92e;
    border-radius: 8px;
    background: #fff8ec;
    color: #96620a;
}

.ws-duplicate-warning p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.5;
}

.ws-duplicate-warning p:last-child {
    margin-bottom: 0;
}

.ws-duplicate-warning a {
    color: #b5760a;
    text-decoration: underline;
}

.ws-duplicate-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 0 16px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #2f3640;
}

.ws-duplicate-check input {
    width: auto;
    margin: 2px 0 0;
    flex: 0 0 auto;
}

/* ==========================================================================
   Selector de giro del SII
   ==========================================================================
   674 codigos oficiales. El <select> nativo queda de respaldo (y es lo que se
   envia); esto es el buscador que se pinta encima. */

.giro-select {
    position: relative;
}

.giro-combo {
    position: relative;
}

.giro-combo-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
    color: #8a94a6;
    text-align: left;
    line-height: 1.4;
}

.giro-combo.has-value .giro-combo-toggle {
    color: #2f3640;
}

.giro-combo-toggle:hover,
.giro-combo-toggle:focus {
    border-color: #f0a92e;
    outline: none;
}

.giro-combo-caret {
    flex: 0 0 auto;
    color: #8a94a6;
}

.giro-combo-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 34, 59, 0.14);
    overflow: hidden;
}

.giro-combo-search {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #e6e9ef;
    outline: none;
}

.giro-combo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.giro-combo-item {
    padding: 9px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f2f4f7;
}

.giro-combo-item:hover,
.giro-combo-item[aria-selected='true'] {
    background: #fff8ec;
}

.giro-combo-item-name {
    display: block;
    color: #2f3640;
    line-height: 1.4;
}

/* El rubro desambigua nombres parecidos: hay varios "VENTA AL POR MAYOR DE...". */
.giro-combo-item-section {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #8a94a6;
}

.giro-combo-more,
.giro-combo-empty {
    margin: 0;
    padding: 10px 14px;
    font-size: 13px;
    color: #8a94a6;
    background: #fafbfc;
}
