:root{--mtm-blue:#123c73;--mtm-blue-dark:#0d2f5c;--mtm-border:#d7dee7;--mtm-text:#17212b;--mtm-muted:#607085;--mtm-bg:#fff}
#mtm-rfq-float{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:9900;border:0;border-left:4px solid #0c6cbc;border-radius:8px 0 0 8px;background:var(--mtm-blue);color:#fff;padding:12px 15px;font:600 14px/1.2 Arial,sans-serif;box-shadow:0 6px 22px rgba(17,44,78,.2);cursor:pointer}
#mtm-rfq-float span{display:inline-flex;min-width:22px;height:22px;margin-left:7px;align-items:center;justify-content:center;border-radius:999px;background:#fff;color:var(--mtm-blue);font-size:12px}
#mtm-rfq-overlay{position:fixed;inset:0;background:rgba(12,27,45,.35);z-index:9950}
#mtm-rfq-panel{position:fixed;inset:0 0 0 auto;width:min(500px,100%);height:100dvh;overflow:auto;z-index:9960;background:#fff;box-shadow:-12px 0 38px rgba(17,44,78,.22);padding:24px}
#mtm-rfq-panel[hidden],#mtm-rfq-overlay[hidden],#mtm-rfq-toast[hidden]{display:none!important}
.mtm-rfq-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--mtm-border)}
.mtm-rfq-kicker{display:block;margin-bottom:4px;color:#0c6cbc;font-size:12px;font-weight:700;letter-spacing:.14em}
.mtm-rfq-head h2{margin:0;color:var(--mtm-text);font-size:27px;line-height:1.2}
.mtm-rfq-close{border:0;background:transparent;color:var(--mtm-text);font-size:34px;line-height:1;cursor:pointer;padding:0 3px}
#mtm-rfq-lines{padding:16px 0}
.mtm-rfq-empty{margin:4px 0 16px;color:var(--mtm-muted)}
.mtm-rfq-line{display:grid;grid-template-columns:1fr auto;gap:10px 14px;padding:12px 0;border-bottom:1px solid #edf0f4}
.mtm-rfq-line strong{font-size:14px;color:var(--mtm-text)}
.mtm-rfq-line small{display:block;margin-top:3px;color:var(--mtm-muted);font-size:12px}
.mtm-rfq-line-controls{display:flex;align-items:center;gap:8px}
.mtm-rfq-line input{width:58px;height:36px;border:1px solid #c5d0dc;border-radius:4px;padding:5px 7px}
.mtm-rfq-remove{border:1px solid #c7d2df;background:#fff;color:#173861!important;text-decoration:none;cursor:pointer;font-size:12px;font-weight:700;border-radius:4px;padding:8px 10px}.mtm-rfq-remove:hover{border-color:#173861;background:#f4f7fa;color:#173861!important}
.mtm-rfq-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#mtm-rfq-form label{display:flex;flex-direction:column;gap:5px;color:#2c3c4e;font-size:13px;font-weight:600}
#mtm-rfq-form input,#mtm-rfq-form textarea{width:100%;border:1px solid #c5d0dc;border-radius:4px;background:#fff;color:#17212b;padding:9px 10px;font:inherit;font-weight:400}
.mtm-rfq-message{margin-top:12px}
.mtm-rfq-honey{position:absolute!important;left:-9999px!important}
.mtm-rfq-send{width:100%;margin-top:15px;border:1px solid var(--mtm-blue);border-radius:4px;background:var(--mtm-blue);color:#fff;padding:11px 15px;font-weight:700;cursor:pointer}
.mtm-rfq-send:hover{background:var(--mtm-blue-dark)}
#mtm-rfq-status{min-height:22px;margin:10px 0 0;color:#33485e;font-size:13px}

/* Compact RFQ footer for MariTeam four-column cards */
li.product .mtm-card-rfq{margin-top:auto;padding:12px 14px 14px;border-top:1px solid #e3e7ec;background:#fff;display:flex;flex-direction:column;align-items:center}
li.product .mtm-card-qty{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:9px;color:#173861;font-size:13px}
li.product .mtm-card-qty input{width:58px;height:34px;border:1px solid #bfcddd;border-radius:4px;padding:4px 7px;color:#173861;background:#fff}
li.product .mtm-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:min(100%,350px);margin:0 auto}
li.product .mtm-card-actions button{min-height:38px;border-radius:4px;padding:8px 7px;font-size:12.5px;font-weight:700;line-height:1.15;cursor:pointer}
li.product .mtm-rfq-direct{border:1px solid var(--mtm-blue);background:var(--mtm-blue);color:#fff}
li.product .mtm-rfq-add{border:1px solid #b9c8d8;background:#fff;color:var(--mtm-blue)}
li.product .mtm-rfq-add:hover{border-color:var(--mtm-blue);background:#f5f8fb}
li.product .mtm-card-rfq button:focus-visible,#mtm-rfq-float:focus-visible,.mtm-rfq-close:focus-visible,.mtm-rfq-send:focus-visible{outline:3px solid rgba(12,108,188,.28);outline-offset:2px}

#mtm-rfq-toast{position:fixed;right:18px;bottom:18px;z-index:9990;max-width:320px;border-radius:5px;background:#173861;color:#fff;padding:11px 14px;box-shadow:0 6px 22px rgba(17,44,78,.22);font-size:13px}

@media(max-width:767px){
  #mtm-rfq-float{top:auto;bottom:18px;transform:none;padding:11px 13px}
  #mtm-rfq-panel{padding:20px 16px}
  .mtm-rfq-fields{grid-template-columns:1fr}
  li.product .mtm-card-actions{grid-template-columns:1fr}
}
