/* Quote list: add buttons, floating list button and the list panel. */
.quote-add {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 12px;
  border: 2px dashed #1a1c1d; background: #fff; color: #1a1c1d;
  font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .03em;
  cursor: pointer; text-align: center;
}
.quote-add span { font-size: 14px; line-height: 1; }
.quote-add:hover { border-style: solid; background: #ffcd00; }
.quote-add.is-added { border-style: solid; background: #1a1c1d; color: #ffcd00; }
.quote-add.is-added:hover { background: #b22b1d; border-color: #b22b1d; color: #fff; }
.quote-add:focus-visible, .ql-fab:focus-visible, .ql-dialog button:focus-visible, .ql-dialog a:focus-visible, .ql-dialog input:focus-visible { outline: 3px solid #b22b1d; outline-offset: 2px; }
.card-actions .quote-add { grid-column: 1 / -1; }
.product-actions .quote-add { padding: 14px 16px; font-size: 11px; border-width: 2px; }

.ql-fab {
  position: fixed; z-index: 55; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 18px;
  border: 3px solid #1a1c1d; background: #ffcd00; color: #1a1c1d;
  box-shadow: 5px 5px 0 #1a1c1d; cursor: pointer;
  font: 700 12px 'JetBrains Mono', monospace; letter-spacing: .04em;
}
.ql-fab[hidden] { display: none; }
.ql-fab-count { min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; background: #1a1c1d; color: #ffcd00; font-size: 13px; }
.ql-fab:hover { background: #b22b1d; color: #fff; }
.ql-bump { animation: ql-bump .35s ease-out; }
@keyframes ql-bump { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ql-bump { animation: none; } }

.ql-panel[hidden] { display: none; }
.ql-panel { position: fixed; inset: 0; z-index: 1000; }
html.ql-open .mobile-contact-bar, html.ql-open .ql-fab { visibility: hidden; }
.ql-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); }
.ql-dialog {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: #f5f5f4; color: #1a1c1d; border-left: 4px solid #1a1c1d;
  font-family: Inter, Arial, sans-serif;
}
html.ql-open, html.ql-open body { overflow: hidden; }
.ql-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 22px 20px 16px; background: #ffcd00; border-bottom: 4px solid #1a1c1d; }
.ql-kicker { margin: 0 0 6px; font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .06em; color: #b22b1d; }
.ql-head h2 { margin: 0; font-size: 1.45rem; line-height: 1.05; letter-spacing: -.04em; text-transform: uppercase; }
.ql-summary { margin: 6px 0 0; font: 700 11px 'JetBrains Mono', monospace; }
.ql-close { flex: 0 0 44px; width: 44px; height: 44px; border: 2px solid #1a1c1d; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.ql-close:hover { background: #b22b1d; color: #fff; }
.ql-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; -webkit-overflow-scrolling: touch; }
.ql-empty { margin: 18px 0; line-height: 1.55; color: #3d3f40; }
.ql-empty[hidden] { display: none; }
.ql-items { list-style: none; margin: 0; padding: 0; }
.ql-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #cfcfcb; }
.ql-item-text strong { display: block; font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.ql-item-text a { color: inherit; text-decoration: none; }
.ql-item-text a:hover { text-decoration: underline; }
.ql-item-text span { display: block; margin-top: 4px; font: 700 11px 'JetBrains Mono', monospace; color: #5b5d5e; overflow-wrap: anywhere; }
.ql-qty { display: flex; align-items: stretch; border: 2px solid #1a1c1d; background: #fff; }
.ql-step { width: 40px; min-height: 42px; border: 0; background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.ql-step:hover { background: #ffcd00; }
.ql-qty input { width: 48px; border: 0; border-left: 2px solid #1a1c1d; border-right: 2px solid #1a1c1d; text-align: center; font: 700 16px Inter, Arial, sans-serif; -moz-appearance: textfield; appearance: textfield; }
.ql-qty input::-webkit-outer-spin-button, .ql-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ql-remove { width: 44px; height: 44px; border: 2px solid transparent; background: none; font-size: 24px; line-height: 1; color: #5b5d5e; cursor: pointer; }
.ql-remove:hover { border-color: #b22b1d; color: #b22b1d; }
.ql-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 4px solid #1a1c1d; background: #fff; }
.ql-foot[hidden] { display: none; }
.ql-send { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; background: #075e54; color: #fff; border: 3px solid #1a1c1d; box-shadow: 4px 4px 0 #1a1c1d; font: 700 13px 'JetBrains Mono', monospace; letter-spacing: .04em; text-decoration: none; }
.ql-send:hover { background: #b22b1d; }
.ql-foot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.ql-foot-row p { margin: 0; font-size: .82rem; color: #5b5d5e; line-height: 1.4; }
.ql-clear { flex: 0 0 auto; min-height: 44px; padding: 0 4px; border: 0; background: none; font: 700 11px 'JetBrains Mono', monospace; color: #b22b1d; text-decoration: underline; cursor: pointer; }
/* Keep the last footer links clear of the floating button. */
html.ql-has-items footer { padding-bottom: 96px !important; }
.ql-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }

@media (max-width: 680px) {
  .card-actions .quote-add { min-height: 40px; font-size: 11px; }
  .product-actions .quote-add { flex: 1 1 100%; min-height: 48px; }
  /* Sits just above the bottom Call / WhatsApp / Directions bar. */
  .ql-fab { left: 14px; right: 14px; justify-content: space-between; bottom: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
  body:has(.mobile-contact-bar) .ql-fab { bottom: calc(67px + env(safe-area-inset-bottom) + 10px); }
  .ql-fab-go { margin-left: auto; }
  html.ql-has-items footer { padding-bottom: 86px !important; }
  html.ql-has-items body:has(.mobile-contact-bar) footer { padding-bottom: calc(67px + 86px + env(safe-area-inset-bottom)) !important; }
  .ql-dialog { top: auto; left: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-left: 0; border-top: 4px solid #1a1c1d; }
  .ql-head { padding: 18px 16px 14px; }
  .ql-body { padding: 4px 16px 16px; }
  .ql-foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
  .ql-item { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; }
  .ql-item-text { grid-column: 1 / -1; }
  .ql-qty { justify-self: start; }
}
