/* CheMost — Request a Quote: floating CTA + modal (brand datasheet style, no new visual language) */
.cm-quote-fab { position: fixed; right: 22px; bottom: 80px; z-index: 9000;
  display: inline-flex; align-items: center; gap: 8px; background: #2563eb; color: #fff;
  font-size: 14px; font-weight: 600; padding: 12px 18px; border-radius: 3px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,99,235,.35); transition: background .15s, transform .15s; }
.cm-quote-fab:hover { background: #1d4ed8; transform: translateY(-1px); color: #fff; }
.cm-quote-fab svg { flex: none; }
/* Force white label — beats the global .cm-product-page/.cm-company-page/.cm-policy-page a colour rule (was rendering blue-on-blue, invisible) */
.cm-quote-fab, .cm-quote-fab span { color: #fff !important; }
body.cm-quote-lock { overflow: hidden; }

/* Avoid clashing with Astra's scroll-to-top button (also bottom-right, z-index 9999):
   sit the quote FAB above it, and drop the scroll-top below the quote modal so it
   no longer floats over the open popup. */
#ast-scroll-top { right: 22px !important; bottom: 22px !important; z-index: 8000 !important; }

.cm-quote-modal { position: fixed; inset: 0; z-index: 9001; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cm-quote-modal[hidden] { display: none; }
.cm-quote-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.cm-quote-dialog { position: relative; background: #fff; width: 100%; max-width: 460px; border-radius: 4px;
  border-top: 4px solid #2563eb; box-shadow: 0 24px 60px rgba(0,0,0,.3); padding: 26px 26px 22px; max-height: 90vh; overflow-y: auto; }
.cm-quote-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; }
.cm-quote-x:hover { color: #1a3a5c; }
.cm-quote-dialog h3 { font-size: 1.25rem; color: #1a3a5c; margin: 0 0 6px; }
.cm-quote-sub { font-size: .86rem; color: #64748b; margin: 0 0 16px; line-height: 1.5; }
.cm-quote-form input, .cm-quote-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d7dee7; border-radius: 3px;
  padding: 10px 12px; font-size: .9rem; color: #1a3a5c; margin-bottom: 10px; font-family: inherit; }
.cm-quote-form input:focus, .cm-quote-form textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 1px #2563eb; }
.cm-quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cm-quote-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; }
.cm-quote-submit { width: 100%; background: #2563eb; color: #fff; border: 0; border-radius: 3px; padding: 12px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.cm-quote-submit:hover { background: #1d4ed8; }
.cm-quote-submit:disabled { opacity: .6; cursor: default; }
.cm-quote-alt { font-size: .8rem; color: #64748b; text-align: center; margin: 12px 0 0; }
.cm-quote-alt a { color: #2563eb; text-decoration: none; }
.cm-quote-alt a:hover { text-decoration: underline; }
.cm-quote-done { text-align: center; padding: 24px 0; }
.cm-quote-check { width: 52px; height: 52px; border-radius: 50%; background: #ecfdf5; color: #059669; font-size: 28px; line-height: 52px; margin: 0 auto 14px; }
.cm-quote-donemsg { color: #065f46; font-size: .95rem; margin: 0; }
.cm-quote-err { color: #b91c1c; font-size: .82rem; margin: 0 0 10px; }

@media (max-width: 520px) {
  .cm-quote-row { grid-template-columns: 1fr; }
  .cm-quote-fab span { display: none; }
  .cm-quote-fab { padding: 14px; border-radius: 50%; right: 16px; bottom: 74px; }
}

/* ============================================================
   Quote modal — shared form design language (Fluent Forms id=5)
   (later rules intentionally override the datasheet defaults above)
   ============================================================ */
.cm-quote-dialog { max-width: 520px; border-radius: 18px; border-top: 3px solid #2563eb;
  padding: 26px 28px 24px; font-family: 'IBM Plex Sans','Inter',system-ui,sans-serif; }
.cm-quote-ey { font-family: ui-monospace,'IBM Plex Mono',monospace; font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #2563eb; display: block; margin-bottom: 6px; }
.cm-quote-dialog h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: #0b1220; margin: 0 0 6px; }
.cm-quote-sub { font-size: 14px; color: #3a475c; margin: 0 0 16px; line-height: 1.5; }
.cm-quote-x { color: #94a3b8; }
.cm-quote-x:hover { color: #0b1220; }
.cm-quote-modal .fluentform .ff-el-group { margin-bottom: 14px; }
.cm-quote-modal .fluentform .ff-el-input--label { margin-bottom: 5px; }
.cm-quote-modal .fluentform .ff-el-input--label label { font-weight: 500; font-size: 13px; color: #0b1220; }
.cm-quote-modal .fluentform .ff-el-group:has([aria-required="true"]) .ff-el-input--label label::after {
  content: " *"; color: #dc2626; font-weight: 600; }
.cm-quote-modal .fluentform .ff-el-form-control { font-family: inherit; font-size: 14.5px; color: #0b1220;
  background: #fff; border: 1px solid #d4dbe6; border-radius: 9px; padding: 10px 12px; box-shadow: none;
  transition: border-color .15s, box-shadow .15s; }
.cm-quote-modal .fluentform .ff-el-form-control::placeholder { color: #aab4c4; opacity: 1; }
.cm-quote-modal .fluentform .ff-el-form-control:focus { border-color: #2563eb; box-shadow: 0 0 0 3px #eef3ff; outline: none; }
.cm-quote-modal .fluentform textarea.ff-el-form-control { min-height: 84px; }
.cm-quote-modal .fluentform .ff-el-group.cm-form-trust { margin-top: 2px; margin-bottom: 6px; }
.cm-quote-modal .fluentform .ff-btn-submit { width: 100%; justify-content: center; font-family: inherit;
  font-weight: 600; font-size: 15px; color: #fff; background: #2563eb; border: 0; border-radius: 9px;
  padding: 12px; cursor: pointer; box-shadow: 0 6px 16px -4px rgba(37,99,235,.5); transition: background .15s, transform .15s; }
.cm-quote-modal .fluentform .ff-btn-submit:hover { background: #1b46c2; transform: translateY(-1px); }
.cm-quote-alt { font-size: 12.5px; color: #64748b; margin-top: 14px; }
