.whatsapp-menu {
    position: fixed;
    inset: auto;
    z-index: 20000;
    margin: 0;
    padding: 16px;
    width: 320px;
    max-width: calc(100vw - 24px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #d6e7e4;
    border-radius: 18px;
    background: #fffdf8;
    color: #153b3e;
    box-shadow: 0 12px 40px #12383b33;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    text-align: left;
}
.whatsapp-menu[hidden] { display: none !important; }
.whatsapp-menu__title { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.whatsapp-menu__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.whatsapp-menu__contact { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 60px; border-radius: 10px; text-decoration: none; color: inherit; background: #eff6f1; }
.whatsapp-menu__contact > i { font-size: 24px; color: #168648; }
.whatsapp-menu__contact > span:first-of-type { min-width: 0; flex: 1; }
.whatsapp-menu__contact strong, .whatsapp-menu__contact small { display: block; overflow-wrap: anywhere; }
.whatsapp-menu__contact small { margin-top: 2px; font-size: 12px; }
.whatsapp-menu__contact:hover { background: #dceee4; }
.whatsapp-menu__contact:focus-visible { outline: 3px solid #009fa5; outline-offset: 2px; }
[data-whatsapp-quote][aria-expanded="true"] { outline: 2px solid currentColor; outline-offset: 3px; }

/* Lista de cotización (quote.js). Los botones solo aparecen cuando el módulo está listo. */
.quote-add { display: none; }
.has-quote-list .quote-add { display: inline-flex; }
.product-card--quotable { display: flex; flex-direction: column; }
.product-card--quotable .product-card__link { flex: 1 1 auto; height: auto; }
.quote-add--card { align-self: flex-start; align-items: center; margin: 0.9rem 0.25rem 0; padding: 0.55rem 0.95rem; gap: 0.5rem; color: var(--primary-deep); background: var(--secondary); border: 1px solid var(--border); border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; cursor: pointer; transition: color 160ms ease, background 160ms ease, border-color 160ms ease; }
.quote-add--card:hover { color: var(--white); background: var(--primary); border-color: var(--primary); }
.quote-add--card:focus-visible, .quote-fab:focus-visible, .quote-dialog :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.quote-fab { position: fixed; z-index: 50; right: 1.4rem; bottom: 5.6rem; display: flex; align-items: center; min-height: 3.2rem; padding: 0.4rem 0.45rem 0.4rem 1rem; gap: 0.6rem; color: var(--white); background: var(--primary-deep); border: 2px solid var(--white); border-radius: var(--radius-pill); box-shadow: var(--shadow-soft); font: 700 0.78rem/1 var(--font-sans); cursor: pointer; }
.quote-fab[hidden] { display: none; }
.quote-fab__count { display: grid; min-width: 2rem; height: 2rem; padding: 0 0.45rem; place-items: center; color: var(--primary-deep); background: var(--secondary); border-radius: var(--radius-pill); font-size: 0.8rem; }
.quote-fab.is-bumped { animation: quote-bump 420ms var(--ease-out); }
@keyframes quote-bump { 45% { transform: scale(1.1); } }

.quote-dialog { width: min(32rem, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; color: var(--text); background: var(--white); border: 0; border-radius: 1.5rem 0 0 1.5rem; box-shadow: var(--shadow-soft); font-family: var(--font-sans); }
.quote-dialog::backdrop { background: rgba(9, 31, 84, 0.45); }
html.quote-is-open { overflow: hidden; }
.quote-dialog__panel { display: flex; height: 100%; padding: 1.5rem; flex-direction: column; gap: 1rem; overflow-y: auto; overscroll-behavior: contain; }
.quote-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.quote-dialog__header .eyebrow { display: block; margin-bottom: 0.4rem; color: var(--primary); font-size: 0.66rem; }
.quote-dialog__header h2 { margin: 0; font-size: 2.2rem; line-height: 1; }
.quote-dialog__close { display: grid; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; place-items: center; color: var(--primary-deep); background: var(--surface); border: 0; border-radius: 50%; cursor: pointer; }
.quote-dialog__intro { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.quote-list { display: grid; margin: 0; padding: 0; gap: 0.75rem; list-style: none; }
.quote-list[hidden], .quote-empty[hidden], .quote-dialog__footer[hidden], .quote-total[hidden] { display: none; }
.quote-item { display: grid; padding: 0.9rem; grid-template-columns: 4rem minmax(0, 1fr) auto; grid-template-areas: "image info total" "image controls controls"; gap: 0.5rem 0.9rem; background: var(--surface); border-radius: 1rem; }
.quote-item > img, .quote-item__placeholder { grid-area: image; width: 4rem; height: 4rem; object-fit: cover; background: var(--white); border-radius: 0.75rem; }
.quote-item__placeholder { display: grid; place-items: center; color: var(--muted); }
.quote-item__info { display: grid; min-width: 0; grid-area: info; gap: 0.15rem; }
.quote-item__info strong { font-size: 0.9rem; line-height: 1.3; }
.quote-item__info small { color: var(--muted); font-size: 0.72rem; overflow-wrap: anywhere; }
.quote-item__subtotal { grid-area: total; font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.quote-item__controls { display: flex; flex-wrap: wrap; align-items: center; grid-area: controls; gap: 0.5rem; }
.quote-qty { display: inline-flex; align-items: center; overflow: hidden; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill); }
.quote-qty button { width: 2.3rem; height: 2.3rem; color: var(--primary-deep); background: none; border: 0; font-size: 1.1rem; cursor: pointer; }
.quote-qty input { width: 3.6rem; height: 2.3rem; padding: 0; color: var(--text); text-align: center; background: transparent; border: 0; font: 700 0.85rem var(--font-sans); -moz-appearance: textfield; appearance: textfield; }
.quote-qty input::-webkit-outer-spin-button, .quote-qty input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.quote-item select { height: 2.3rem; padding: 0 0.7rem; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill); font: 0.75rem var(--font-sans); }
.quote-item__unit { color: var(--muted); font-size: 0.75rem; }
.quote-item__remove { margin-left: auto; padding: 0.3rem 0.2rem; color: #a12645; background: none; border: 0; font: 700 0.72rem var(--font-sans); text-decoration: underline; cursor: pointer; }
.quote-empty { padding: 2rem 0; color: var(--muted); text-align: center; }
.quote-empty p { margin-bottom: 1rem; }
.quote-dialog__footer { display: grid; margin-top: auto; padding-top: 1rem; gap: 0.8rem; border-top: 1px solid var(--border); }
.quote-form { display: grid; gap: 0.6rem; }
.quote-field { display: grid; gap: 0.3rem; font-size: 0.72rem; font-weight: 700; }
.quote-field input, .quote-field textarea { width: 100%; padding: 0.65rem 0.8rem; color: var(--text); background: var(--white); border: 1px solid var(--border); border-radius: 0.75rem; font: 400 0.85rem var(--font-sans); resize: vertical; }
.quote-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.quote-total { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; gap: 0.3rem 0.5rem; font-size: 0.85rem; }
.quote-total strong { font-size: 1.1rem; }
.quote-total small { flex-basis: 100%; color: var(--muted); font-size: 0.7rem; }
.quote-send-title { margin: 0; font-size: 0.75rem; font-weight: 700; }
.quote-contacts { display: grid; gap: 0.5rem; }
.quote-contact { display: flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: 0.6rem 1rem; gap: 0.6rem; color: var(--white); background: #178b4e; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.quote-contact:hover { color: var(--white); background: #0f733f; }
.quote-contact i { font-size: 1.2rem; }
.quote-status { margin: 0; color: var(--primary-deep); font-size: 0.78rem; line-height: 1.45; }
.quote-status:empty { display: none; }
.quote-clear { justify-self: center; padding: 0.3rem; color: var(--muted); background: none; border: 0; font: 0.72rem var(--font-sans); text-decoration: underline; cursor: pointer; }
.quote-announcer { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 600px) {
    .quote-fab { right: 0.8rem; bottom: 4.9rem; padding-left: 0.8rem; }
    .quote-fab > span { display: none; }
    .quote-dialog { width: 100vw; border-radius: 0; }
    .quote-dialog__panel { padding: 1.1rem; }
    .quote-item { grid-template-columns: 3.2rem minmax(0, 1fr) auto; }
    .quote-item > img, .quote-item__placeholder { width: 3.2rem; height: 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .quote-fab.is-bumped { animation: none; }
}
