.mq-add-wrap{display:block}
.woocommerce ul.products li.product .mq-add-wrap{margin:14px 16px 0}
.woocommerce ul.products li.product .mq-add-wrap .mq-add{margin:0}
.mq-single{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-top:20px}
.mq-single label{display:flex;flex-direction:column;font-weight:500;gap:4px}
.mq-qty{width:90px;padding:.6em;border:1px solid #d0d4e6;font:inherit}
.mq-view{font-weight:500}
.mq-toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);background:#2b3485;color:#fff;padding:.8em 1.2em;border-left:5px solid #fe2a33;z-index:999;max-width:90%}
.mq-toast a{color:#fff;text-decoration:underline;margin-left:.8em}
.mq-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:40px;align-items:start}
.mq-layout[hidden],.mq-itemsbox[hidden],.mq-empty[hidden],.mq-done[hidden],.mq-msg[hidden]{display:none}
.mq-row{display:grid;grid-template-columns:72px 1fr auto auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #d0d4e6}
.mq-row img{width:72px;height:72px;object-fit:cover;background:#eef0f8}
.mq-row a{font-weight:600;text-decoration:none}
.mq-row small{display:block;color:#5b6280}
.mq-row input{width:80px;padding:.5em;border:1px solid #d0d4e6;font:inherit}
.mq-rm{background:none;border:0;color:#a3321c;cursor:pointer;font:inherit;text-decoration:underline}
.mq-bulk{margin-top:28px;padding:22px;border:1px dashed #8a9aa8}
.mq-bulk h3{margin-top:0}
.mq-bulk textarea{width:100%;padding:.65em;border:1px solid #d0d4e6;font:inherit}
.mq-listinfo{color:#5b6280;margin-bottom:0}
.mq-form{background:#eef0f8;padding:26px;border-left:6px solid #fe2a33}
.mq-form h2{margin-top:0}
.mq-form label{display:block;font-weight:500}
.mq-form input,.mq-form textarea{display:block;width:100%;margin-top:4px;padding:.65em;border:1px solid #d0d4e6;font:inherit;background:#fff}
.mq-hp{position:absolute;left:-9999px}
.mq-msg{color:#a3321c;font-weight:500}
.mq-trade-wrap{max-width:640px}
/* live search */
.hd-search{position:relative}
.mq-suggest{position:absolute;left:0;right:0;top:100%;background:#fff;border:1px solid #d0d4e6;border-top:3px solid #fe2a33;z-index:60;min-width:320px;box-shadow:0 10px 24px rgba(29,45,59,.14)}
.mq-suggest a{display:flex;gap:10px;align-items:center;padding:8px 10px;text-decoration:none;border-bottom:1px solid #eef0f8}
.mq-suggest a:hover{background:#eef0f8}
.mq-suggest img{width:40px;height:40px;object-fit:cover}
.mq-suggest small{display:block;color:#5b6280}
.mq-suggest p{margin:0;padding:10px;color:#5b6280}
/* availability */
.mq-avail{display:inline-block;margin:10px 16px 0;padding:.15em .6em;font-size:.85rem;font-weight:600;border-left:4px solid}
.single-product .mq-avail{margin:0 0 12px}
.mq-avail-in{background:#e3f4e8;border-color:#2e8b4e;color:#1d5a33}
.mq-avail-ship{background:#fff4d1;border-color:#e0a800;color:#6b5200}
.mq-avail-req{background:#eef0f8;border-color:#5b6280;color:#3a4163}
.mq-sheet{margin-top:14px}
.mq-together{grid-column:1/-1;margin-top:20px}
/* whatsapp */
.mq-wa{position:fixed;right:20px;bottom:20px;z-index:90;display:flex;align-items:center;gap:8px;background:#1f9d55;color:#fff;padding:.75em 1.1em;border-radius:2em;text-decoration:none;font-weight:600;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.mq-wa:hover{background:#18864a;color:#fff}
@media(max-width:520px){.mq-wa span{display:none}.mq-wa{padding:.8em}}
@media(max-width:860px){.mq-layout{grid-template-columns:1fr}.mq-row{grid-template-columns:56px 1fr auto}.mq-row .mq-rm{grid-column:2/-1;justify-self:start}}

/* v2.2 */
.mq-tprice{margin:8px 16px 0;font-size:1.05rem}
.single-product .mq-tprice{margin:0 0 12px;font-size:1.3rem}
.mq-listsbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:18px}
.mq-listsbar select{padding:.6em;border:1px solid #d0d4e6;font:inherit;min-width:180px}
.mq-notify{margin-top:18px;padding:16px;border-left:5px solid #5b6280;background:#eef0f8}
.mq-notify input[type=email]{display:block;width:100%;max-width:320px;margin:4px 0 10px;padding:.6em;border:1px solid #d0d4e6;font:inherit}
.mq-equiv{grid-column:1/-1}
.mq-equiv p{max-width:80ch}
.mq-sample{margin-top:10px}

/* v2.3.1: aligned form buttons, card meta row */
.mq-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}
.mq-actions .button{flex:1 1 200px;min-width:0;margin:0!important;text-align:center;box-sizing:border-box}
.mq-actions .mq-wa-send{background:#3944a8;color:#fff}
.mq-actions .mq-wa-send:hover{background:#2b3485;color:#fff}
.mq-meta{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px;width:100%;box-sizing:border-box;margin:10px 0 0!important;padding:0 16px!important;float:none!important;position:static!important;background:none!important;border:0!important}
.mq-meta>*{margin:0!important;float:none!important;position:static!important;box-sizing:border-box}
.mq-meta .mq-avail,.mq-meta .mq-chip{display:inline-flex!important;align-items:center;min-height:26px;height:auto;padding:0 .65em!important;line-height:1.2!important;font-size:.82rem;white-space:nowrap;border-radius:2px;box-shadow:none;text-decoration:none}
.mq-meta .mq-chip{border:1px solid #d0d4e6;background:#eef0f8;color:#5b6280;font-weight:500}
.mq-meta .mq-chip:hover{border-color:#3944a8;color:#3944a8}
.mq-meta .mq-avail{font-weight:600;border-left-width:4px}

/* ===== v2.7 Specifications table (matches reference design) ===== */
.mq-specs-title{margin:26px 0 12px;font-size:1.05rem;font-weight:600;color:#1f2a44}
.mq-specs{clear:both;width:100%;max-width:100%;box-sizing:border-box;background:#fff;border:1px solid #e4e6ec;border-radius:14px;padding:12px 14px;box-shadow:0 1px 2px rgba(20,28,50,.04);margin:0 0 24px}
.mq-specs:focus-visible{outline:2px solid #3944a8;outline-offset:2px}
.mq-specs-scroll{max-height:420px;overflow:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#8b8d93 transparent;padding-right:4px}
.mq-specs-scroll::-webkit-scrollbar{width:8px;height:8px}
.mq-specs-scroll::-webkit-scrollbar-thumb{background:#8b8d93;border-radius:8px}
.mq-specs-scroll::-webkit-scrollbar-track{background:transparent}
.mq-specs-table{width:100%;min-width:360px;border-collapse:collapse;border:0;margin:0;font-size:1rem;color:#1f2430;background:transparent}
.mq-specs-table th,.mq-specs-table td{padding:16px 8px;text-align:left;border:0;border-bottom:1px solid #dcdde2;vertical-align:middle;background:transparent;line-height:1.3}
.mq-specs-table thead th{position:sticky;top:0;z-index:1;background:#fff;font-weight:400;color:#1f2430;border-bottom:1px solid #dcdde2;padding-top:12px}
.mq-specs-table tbody tr:nth-child(odd) td{background:#f5f5f7}
.mq-specs-table tbody tr:nth-child(even) td{background:#fff}
.mq-specs-table tbody tr{transition:background .2s}
.mq-specs-table tbody tr:hover td{background:#eceefa}
.mq-specs-table td:first-child{padding-left:8px}

/* ===== v2.7 Product card animation (any theme) ===== */
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease;will-change:transform}
.woocommerce ul.products li.product:hover{transform:translateY(-6px);box-shadow:0 16px 34px rgba(43,52,133,.16)}
.woocommerce ul.products li.product a img,.woocommerce ul.products li.product img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.woocommerce ul.products li.product:hover a img,.woocommerce ul.products li.product:hover img{transform:scale(1.06)}
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,.woocommerce ul.products li.product .ast-loop-product__link{overflow:hidden}
.woocommerce ul.products li.product::after{content:"";display:block;height:3px;width:0;background:#fe2a33;transition:width .4s ease;margin-top:12px}
.woocommerce ul.products li.product:hover::after{width:100%}
.mq-add,.mq-add-wrap .mq-add{transition:transform .2s ease,box-shadow .2s ease,background-color .2s}
.mq-add:hover{transform:translateY(-2px);box-shadow:0 6px 14px rgba(57,68,168,.28)}
.mq-add:active{transform:scale(.97)}
.mq-add.mq-added{animation:mqPop .5s ease}
@keyframes mqPop{0%{transform:scale(1)}40%{transform:scale(1.12)}100%{transform:scale(1)}}
.mq-anim li.product{opacity:0;transform:translateY(24px)}
.mq-anim li.product.mq-in{opacity:1;transform:none;transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease}
.mq-anim li.product.mq-in:hover{transform:translateY(-6px)}
@media(max-width:600px){.mq-specs{padding:8px}.mq-specs-table th,.mq-specs-table td{padding:13px 6px}}
@media(prefers-reduced-motion:reduce){.woocommerce ul.products li.product,.woocommerce ul.products li.product img,.mq-add{transition:none!important;animation:none!important}.mq-anim li.product{opacity:1;transform:none}}

/* v2.7.1 display toggles (theme-neutral fallbacks for Astra/Elementor) */
body.mq-hide-meta .product_meta,body.mq-hide-meta .ast-single-product-meta,body.mq-hide-meta .posted_in,body.mq-hide-meta .tagged_as{display:none!important}
body.mq-hide-reviews #reviews,body.mq-hide-reviews .woocommerce-tabs .reviews_tab,body.mq-hide-reviews .woocommerce-Reviews{display:none!important}
body.mq-hide-desc .woocommerce-tabs .description_tab,body.mq-hide-desc #tab-description{display:none!important}
.single-product .mq-specs-title{margin-top:20px}

/* ===== v2.8 Midland brand colors (from logo), override any theme ===== */
:root{--mq-blue:#3a43a8;--mq-navy:#2b3485;--mq-red:#fe2a33;--mq-red-dark:#d91b24;--mq-tint:#eef0f8;--mq-line:#d0d4e6}

/* Primary buttons: Add to quote, request a sample, select options, submit, notify */
body .mq-add,
body .mq-add-wrap .mq-add,
body .woocommerce ul.products li.product .mq-add,
body .mq-form button[type=submit],
body .mq-notify button[type=submit],
body .mq-bulk .button,
body .mq-actions .button,
body .mq-sheet .button,
body .mq-catalog,
body.woocommerce ul.products li.product .button,
body .woocommerce ul.products li.product .button{
  background-color:var(--mq-blue)!important;color:#fff!important;border:2px solid var(--mq-blue)!important;
  border-radius:6px;font-weight:600;box-shadow:none;cursor:pointer;text-decoration:none;
  transition:background-color .2s,border-color .2s,transform .2s,box-shadow .2s;
}
body .mq-add:hover,body .mq-add:focus-visible,
body .mq-form button[type=submit]:hover,body .mq-notify button[type=submit]:hover,
body .mq-bulk .button:hover,body .mq-actions .button:hover,body .mq-sheet .button:hover,body .mq-catalog:hover,
body.woocommerce ul.products li.product .button:hover,body .woocommerce ul.products li.product .button:hover{
  background-color:var(--mq-red)!important;border-color:var(--mq-red)!important;color:#fff!important;
  box-shadow:0 6px 14px rgba(254,42,51,.30);
}
body .mq-add:focus-visible,body .mq-actions .button:focus-visible{outline:3px solid rgba(58,67,168,.35);outline-offset:2px}

/* Secondary: WhatsApp-send button on the quote page stays navy, hover red */
body .mq-actions .mq-wa-send{background-color:var(--mq-navy)!important;border-color:var(--mq-navy)!important}
body .mq-actions .mq-wa-send:hover{background-color:var(--mq-red)!important;border-color:var(--mq-red)!important}

/* Links */
body .mq-view,body .mq-row a,body .mq-toast a.mq-link{color:var(--mq-blue)!important;font-weight:600;text-decoration:none;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
body .mq-view:hover,body .mq-row a:hover{color:var(--mq-red)!important;border-bottom-color:var(--mq-red)}
body .mq-rm{color:var(--mq-red-dark)}

/* Inputs */
body .mq-qty,body .mq-form input,body .mq-form textarea,body .mq-notify input[type=email],body .mq-bulk textarea,body .mq-row input,body .mq-listsbar select{border:1px solid var(--mq-line);border-radius:6px;background:#fff;transition:border-color .2s,box-shadow .2s}
body .mq-qty:focus,body .mq-form input:focus,body .mq-form textarea:focus,body .mq-notify input[type=email]:focus,body .mq-bulk textarea:focus,body .mq-row input:focus{border-color:var(--mq-blue);box-shadow:0 0 0 3px rgba(58,67,168,.18);outline:0}

/* Panels */
.mq-form{background:var(--mq-tint);border-left:6px solid var(--mq-red)}
.mq-notify{background:var(--mq-tint);border-left:5px solid var(--mq-blue)}
.mq-bulk{border:1px dashed var(--mq-blue)}
.mq-toast{background:var(--mq-navy);border-left:5px solid var(--mq-red)}
.mq-suggest{border-top:3px solid var(--mq-red)}
.mq-suggest a:hover{background:var(--mq-tint)}

/* Specifications table */
.mq-specs-title{color:var(--mq-navy);position:relative;padding-left:12px}
.mq-specs-title::before{content:"";position:absolute;left:0;top:.2em;bottom:.2em;width:4px;border-radius:2px;background:var(--mq-red)}
.mq-specs-table thead th{color:var(--mq-navy);font-weight:600;border-bottom:2px solid var(--mq-blue)}
.mq-specs-table tbody tr:hover td{background:var(--mq-tint)}
.mq-specs-scroll{scrollbar-color:var(--mq-blue) transparent}
.mq-specs-scroll::-webkit-scrollbar-thumb{background:var(--mq-blue)}
.mq-specs:focus-visible{outline:2px solid var(--mq-blue)}

/* Product cards */
.woocommerce ul.products li.product::after{background:var(--mq-red)}
.woocommerce ul.products li.product:hover{box-shadow:0 16px 34px rgba(43,52,133,.18)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--mq-navy)}
.mq-meta .mq-chip:hover{border-color:var(--mq-blue);color:var(--mq-blue)}
.mq-count{background:var(--mq-red);color:#fff}

/* ===== v3.0 ===== */
html.mq-lock{overflow:hidden}
.mq-toast{z-index:100000}

/* Row add + table tools */
.mq-specs-table .mq-rowadd{white-space:nowrap;width:1%}
.mq-row-add{display:inline-flex;gap:6px;align-items:center;margin:0!important}
.mq-row-add .mq-qty{width:64px;padding:.4em;margin:0}
body .mq-add.mq-add-sm{padding:.45em .9em!important;font-size:.9rem;line-height:1.2;min-height:0;border-radius:6px}
.mq-spec-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 10px}
.mq-spec-tools input,.mq-spec-tools select{margin:0;padding:.5em .7em;border:1px solid var(--mq-line);border-radius:6px;font:inherit;font-size:.92rem;min-width:0;background:#fff;height:auto}
.mq-spec-tools input{flex:1 1 180px}
.mq-spec-tools input:focus,.mq-spec-tools select:focus{border-color:var(--mq-blue);box-shadow:0 0 0 3px rgba(58,67,168,.18);outline:0}
.mq-spec-reset{background:none;border:0;color:var(--mq-red-dark);cursor:pointer;text-decoration:underline;font:inherit;font-size:.9rem;padding:0}
.mq-spec-count{color:#5b6280;font-size:.88rem}
.mq-specs tr[hidden]{display:none!important}
.mq-specs-table th.mq-sortable{cursor:pointer;user-select:none;white-space:nowrap}
.mq-specs-table th.mq-sortable::after{content:"\2195";margin-left:6px;font-size:.8em;color:#9aa0bd}
.mq-specs-table th[aria-sort=ascending]::after{content:"\25B2";color:var(--mq-red)}
.mq-specs-table th[aria-sort=descending]::after{content:"\25BC";color:var(--mq-red)}
.mq-specs.mq-tools tbody tr:not(.mq-odd) td{background:#fff}
.mq-specs.mq-tools tbody tr.mq-odd td{background:#f5f5f7}
.mq-specs.mq-tools tbody tr:hover td{background:var(--mq-tint)}

/* Quote drawer */
.mq-dbtn{position:fixed;left:20px;bottom:20px;z-index:9990;display:flex;align-items:center;gap:8px;background:var(--mq-blue);color:#fff;border:0;border-radius:2em;padding:.75em 1.1em;font:inherit;font-weight:600;cursor:pointer;box-shadow:0 6px 18px rgba(43,52,133,.35);transition:background .2s,transform .2s}
.mq-dbtn:hover{background:var(--mq-red);transform:translateY(-2px)}
.mq-dcount{background:var(--mq-red);color:#fff;border-radius:1em;min-width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-size:.78rem;padding:0 6px}
.mq-dbtn:hover .mq-dcount{background:#fff;color:var(--mq-red)}
.mq-dbtn.mq-bump{animation:mqPop .5s ease}
.mq-dov{position:fixed;inset:0;background:rgba(20,26,60,.45);opacity:0;visibility:hidden;transition:opacity .3s;z-index:99990}
.mq-dov.mq-open{opacity:1;visibility:visible}
.mq-drawer{position:fixed;top:0;right:0;bottom:0;width:min(420px,100%);background:#fff;z-index:99991;transform:translateX(100%);visibility:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),visibility .35s;display:flex;flex-direction:column;box-shadow:-10px 0 30px rgba(20,26,60,.2);border-top:4px solid var(--mq-red)}
.mq-drawer.mq-open{transform:none;visibility:visible}
.mq-dh{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--mq-line)}
.mq-dh h2{margin:0;font-size:1.15rem;color:var(--mq-navy)}
.mq-dh small{color:#5b6280;font-weight:400}
.mq-dx,.mq-modal-x{background:none;border:0;font-size:1.8rem;line-height:1;cursor:pointer;color:var(--mq-navy);padding:0 6px}
.mq-dx:hover,.mq-modal-x:hover{color:var(--mq-red)}
.mq-dlist{list-style:none;margin:0;padding:0 18px;overflow:auto;flex:1}
.mq-dlist li{display:grid;grid-template-columns:60px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid var(--mq-tint)}
.mq-dlist img{width:60px;height:60px;object-fit:cover;background:var(--mq-tint);border-radius:6px}
.mq-dlist a{font-weight:600;color:var(--mq-blue);text-decoration:none}
.mq-dlist small{display:block;color:#5b6280}
.mq-dqty{display:flex;align-items:center;gap:12px;margin-top:6px}
.mq-dqty input{width:70px;padding:.35em;border:1px solid var(--mq-line);border-radius:6px;font:inherit}
.mq-drm{background:none;border:0;color:var(--mq-red-dark);cursor:pointer;text-decoration:underline;font:inherit;padding:0}
.mq-df{padding:16px 18px;border-top:1px solid var(--mq-line)}
.mq-df .button{display:block;text-align:center;width:100%;box-sizing:border-box}
.mq-dempty{padding:30px 18px;text-align:center}

/* Sticky mobile bar */
.mq-sticky{display:none}
@media(max-width:768px){
  .mq-sticky{display:flex;align-items:center;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:9980;background:#fff;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border-top:3px solid var(--mq-red);box-shadow:0 -6px 18px rgba(20,26,60,.15);transform:translateY(110%);transition:transform .3s ease}
  .mq-sticky.mq-show{transform:none}
  .mq-st-name{flex:1;min-width:0;font-weight:600;color:var(--mq-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mq-sticky .mq-qty{width:64px;padding:.5em}
  body.mq-sticky-on .mq-dbtn,body.mq-sticky-on .mq-wa{bottom:84px}
  .mq-dlabel{display:none}.mq-dbtn{padding:.8em}
}
body.mq-tray-on .mq-wa,body.mq-tray-on .mq-dbtn{bottom:84px}

/* Card tools: quick view + compare */
.mq-card-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;margin:10px 16px 0;font-size:.9rem}
.mq-qv{background:none;border:0;padding:0;font:inherit;font-weight:600;color:var(--mq-blue);cursor:pointer;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.mq-qv:hover{color:var(--mq-red);border-bottom-color:var(--mq-red)}
.mq-cmp{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#3a4163;margin:0}
.mq-cmp input{margin:0;accent-color:var(--mq-blue);width:16px;height:16px}

/* Modal (quick view, compare) */
.mq-modal{position:fixed;inset:0;background:rgba(20,26,60,.55);z-index:99995;display:flex;align-items:center;justify-content:center;padding:16px;animation:mqFade .25s ease}
.mq-modal-box{position:relative;background:#fff;border-radius:12px;max-width:960px;width:100%;max-height:92vh;overflow:auto;padding:26px;border-top:5px solid var(--mq-red);animation:mqRise .3s cubic-bezier(.2,.7,.2,1)}
.mq-modal-x{position:absolute;top:6px;right:10px}
.mq-qv-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:26px}
.mq-qv-img img{width:100%;height:auto;border-radius:8px}
.mq-qv-info h2{margin-top:0;color:var(--mq-navy)}
.mq-qv-sku{color:#5b6280;margin:0 0 8px}
.mq-qv-info .mq-specs{margin-bottom:16px}
.mq-qv-info .mq-specs-scroll{max-height:220px}
.mq-loading{padding:30px;text-align:center;color:#5b6280}
@media(max-width:700px){.mq-qv-grid{grid-template-columns:1fr}}
@keyframes mqFade{from{opacity:0}to{opacity:1}}
@keyframes mqRise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}

/* Compare */
.mq-tray{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:9985;display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--mq-line);border-top:3px solid var(--mq-red);border-radius:10px;padding:8px 12px;box-shadow:0 10px 28px rgba(20,26,60,.22);max-width:calc(100% - 24px)}
.mq-tray[hidden]{display:none}
.mq-tray-items{display:flex;gap:8px}
.mq-tray-item{position:relative;display:inline-block}
.mq-tray-item img{width:44px;height:44px;object-fit:cover;border-radius:6px;background:var(--mq-tint);display:block}
.mq-tray-x{position:absolute;top:-7px;right:-7px;width:18px;height:18px;border-radius:50%;border:0;background:var(--mq-red);color:#fff;font-size:12px;line-height:18px;padding:0;cursor:pointer}
.mq-cmp-clear{background:none;border:0;color:var(--mq-red-dark);cursor:pointer;text-decoration:underline;font:inherit}
.mq-tray .button[disabled]{opacity:.5;cursor:not-allowed}
.mq-cmp-scroll{overflow:auto}
.mq-cmp-table{width:100%;border-collapse:collapse;min-width:520px}
.mq-cmp-table th,.mq-cmp-table td{padding:12px 10px;border-bottom:1px solid #dcdde2;text-align:left;vertical-align:top;background:transparent}
.mq-cmp-table thead th{vertical-align:bottom;color:var(--mq-navy);border-bottom:2px solid var(--mq-blue)}
.mq-cmp-table thead img{width:100px;height:100px;object-fit:cover;display:block;margin-bottom:6px;border-radius:6px}
.mq-cmp-table thead a{text-decoration:none;color:var(--mq-navy)}
.mq-cmp-table tbody th{color:var(--mq-navy);font-weight:600;white-space:nowrap;width:1%}
.mq-cmp-table tbody tr:nth-child(odd) td,.mq-cmp-table tbody tr:nth-child(odd) th{background:#f5f5f7}

/* Shop filters */
.mq-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 22px;padding:14px;background:var(--mq-tint);border-left:5px solid var(--mq-blue);border-radius:6px}
.mq-filters input,.mq-filters select{flex:1 1 170px;min-width:0;margin:0;padding:.6em .8em;border:1px solid var(--mq-line);border-radius:6px;font:inherit;background:#fff;height:auto}
.mq-filters input:focus,.mq-filters select:focus{border-color:var(--mq-blue);box-shadow:0 0 0 3px rgba(58,67,168,.18);outline:0}
.mq-fclear{background:none;border:0;color:var(--mq-red-dark);cursor:pointer;text-decoration:underline;font:inherit}
.mq-fclear[hidden]{display:none}
ul.products.mq-busy{opacity:.4;pointer-events:none;transition:opacity .2s}
ul.products.mq-swapped li.product{animation:mqRise .45s ease both}
ul.products.mq-swapped li.product:nth-child(2){animation-delay:.05s}
ul.products.mq-swapped li.product:nth-child(3){animation-delay:.1s}
ul.products.mq-swapped li.product:nth-child(4){animation-delay:.15s}
.mq-nores{list-style:none;padding:30px;text-align:center;color:#5b6280;width:100%}

/* Recently viewed */
.mq-recent{grid-column:1/-1;clear:both;margin-top:30px}
.mq-recent[hidden]{display:none}
.mq-recent h2{color:var(--mq-navy)}

/* Upload drop zone */
.mq-dropzone{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;padding:22px 16px;border:2px dashed var(--mq-blue);border-radius:10px;background:#fff;cursor:pointer;transition:background .2s,border-color .2s}
.mq-dropzone:hover,.mq-dropzone.mq-drag{background:var(--mq-tint);border-color:var(--mq-red)}
.mq-dropzone small{color:#5b6280;font-weight:400}
.mq-form .mq-dropzone input[type=file]{border:0;background:none;padding:6px 0 0;margin:0;width:auto;max-width:100%}
.mq-drop-prev{display:flex;align-items:center;gap:12px;margin-top:10px;padding:8px;background:#fff;border:1px solid var(--mq-line);border-radius:8px}
.mq-drop-prev[hidden]{display:none}
.mq-drop-prev img{width:56px;height:56px;object-fit:cover;border-radius:6px}
.mq-fico{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;background:var(--mq-blue);color:#fff;font-weight:700;border-radius:6px;font-size:.8rem}
.mq-fname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mq-last{margin-top:14px}

@media(prefers-reduced-motion:reduce){.mq-drawer,.mq-dov,.mq-sticky,.mq-modal,.mq-modal-box,ul.products.mq-swapped li.product{transition:none!important;animation:none!important}}

/* ===== v3.0.2 Theme-proof specifications table (Astra, Kadence, Hello, Storefront, Elementor...) ===== */
body .mq-specs{display:block;float:none;clear:both;width:100%;max-width:100%;box-sizing:border-box;font-family:inherit}
body .mq-specs .mq-specs-scroll{display:block;width:100%;max-height:420px;overflow:auto}
body .mq-specs table.mq-specs-table{display:table!important;table-layout:auto!important;width:100%!important;min-width:360px;margin:0!important;border:0!important;border-collapse:collapse!important;border-spacing:0!important;background:transparent!important;box-shadow:none!important}
body .mq-specs table.mq-specs-table thead,body .mq-specs table.mq-specs-table tbody{display:table-header-group!important;border:0!important;background:transparent!important}
body .mq-specs table.mq-specs-table tbody{display:table-row-group!important}
body .mq-specs table.mq-specs-table tr{display:table-row!important;border:0!important;background:transparent!important}
body .mq-specs table.mq-specs-table th,body .mq-specs table.mq-specs-table td{display:table-cell!important;border:0!important;border-bottom:1px solid #dcdde2!important;padding:14px 10px!important;text-align:left!important;vertical-align:middle!important;font-size:1rem;line-height:1.35;color:#1f2430;width:auto}
body .mq-specs table.mq-specs-table thead th{background:#fff!important;font-weight:600;color:var(--mq-navy);border-bottom:2px solid var(--mq-blue)!important}
body .mq-specs table.mq-specs-table tbody tr:nth-child(odd) td{background:#f5f5f7!important}
body .mq-specs table.mq-specs-table tbody tr:nth-child(even) td{background:#fff!important}
body .mq-specs table.mq-specs-table tbody tr:hover td{background:var(--mq-tint)!important}
body .mq-specs table.mq-specs-table td::before{content:none!important}
body .mq-specs table.mq-specs-table td.mq-rowadd,body .mq-specs table.mq-specs-table th.mq-nosort{width:1%!important;white-space:nowrap}

/* Details dropdown: same look in every theme */
body .mq-specs select.mq-spec-sel{display:block;width:100%;min-width:130px;max-width:100%;height:auto;margin:0;padding:.65em 2.2em .65em .8em;font:inherit;font-size:.95rem;line-height:1.3;color:#1f2430;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f2430' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .8em center;
  border:1px solid var(--mq-line);border-radius:6px;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}
body .mq-specs select.mq-spec-sel:focus{border-color:var(--mq-blue);box-shadow:0 0 0 3px rgba(58,67,168,.18);outline:0}

/* Row Add button (no quantity box) */
body .mq-specs .mq-row-add{display:inline-flex;margin:0!important;padding:0}
body .mq-specs .mq-row-add .mq-add{width:auto;margin:0!important;white-space:nowrap}


/* ===== v3.0.3 Tidy options list + always-visible drawer button ===== */
.mq-opts{display:block;margin:4px 0 2px;font-size:.88rem;line-height:1.45;color:#3d4463}
.mq-opts>span{display:block;padding:1px 0}
.mq-opts b{color:var(--mq-navy);font-weight:600}
.mq-list .mq-opts{margin-top:3px}
.mq-optlist strong{color:#1d2327}

/* ===== v3.0.5 Drawer button: pinned to the bottom of the panel, immune to theme footer/button styles ===== */
.mq-drawer{overflow:hidden}
.mq-drawer .mq-dlist{padding-bottom:96px!important}
.mq-drawer .mq-dempty{padding-bottom:96px}
.mq-drawer .mq-df{display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;left:0;right:0;bottom:0;z-index:3;box-sizing:border-box;padding:14px 18px!important;background:#fff!important;border-top:1px solid var(--mq-line);box-shadow:0 -6px 14px rgba(20,26,60,.08)}
.mq-drawer .mq-df a.mq-dgo{display:block!important;box-sizing:border-box;width:100%;margin:0;text-align:center;padding:.95em 1em;border:0;border-radius:8px;background:var(--mq-blue)!important;color:#fff!important;font-weight:700;font-size:1rem;line-height:1.2;text-decoration:none;cursor:pointer}
.mq-drawer .mq-df a.mq-dgo:hover,.mq-drawer .mq-df a.mq-dgo:focus{background:var(--mq-navy)!important;color:#fff!important}

/* ===== v3.0.7 Product card buttons: equal-width, tidy stack ===== */
body ul.products li.product .mq-add-wrap{margin:14px 16px 0!important}
body ul.products li.product .mq-add-wrap .mq-add,
body ul.products li.product a.mq-sel{display:block!important;width:100%;box-sizing:border-box;margin:0;padding:.8em 1em!important;font-size:.98rem;line-height:1.2;text-align:center;border-radius:8px}
body ul.products li.product a.mq-sel{margin:14px 16px 0!important;width:calc(100% - 32px)}
body ul.products li.product .mq-card-tools{display:block;margin:10px 16px 16px}
body ul.products li.product .mq-card-tools .mq-qv{display:block;width:100%;box-sizing:border-box;padding:.7em 1em;text-align:center;background:#fff!important;color:var(--mq-blue)!important;border:2px solid var(--mq-blue)!important;border-radius:8px;font-weight:600;font-size:.95rem;line-height:1.2;box-shadow:none;cursor:pointer;transition:background-color .2s,color .2s,border-color .2s}
body ul.products li.product .mq-card-tools .mq-qv:hover,
body ul.products li.product .mq-card-tools .mq-qv:focus-visible{background:var(--mq-tint)!important;color:var(--mq-navy)!important;border-color:var(--mq-navy)!important}

/* ===== v3.0.9 Red hover on product-card Add to quote (beats theme/WooCommerce card button rules) ===== */
body ul.products li.product .mq-add-wrap .mq-add:hover,
body ul.products li.product .mq-add-wrap .mq-add:focus-visible,
body ul.products li.product a.mq-sel:hover,
body ul.products li.product a.mq-sel:focus-visible{background-color:var(--mq-red)!important;border-color:var(--mq-red)!important;color:#fff!important;box-shadow:0 6px 14px rgba(254,42,51,.30);transform:translateY(-2px)}


/* ===== v3.2.0 ===== */
/* Specifications table: always scrolls when taller than its box, with a hint */
body .mq-specs{position:relative}
body .mq-specs .mq-specs-scroll{max-height:340px;overflow-y:auto;overflow-x:auto;scrollbar-width:auto}
body .mq-specs .mq-specs-scroll::-webkit-scrollbar{width:10px;height:10px}
body .mq-specs .mq-specs-scroll::-webkit-scrollbar-thumb{background:var(--mq-blue);border-radius:8px}
body .mq-specs .mq-specs-scroll::-webkit-scrollbar-track{background:var(--mq-tint);border-radius:8px}
body .mq-specs.mq-has-more::after{content:"Scroll for more \2193";position:absolute;left:14px;right:24px;bottom:12px;height:46px;display:flex;align-items:flex-end;justify-content:center;padding-bottom:4px;box-sizing:border-box;font-size:.8rem;font-weight:600;color:var(--mq-navy);background:linear-gradient(rgba(255,255,255,0),#fff 85%);pointer-events:none;border-radius:0 0 8px 8px}

/* Quick view removed */
.mq-qv,.mq-card-tools{display:none!important}

/* Quote-only shop: hide WooCommerce Add to cart and the YITH quote button */
body.mq-hide-cart.single-product .single_add_to_cart_button,
body.mq-hide-cart.single-product form.cart .quantity,
body.mq-hide-cart.single-product .woocommerce-variation-add-to-cart{display:none!important}
body.single-product .yith-ywraq-add-to-quote,body.single-product .yith-ywraq-add-button,body .yith-ywraq-add-to-quote,body .yith-ywraq-add-button{display:none!important}

/* Tabs and meta in Elementor templates */
body.mq-hide-desc.mq-hide-reviews .woocommerce-tabs,
body.mq-hide-desc.mq-hide-reviews .elementor-widget-woocommerce-product-data-tabs,
body.mq-hide-reviews .elementor-widget-woocommerce-product-reviews,
body.mq-hide-meta .elementor-widget-woocommerce-product-meta,
body.mq-hide-meta .product_meta{display:none!important}

/* Product cards: equal buttons on every theme and Elementor grid */
body ul.products li.product a.mq-sel{display:block!important;box-sizing:border-box;text-align:center}


/* ===== v3.3.0 Product names, card alignment, WhatsApp position ===== */
body ul.products li.product .woocommerce-loop-product__title,
body ul.products li.product .woocommerce-loop-category__title{font-size:1.05rem!important;font-weight:600!important;line-height:1.3!important;color:var(--mq-navy)!important;text-transform:none!important;letter-spacing:0!important;margin:12px 0 4px!important;padding:0!important;text-align:left;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body ul.products li.product .woocommerce-loop-product__title a{color:inherit!important;text-decoration:none}
body ul.products li.product .mq-add-wrap{margin:8px 0 0!important}
body ul.products li.product a.mq-sel{margin:8px 0 0!important;width:100%!important}
body.single-product .product_title,body.single-product .elementor-widget-woocommerce-product-title .elementor-heading-title{text-transform:none;line-height:1.2;color:var(--mq-navy)}
body .mq-wa{right:20px;bottom:96px;z-index:9970}
body.mq-sticky-on .mq-wa,body.mq-tray-on .mq-wa{bottom:160px}


/* ===== v3.3.1 ===== */
/* Hide the theme Scroll to top arrow (Astra, Elementor and common themes) */
body.mq-no-scrolltop #ast-scroll-top,
body.mq-no-scrolltop .ast-scroll-top-icon,
body.mq-no-scrolltop .scroll-to-top,
body.mq-no-scrolltop .scrolltotop,
body.mq-no-scrolltop .back-to-top,
body.mq-no-scrolltop #back-to-top,
body.mq-no-scrolltop #scroll-top,
body.mq-no-scrolltop #scrollUp,
body.mq-no-scrolltop a.scrollup,
body.mq-no-scrolltop .elementor-widget-scroll-to-top,
body.mq-no-scrolltop [aria-label="Scroll to Top" i],
body.mq-no-scrolltop [aria-label="Scroll to top" i],
body.mq-no-scrolltop [aria-label="Back to top" i],
body.mq-no-scrolltop [title="Scroll to Top" i],
body.mq-no-scrolltop [title="Back to top" i]{display:none!important}
body.mq-no-scrolltop .mq-wa{bottom:20px}
body.mq-no-scrolltop.mq-sticky-on .mq-wa,body.mq-no-scrolltop.mq-tray-on .mq-wa{bottom:90px}

/* Product cards: name centered, compact centered buttons */
body ul.products li.product .woocommerce-loop-product__title,
body ul.products li.product .woocommerce-loop-category__title{text-align:center!important;justify-content:center}
body ul.products li.product .mq-add-wrap{display:flex!important;justify-content:center;margin:8px 0 0!important}
body ul.products li.product .mq-add-wrap .mq-add{display:inline-block!important;width:auto!important;min-width:150px;padding:.6em 1.5em!important;font-size:.92rem!important;line-height:1.2}
body ul.products li.product a.mq-sel{display:table!important;width:auto!important;min-width:150px;margin:8px auto 0!important;padding:.6em 1.5em!important;font-size:.92rem!important;line-height:1.2;text-align:center}
