#estimate-dialog {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  width: min(37rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  box-shadow: 0 1.5rem 5rem #0b302a3d;
  overscroll-behavior: contain;
}
#estimate-dialog::backdrop { background: #082b23b8; }
html:has(#estimate-dialog[open]) { overflow: hidden; }
#estimate-dialog [hidden] { display: none; }
.estimate-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.estimate-bar img { width: 6rem; }
.estimate-progress { margin-inline-start: auto; font-size: .82rem; color: var(--body); }
.estimate-day-title { margin-bottom: .55rem; font-weight: 700; }
.estimate-day-title:empty { display: none; }
.estimate-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--forest);
  font-size: 1.75rem;
}
.estimate-body { padding: clamp(1.25rem, 4vw, 2.4rem); }
.estimate-body h2 { margin: 0 0 1.4rem; font-size: clamp(1.65rem, 4vw, 2.5rem); letter-spacing: -.05em; }
.estimate-choices { display: grid; gap: .5rem; }
.estimate-choice {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: .8rem;
  align-items: center;
  min-height: 48px;
  padding: .65rem 1rem;
  border: 1px solid #bcc9ba;
  border-radius: 5px;
  background: #fffdf7;
  color: var(--forest);
  font-weight: 700;
  text-align: start;
}
.estimate-choice:hover, .estimate-choice[aria-pressed="true"] { border-color: var(--forest); background: #ebf1e6; }
.estimate-back { min-height: 44px; margin-top: .7rem; padding: .5rem 0; color: var(--forest); border: 0; background: none; text-decoration: underline; text-underline-offset: .2em; }
#estimate-dialog label { display: block; font-size: .9rem; font-weight: 700; }
#estimate-dialog input:not([type="hidden"]) { display: block; width: 100%; padding: .7rem; margin: .3rem 0 0; border: 1px solid #859989; border-radius: 4px; background: white; color: var(--ink); font-size: 1rem; font-weight: 400; }
#estimate-zip { margin-bottom: 1.25rem !important; }
.estimate-fields, .estimate-dates, .estimate-windows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.estimate-fields { gap: .8rem; }
.estimate-wide { grid-column: 1 / -1; }
.estimate-dates { display: flex; overflow: auto; padding: .25rem; margin: .8rem -.25rem; }
.estimate-dates:empty, .estimate-windows:empty { display: none; }
.estimate-dates button, .estimate-windows button {
  padding: .6rem .7rem; min-height: 44px; border: 1px solid #aebfaf;
  border-radius: 5px; color: var(--forest); background: #fffcf5; line-height: 1.35;
}
.estimate-dates button { flex: none; }
.estimate-dates button[aria-pressed="true"], .estimate-windows button:hover { color: white; background: var(--forest); }
.estimate-summary, .estimate-selection { font-weight: 700; color: var(--forest); margin-bottom: .75rem; }
.estimate-confirm-note, .estimate-callback, .estimate-loading { font-size: .9rem; }
.estimate-confirm-note, .estimate-done, .estimate-retry { margin-top: 1rem; }
.estimate-callback { display: inline-block; margin-top: 1rem; }
.estimate-error { color: #96381d; margin: .65rem 0; }
@media (max-width: 460px) {
  .estimate-fields { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  #estimate-dialog { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .estimate-body { padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
}
