/* Shared, in-place parts inquiry. Keep all styles scoped to the quote UI. */
.eqq-dialog {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-width: 480px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e0e2e4;
  border-radius: 12px;
  background: #fff;
  color: #202326;
  box-shadow: 0 24px 80px rgb(0 0 0 / 22%), 0 4px 16px rgb(0 0 0 / 8%);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
}

.eqq-dialog:not([open]),
.eqq-dialog [hidden],
.eqq-toast[hidden] {
  display: none !important;
}

.eqq-dialog::backdrop {
  background: rgb(15 20 24 / 58%);
}

.eqq-dialog *,
.eqq-toast,
.eqq-toast * {
  box-sizing: border-box;
}

.eqq-panel {
  padding: 32px;
}

.eqq-dialog .eqq-eyebrow {
  margin: 0 0 10px;
  color: var(--red-700, #97181d);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eqq-dialog #eqq-title {
  margin: 0;
  color: #202326;
  font-family: inherit;
  font-size: clamp(25px, 5vw, 30px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-transform: none;
}

.eqq-dialog .eqq-intro {
  margin: 12px 0 22px;
  color: #555d64;
  font-size: 15px;
  line-height: 1.6;
}

.eqq-item {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid #e7e9eb;
  border-left: 3px solid var(--red-600, #c82127);
  border-radius: 4px;
  background: #f7f8f9;
}

.eqq-part-label {
  display: block;
  margin: 0 0 3px;
  color: #596169;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eqq-dialog #eqq-part {
  display: block;
  color: #202326;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.eqq-form {
  margin: 0;
}

.eqq-form label {
  display: block;
  margin: 0 0 8px;
  color: #202326;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.eqq-form input[type="email"] {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #858d95;
  border-radius: 5px;
  background: #fff;
  color: #202326;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: none;
}

.eqq-form input[type="email"]::placeholder {
  color: #6c737a;
  opacity: 1;
}

.eqq-form input[aria-invalid="true"] {
  border-color: #ae2027;
}

.eqq-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.eqq-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.eqq-actions .eqq-send {
  border-color: var(--red-600, #c82127);
  background: var(--red-600, #c82127);
  color: #fff;
}

.eqq-actions .eqq-cancel {
  border-color: #cbd0d4;
  background: #fff;
  color: #30363b;
}

@media (hover: hover) {
  .eqq-actions .eqq-send:hover:not(:disabled) {
    border-color: var(--red-700, #97181d);
    background: var(--red-700, #97181d);
  }

  .eqq-actions .eqq-cancel:hover:not(:disabled) {
    border-color: #9ca4ab;
    background: #f3f4f5;
  }
}

.eqq-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.eqq-dialog :is(input, button, a):focus-visible,
.eqq-toast :is(button, a):focus-visible {
  outline: 3px solid #245d86;
  outline-offset: 3px;
}

.eqq-dialog .eqq-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border: 1px solid #cad6df;
  border-radius: 5px;
  background: #f2f6f9;
  color: #284b65;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.eqq-dialog .eqq-status[data-kind="error"],
.eqq-dialog .eqq-status[data-kind="validation"] {
  border-color: #e6b4b8;
  background: #fff3f3;
  color: #8c1c24;
}

.eqq-dialog .eqq-status[data-kind="success"] {
  border-color: #bfd8c9;
  background: #f0f8f3;
  color: #245c3d;
}

.eqq-dialog .eqq-status[data-kind="notice"] {
  border-color: #d9caaa;
  background: #fcf8ee;
  color: #6f531d;
}

.eqq-dialog .eqq-help {
  margin: 16px 0 0;
  color: #626970;
  font-size: 12px;
  line-height: 1.6;
}

.eqq-dialog :is(.eqq-status, .eqq-help) a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eqq-toast {
  position: fixed;
  z-index: 10000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(380px, calc(100vw - 40px));
  margin: 0;
  padding: 16px 20px;
  border: 1px solid #c7dacf;
  border-left: 4px solid #397a50;
  border-radius: 8px;
  background: #fff;
  color: #245c3d;
  box-shadow: 0 8px 32px rgb(0 0 0 / 15%);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.eqq-toast[data-kind="error"] {
  border-color: #e6b4b8;
  border-left-color: #ae2027;
  color: #8c1c24;
}

body.eqq-scroll-locked {
  overflow: hidden;
}

@media (max-width: 480px) {
  .eqq-panel {
    padding: 26px 22px;
  }

  .eqq-dialog .eqq-intro {
    margin-bottom: 20px;
  }

  .eqq-actions {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eqq-dialog *,
  .eqq-toast {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .eqq-dialog,
  .eqq-toast,
  .eqq-item,
  .eqq-dialog .eqq-status,
  .eqq-actions button {
    border-color: CanvasText;
  }
}
