.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 0.65rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid #e5cb73;
  border-radius: 0.7rem;
  background: #fff4c9;
  color: #3d2c0b;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
}

.quote-button:hover { background: #ffe99a; }

.quote-dialog {
  box-sizing: border-box;
  width: min(40rem, calc(100% - 1.5rem));
  max-height: calc(100% - 1.5rem);
  margin: auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid #e8dfcd;
  border-radius: 1rem;
  background: #fffdf8;
  color: #29241a;
}

.quote-dialog::backdrop { background: rgb(23 28 36 / 60%); }
.quote-dialog h2 { margin: 0 3rem 0.35rem 0; }
.quote-dialog p { margin: 0.45rem 0 1rem; }
.quote-product { font-weight: 650; color: #614c1d; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }

.quote-grid label {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.quote-grid input,
.quote-grid select,
.quote-grid textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.6rem;
  border: 1px solid #bcb39e;
  border-radius: 0.5rem;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
}

.quote-wide { grid-column: 1 / -1; }
.quote-dialog .quote-privacy { font-size: 0.85rem; color: #615848; }
.quote-dialog button:disabled { opacity: 0.65; cursor: wait; }
.quote-dialog #quote-status:empty { margin: 0; }
.quote-dialog #quote-status { color: #544019; font-weight: 600; }

#quote-link-box label { display: grid; gap: .4rem; margin-bottom: .75rem; }
#quote-link-url { width: 100%; border: 1px solid #bcb39e; border-radius: .5rem; padding: .55rem; font: inherit; }
#quote-link-box a, #quote-link-box button { margin: 0 .4rem .4rem 0; }

@media (max-width: 440px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
}
