html:has(#quote-tools :focus, .wa-header:focus) { scroll-behavior: auto; }

#quote-tools {
  --qt-ink: var(--ink, #162a3c);
  --qt-muted: #404d57;
  --qt-line: #d5dfe7;
  --qt-card: #f8f6f0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  width: min(1320px, calc(100% - clamp(2rem, 8vw, 8rem)));
  margin: clamp(3.5rem, 7vw, 6.5rem) auto;
  color: var(--qt-ink);
  text-align: left;
}

#quote-tools *,
#quote-tools *::before,
#quote-tools *::after { box-sizing: border-box; }

#quote-tools [hidden] { display: none !important; }
#quote-tools section { scroll-margin-top: 6rem; min-width: 0; }
#quote-tools section:focus { outline: none; }
#quote-tools h2 {
  font-family: inherit;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.045em;
  margin: 0;
  color: inherit;
}
#quote-tools .qt-intro { color: var(--qt-muted); font-size: .97rem; line-height: 1.6; margin: .85rem 0 1.65rem; max-width: 53ch; }
#quote-tools button,
#quote-tools input,
#quote-tools textarea { font: inherit; }
#quote-tools button { cursor: pointer; touch-action: manipulation; }
#quote-tools button,
#quote-tools input,
#quote-tools textarea { -webkit-tap-highlight-color: transparent; }
#quote-tools :is(a, button, input, textarea):focus-visible {
  outline: 2px solid #0A4D8C;
  outline-offset: 3px;
}
#quote-tools .qt-zone {
  min-width: 0;
  padding: 1rem 0 1.3rem;
  border: 0;
  border-top: 1px solid var(--qt-line);
  margin: 0;
}
#quote-tools .qt-zone-head { display: flex; align-items: center; min-height: 2.5rem; gap: .72rem; }
#quote-tools .qt-zone-head > label { white-space: nowrap; font-weight: 650; font-size: .9rem; }
#quote-tools input.qt-name {
  width: min(16rem, 54%);
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--qt-ink);
  padding: .5rem;
  border-radius: .25rem;
  font-size: .85rem;
  box-shadow: none;
}
#quote-tools input::placeholder,
#quote-tools textarea::placeholder { color: #606c77; opacity: 1; }
#quote-tools .qt-remove { margin-left: auto; border: 0; background: transparent; color: var(--qt-muted); width: 2.75rem; height: 2.75rem; padding: .78rem; }
#quote-tools .qt-measurements { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(6rem, .9fr); gap: .7rem; align-items: end; margin-top: .5rem; }
#quote-tools .qt-measurements label,
#quote-tools .qt-subtotal > span { font-size: .78rem; color: var(--qt-muted); font-weight: 550; }
#quote-tools .qt-input-wrap { margin-top: .4rem; display: flex; align-items: center; color: var(--qt-muted); font-size: .875rem; font-weight: 400; border: 1px solid #aabac6; border-radius: .38rem; background: #fff; padding-right: .75rem; }
#quote-tools .qt-input-wrap:focus-within { outline: 2px solid #0A4D8C; outline-offset: 2px; }
#quote-tools .qt-input-wrap input {
  appearance: none;
  width: 100%;
  min-width: 0;
  color: var(--qt-ink);
  border: 0;
  padding: .65rem .75rem;
  margin: 0;
  min-height: 2.65rem;
  font-size: 1rem;
  background: transparent;
  box-shadow: none;
}
#quote-tools .qt-input-wrap input:focus { outline: 0; }
#quote-tools .qt-input-wrap:has([aria-invalid="true"]) { border-color: #a53d2e; }
#quote-tools .qt-times { text-align: center; align-self: end; line-height: 2.65rem; color: var(--qt-muted); }
#quote-tools .qt-subtotal { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; min-width: 0; }
#quote-tools .qt-subtotal strong { font-weight: 550; font-size: 1rem; line-height: 1.25; min-height: 2.65rem; display: flex; align-items: center; text-align: right; overflow-wrap: anywhere; }
#quote-tools .qt-error { margin: .6rem 0 0; color: #913827; font-size: .85rem; }
#quote-tools .qt-add,
#quote-tools .qt-download,
#quote-tools .qt-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border-radius: .4rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2.8rem;
}
#quote-tools :is(a, button) svg { display: block; width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
#quote-tools .qt-add { color: var(--qt-ink); background: transparent; border: 1px solid #9baebd; padding: .68rem 1rem; }
#quote-tools .qt-add:hover { background: var(--qt-card); }
#quote-tools .qt-total { border-top: 1px solid var(--qt-line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding-top: 1.2rem; }
#quote-tools .qt-total > span { font-size: .9rem; }
#quote-tools .qt-total strong { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 550; line-height: 1.12; letter-spacing: -.04em; text-align: right; overflow-wrap: anywhere; }
#quote-tools .qt-quote { padding: clamp(1.35rem, 3.1vw, 2.8rem); background: var(--qt-card); border: 1px solid #dedcd4; border-radius: .65rem; }
#quote-tools .qt-quote h2 { font-size: clamp(1.55rem, 2.45vw, 2.4rem); }
#quote-tools .qt-summary { display: grid; margin: 0 0 1.45rem; }
#quote-tools .qt-summary > div { display: grid; grid-template-columns: minmax(5.2rem, 1fr) minmax(0, 1.8fr); gap: .65rem; border-bottom: 1px solid #d0dce5; padding: .65rem 0; font-size: .86rem; line-height: 1.4; }
#quote-tools .qt-summary dt { color: var(--qt-muted); }
#quote-tools .qt-summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; color: var(--qt-ink); }
#quote-tools .qt-message { margin: 1.1rem 0 .85rem; }
#quote-tools .qt-message h3 { font-size: .94rem; line-height: 1.35; font-weight: 650; letter-spacing: -.02em; margin: 0; }
#quote-tools .qt-wa-context { font-size: .84rem; line-height: 1.5; margin: .4rem 0 .7rem; color: var(--qt-muted); }
#quote-tools .qt-share-preview { font-size: .88rem; line-height: 1.55; color: var(--qt-ink); margin: 0; padding: .85rem 1rem; border-left: 3px solid #0a4d8c; background: #fff; white-space: pre-wrap; overflow-wrap: anywhere; }
#quote-tools .qt-whatsapp { width: 100%; padding: .85rem 1rem; color: #fff; background: #0A4D8C; text-decoration: none; text-align: center; }
#quote-tools .qt-whatsapp:hover { background: #083a68; }
#quote-tools .qt-notes-label { display: block; font-size: .84rem; font-weight: 600; }
#quote-tools .qt-notes-label span { color: var(--qt-muted); font-weight: 400; }
#quote-tools textarea { display: block; width: 100%; resize: vertical; min-height: 4.15rem; margin: .5rem 0 1.1rem; padding: .6rem .7rem; font-size: .9rem; line-height: 1.45; color: var(--qt-ink); background: #fff; border: 1px solid #aabac6; border-radius: .38rem; }
#quote-tools .qt-download { width: 100%; background: transparent; color: var(--qt-ink); border: 1px solid #9baebd; padding: .8rem 1rem; }
#quote-tools .qt-download:hover { background: #fff; }
#quote-tools .qt-local { margin: .65rem 0 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid #d5d5cc; color: var(--qt-muted); font-size: .78rem; line-height: 1.5; }
#quote-tools .qt-status { grid-column: 1 / -1; margin: 0; color: var(--qt-ink); line-height: 1.5; font-size: .9rem; }
#quote-tools .qt-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; }
#quote-tools .qt-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#quote-tools .qt-item-heading { display: flex; gap: .55rem; align-items: baseline; font-size: 1.06rem; font-weight: 650; letter-spacing: -.025em; margin: 0 0 .55rem; }
#quote-tools .qt-item-count { color: var(--qt-muted); font-size: .85rem; font-weight: 550; }
#quote-tools .qt-empty { margin: 0; color: var(--qt-muted); font-size: .88rem; }
#quote-tools .qt-empty a { color: #0a4d8c; text-decoration: underline; text-underline-offset: .16rem; }
#quote-tools .qt-items { list-style: none; margin: 0; padding: 0; }
#quote-tools .qt-item { padding: .8rem 0 .95rem; border-top: 1px solid #d5d5cc; }
#quote-tools .qt-item-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
#quote-tools .qt-item-head h4 { margin: 0; color: var(--qt-ink); font-size: .98rem; line-height: 1.35; overflow-wrap: anywhere; }
#quote-tools .qt-remove-item { display: grid; place-content: center; color: var(--qt-muted); background: transparent; border: 0; border-radius: .3rem; width: 2.5rem; height: 2.5rem; flex: none; }
#quote-tools .qt-remove-item:hover { background: #e8e5dc; }
#quote-tools .qt-item-meta { margin: -.1rem 0 .55rem; color: var(--qt-muted); font-size: .79rem; line-height: 1.5; overflow-wrap: anywhere; }
#quote-tools .qt-item-measure label { font-size: .78rem; color: var(--qt-muted); font-weight: 550; }
#quote-tools .qt-item-input { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem .75rem; margin-top: .25rem; }
#quote-tools .qt-item-quantity { min-width: 0; width: 8rem; max-width: 100%; min-height: 2.6rem; border: 1px solid #aabac6; background: white; color: var(--qt-ink); border-radius: .38rem; padding: .55rem .7rem; font-size: 1rem; }
#quote-tools .qt-item-quantity[aria-invalid="true"] { border-color: #a53d2e; }
#quote-tools .qt-apply-area { min-height: 2.65rem; color: #0a4d8c; background: transparent; border: 0; padding: .35rem .15rem; font-size: .82rem; font-weight: 650; text-decoration: underline; text-underline-offset: .18rem; }
#quote-tools .qt-apply-area:disabled { color: #606971; text-decoration: none; cursor: default; }
#quote-tools .qt-current { margin: .75rem 0 1.2rem; padding: .6rem 0; border-block: 1px solid #d5d5cc; }
#quote-tools .qt-current summary { color: var(--qt-muted); cursor: pointer; font-size: .83rem; }
#quote-tools .qt-current .qt-summary { margin: .35rem 0 0; }

@media (max-width: 820px) {
  #quote-tools { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  #quote-tools .qt-measurements { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .55rem; }
  #quote-tools .qt-subtotal { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .2rem; }
  #quote-tools .qt-subtotal strong { min-height: 1.35rem; font-size: .9rem; }
  #quote-tools textarea,
  #quote-tools input.qt-name { font-size: 1rem; }
}
