/* Compact single-view quote in the established right-hand drawer. */
.qq-compact {
  --qq-bg: #fff; --qq-surface: #f6f9fd; --qq-text: #10233e; --qq-muted: #52647a;
  --qq-border: #d6e1ed; --qq-accent: #2563eb; --qq-error: #b42318;
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
  padding: 0 !important; color: var(--qq-text); background: var(--qq-bg) !important;
  border-radius: 14px; border-color: var(--qq-border);
}
html[data-theme=dark] .qq-compact {
  --qq-bg: #102139; --qq-surface: #0d1b2d; --qq-text: #edf5ff; --qq-muted: #b8c7da;
  --qq-border: #36516f; --qq-accent: #85b7ff; --qq-error: #ffb4ad;
}
.qq-compact * { box-sizing: border-box; }
.qq-compact [hidden] { display: none !important; }
.qq-compact :is(button,input,textarea,select) { font: inherit; }
.qq-compact button { cursor: pointer; }
.qq-compact button:disabled { opacity: .45; cursor: default; }
.qq-compact :is(button,input,textarea,select,a,summary):focus-visible { outline: 3px solid #6ba5ff; outline-offset: 2px; }
.qq-compact :is(h1,h2,h3,p) { margin: 0; }
.qq-head { flex-shrink: 0; padding: 12px 16px 10px; border-bottom: 1px solid var(--qq-border); }
.qq-head h1,.qq-head h2 { color: var(--qq-text); font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.qq-eyebrow { display: block; margin-bottom: 3px; font-size: 10px; line-height: 14px; letter-spacing: .08em; font-weight: 800; color: var(--qq-muted); }
.qq-context { margin-top: 6px !important; color: var(--qq-muted); font-size: 12px; line-height: 16px; overflow-wrap: anywhere; }
.qq-compact form { display: flex; flex-direction: column; min-height: 0; }
.qq-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qq-body { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0 20px; overflow: visible; }
.qq-body > * { flex-shrink: 0; min-width: 0; }
.qq-intro { padding: 16px 0; font-size: 13px; line-height: 1.6; color: var(--qq-muted); }
.qq-description { display: grid; gap: 5px; }
.qq-description > label,.qq-field > label { font-size: 12px; line-height: 17px; font-weight: 750; }
.qq-compact input:not([type=hidden]):not([type=file]),.qq-compact textarea,.qq-compact select {
  width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--qq-border); border-radius: 8px;
  background: var(--qq-bg); color: var(--qq-text); padding: 8px 10px; font-size: 14px; line-height: 20px;
}
.qq-compact input::placeholder,.qq-compact textarea::placeholder { color: #6b7280; opacity: 1; }
html[data-theme=dark] .qq-compact input::placeholder,html[data-theme=dark] .qq-compact textarea::placeholder { color: #a8b4c5; }
.qq-description textarea { height: 68px; min-height: 68px; resize: none; }
.qq-compact [aria-invalid=true] { border-color: var(--qq-error) !important; }
.qq-error { color: var(--qq-error); font-size: 12px; font-weight: 600; line-height: 17px; overflow-wrap: anywhere; }
.qq-error:empty { display: none; }
.qq-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.qq-field { display: grid; gap: 5px; align-content: start; min-width: 0; }
.qq-wide { grid-column: 1 / -1; }
.qq-file-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.qq-file-toolbar .qq-section-heading { margin: 0; }
.qq-file-toolbar > span { color: var(--qq-muted); font-size: 11px; }
.qq-upload { display: inline-flex; position: relative; margin-left: auto; align-items: center; justify-content: center; gap: 5px; min-height: 34px; padding: 5px 12px; border: 1px dashed #7b9bc1; border-radius: 8px; background: var(--qq-surface); color: var(--qq-accent); cursor: pointer; }
.qq-upload > span { font-size: 20px; line-height: 20px; }
.qq-upload strong { font-size: 12px; line-height: 20px; }
.qq-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.qq-upload:focus-within,.qq-files.is-dragging { outline: 3px solid #6ba5ff; outline-offset: 2px; }
.qq-file-help { margin: 5px 0 0 !important; font-size: 11px; line-height: 15px; color: var(--qq-muted); }
.qq-file-help span { display: block; }
.qq-file-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 6px; list-style: none; padding: 0; margin: 6px 0 0; }
.qq-file-list:empty { display: none; }
.qq-file-list li { display: flex; align-items: center; gap: 5px; min-width: 0; min-height: 32px; border: 1px solid var(--qq-border); border-radius: 7px; background: var(--qq-surface); padding: 2px 5px; }
.qq-file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 11px; line-height: 14px; }
.qq-file-size { flex-shrink: 0; font-size: 10px; color: var(--qq-muted); }
.qq-remove { display: grid; place-items: center; min-height: 30px; width: 30px; flex-shrink: 0; padding: 0; border: 1px solid var(--qq-border); border-radius: 6px; background: var(--qq-bg); color: var(--qq-muted); font-size: 21px !important; line-height: 24px; }
.qq-file-list .qq-remove { width: 26px; min-height: 26px; font-size: 18px !important; }
.qq-remove:hover { color: var(--qq-error); border-color: var(--qq-error); }
.qq-files > .qq-error { margin-top: 5px; }
.qq-details { background: var(--qq-bg); }
.qq-details > summary { display: flex; list-style: none; margin: 0; cursor: pointer; min-height: 32px; }
.qq-details > summary::-webkit-details-marker { display: none; }
.qq-optional { color: var(--qq-muted); font-size: 11px; font-weight: 500; }
.qq-details[open] > summary { margin-bottom: 14px; }
.qq-details-body { padding: 0; }
.qq-item-head { display: none; }
.qq-item { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--qq-border); border-radius: 8px; background: var(--qq-surface); }
.qq-item-label { display: block; margin-bottom: 4px; font-size: 11px; line-height: 15px; font-weight: 700; }
.qq-item-field { min-width: 0; }
.qq-quantity { display: grid; grid-template-columns: minmax(0,1fr) 64px; gap: 5px; }
.qq-compact .qq-quantity select { padding-inline: 6px; font-size: 13px; }
.qq-item-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qq-item-top h4 { margin: 0; font-size: 12px; line-height: 20px; font-weight: 750; color: var(--qq-muted); }
.qq-item-top .qq-remove { width: 28px; min-height: 28px; }
.qq-item .qq-error { margin-top: 3px; }
.qq-item-tools { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.qq-secondary { min-height: 36px; padding: 7px 10px; border: 1px solid var(--qq-border); border-radius: 7px; background: var(--qq-bg); color: var(--qq-text); font-size: 12px !important; line-height: 20px; font-weight: 750 !important; }
.qq-delivery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.qq-delivery-grid textarea { height: 60px; resize: vertical; }
.qq-service { display: grid; gap: 5px; margin-top: 10px; font-size: 12px; font-weight: 700; }
.qq-footer { flex-shrink: 0; padding: 16px 20px; border-top: 1px solid var(--qq-border); background: var(--qq-bg); border-radius: 0 0 14px 14px; }
.qq-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qq-submit-error { margin-bottom: 7px !important; }
.qq-privacy { font-size: 10px; line-height: 15px; color: var(--qq-muted); max-width: 270px; }
.qq-privacy a { color: var(--qq-accent); text-decoration: underline; }
.qq-primary { min-height: 44px; flex-shrink: 0; padding: 10px 17px; border: 1px solid #2563eb; border-radius: 9px; background: #2563eb; color: #fff; font-size: 14px !important; font-weight: 800 !important; line-height: 22px; box-shadow: 0 5px 14px #2563eb25; }
.qq-primary:hover { background: #1d4ed8; }
.qq-compact .quick-quote__success { padding: 24px 18px; min-height: 0; }
.quick-quote-drawer:has(.qq-compact) { align-items: stretch; justify-content: flex-end; padding: 0; }
.quick-quote-drawer:has(.qq-compact) .quick-quote-drawer__panel { display: flex; flex-direction: column; width: min(620px,100%); min-height: 0; height: auto; max-height: 100dvh; overflow: auto; padding: 14px 18px; background: #f6f9fd; border-radius: 0; }
html[data-theme=dark] .quick-quote-drawer:has(.qq-compact) .quick-quote-drawer__panel { background: #0d1b2e; }
.quick-quote-drawer:has(.qq-compact) .quick-quote-drawer__top { flex-shrink: 0; display: flex; justify-content: flex-end; margin: 0 0 8px; }
.quick-quote-drawer:has(.qq-compact) .quick-quote-drawer__close { width: 36px; height: 36px; }
.quick-quote-drawer .qq-compact { flex: 0 0 auto; min-height: 0; }
.quick-quote-drawer:has(.qq-compact).is-open .quick-quote-drawer__panel { animation: qq-slide-in .18s ease-out; }
@keyframes qq-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media(min-width:681px) and (max-height:740px) {
  .quick-quote-drawer:has(.qq-compact) .quick-quote-drawer__panel { padding-block: 10px; }
  .qq-head { padding-block: 12px; }
  .qq-description textarea { height: 56px; min-height: 56px; }.qq-footer { padding-block: 9px; }
}
@media(max-width:520px) {
  .quick-quote-drawer:has(.qq-compact) .quick-quote-drawer__panel { padding: 10px; }
  .qq-head { padding-inline: 13px; }.qq-body { padding-inline: 13px; }.qq-footer { padding-inline: 13px; }
  .qq-contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .qq-compact input:not([type=hidden]):not([type=file]),.qq-compact textarea,.qq-compact select { font-size: 16px; }
  .qq-file-list { grid-template-columns: 1fr; }.qq-file-list li { min-height: 40px; }.qq-file-list .qq-remove { width: 32px; min-height: 32px; }
  .qq-item { grid-template-columns: 1fr; }.qq-delivery-grid { grid-template-columns: 1fr; }
  .qq-footer { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }.qq-privacy { font-size: 10px; }.qq-primary { padding-inline: 13px; font-size: 13px !important; }
}
@media(prefers-reduced-motion:reduce) { .quick-quote-drawer:has(.qq-compact).is-open .quick-quote-drawer__panel { animation: none; } }

/* Four sections follow the content height; only the page or drawer scrolls. */
.qq-compact { container-type: inline-size; align-self: start; width: 100%; }
.qq-compact .qq-head { padding: 20px; }
.qq-compact .qq-section { padding: 20px 0; border: 0; border-top: 1px solid var(--qq-border); border-radius: 0; }
.qq-compact .qq-products { border-top: 0; padding-top: 0; }
.qq-compact .qq-section-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: 16px; font-weight: 750; line-height: 1.5; color: var(--qq-text); }
.qq-section-number { flex: 0 0 28px; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--qq-surface); color: var(--qq-accent); font-size: 11px; font-weight: 800; }
.qq-compact .qq-hint { margin: -5px 0 12px; color: var(--qq-muted); font-size: 12px; line-height: 1.6; }
.qq-compact .qq-add { width: 100%; min-height: 42px; color: var(--qq-accent); border-color: #9ab8df; background: var(--qq-surface); font-size: 13px !important; }
.qq-compact .qq-add:hover { border-color: var(--qq-accent); }
.qq-compact .qq-file-toolbar .qq-section-heading { margin-bottom: 0; }
.qq-compact .qq-file-help { margin-top: 10px !important; line-height: 1.6; }
.qq-compact .qq-file-list { margin-top: 10px; }
.qq-compact .qq-file-list li { min-height: 40px; }
.qq-compact .qq-upload { min-height: 40px; }
.qq-compact .qq-details > summary { margin-bottom: 0; }
.qq-compact .qq-details[open] > summary { margin-bottom: 16px; }
.qq-chevron { margin-left: auto; color: var(--qq-muted); }
.qq-details[open] .qq-chevron { transform: rotate(180deg); }
.qq-optional { font-size: 11px; white-space: nowrap; }
.qq-date { position: relative; }
.qq-date [data-qq-date-placeholder] { position: absolute; inset: 1px 38px 1px 11px; display: flex; align-items: center; color: #6b7280; background: var(--qq-bg); font-size: 14px; pointer-events: none; }
.qq-date.is-empty input:not(:focus)::-webkit-datetime-edit { color: transparent; }
html[data-theme=dark] .qq-date [data-qq-date-placeholder] { color: #a8b4c5; }
.qq-compact .qq-privacy { max-width: 300px; font-size: 11px; line-height: 1.6; }
.v4-quote-layout > .qq-compact { min-height: 0; height: auto; }
@container (min-width: 720px) {
  .qq-item { grid-template-columns: minmax(0,1.45fr) minmax(0,.8fr) minmax(0,1.1fr) minmax(0,1fr); gap: 8px 12px; }
}
.qq-compact--specialist-embedded .qq-item { grid-template-columns: repeat(2,minmax(0,1fr)); }
.qq-compact--specialist-embedded .qq-specialist-sector { margin-bottom: 12px; }
/* Keep WebKit’s native picker while giving its trigger the same field geometry. */
.qq-compact--specialist-embedded .qq-specialist-sector select {
  -webkit-appearance: none; appearance: none; min-height: 42px; padding-inline-end: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23788da7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 10px center; background-repeat: no-repeat; background-size: 16px 16px;
}
.qq-compact--specialist-embedded .qq-specialist-tests { margin-top: 14px; }
@media(max-width:520px) {
  .qq-compact .qq-head { padding: 18px 14px; }
  .qq-compact .qq-body { padding-inline: 14px; }
  .qq-compact .qq-section { padding-block: 18px; }
  .qq-compact .qq-products { padding-top: 0; }
  .qq-compact--specialist-embedded .qq-item { grid-template-columns: minmax(0,1fr); }
  .qq-compact .qq-section-heading { font-size: 15px; gap: 7px; }
  .qq-file-toolbar .qq-section-heading { flex: 1 1 100%; }
  .qq-compact .qq-upload { margin-left: 0; }
  .qq-compact .qq-footer-row { flex-direction: column-reverse; align-items: stretch; }
  .qq-compact .qq-primary { width: 100%; }
  .qq-date [data-qq-date-placeholder] { font-size: 16px; }
}
@media(min-width:1000px) {
  .v4-quote-page .v4-quote-layout:has(> .qq-compact) { max-width:1200px; grid-template-columns:260px minmax(0,1fr); gap:40px; }
  .v4-quote-page .v4-quote-aside h2 { font-size:34px; }
}
@media(min-width:601px) and (max-width:999px) {
  .v4-quote-page .v4-quote-layout:has(> .qq-compact) { grid-template-columns:1fr; max-width:760px; }
  .v4-quote-page .v4-quote-aside { padding-top:0; }
  .v4-quote-page .v4-quote-aside ol { display:none; }
  .v4-quote-page .v4-quote-aside h2 { max-width:none; }
}
