.bulk-estimator {
  scroll-margin-top: 6rem;
}

.bulk-estimator [hidden] {
  display: none !important;
}

.bulk-estimator .estimate-intro {
  max-width: 60ch;
}

.estimate-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.2rem;
  margin-top: 1.25rem;
}

.estimate-panel {
  min-width: 0;
  background: #fff;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  padding: clamp(1rem, 2.5vw, 1.65rem);
}

.estimate-panel h3 {
  margin: 0;
}

.estimate-hint,
.estimate-details {
  color: #41566b;
  font-size: .875rem;
}

.estimate-hint {
  margin: .35rem 0 .75rem;
}

.estimate-field {
  display: grid;
  gap: .25rem;
  margin: .7rem 0 0;
  font-size: .9rem;
  font-weight: 600;
}

.estimate-field :is(input, select) {
  width: 100%;
  min-height: 2.65rem;
  padding: .4rem .55rem;
  border: 1px solid #a6b9cd;
  border-radius: 5px;
  background: #fff;
  color: #132d49;
  font: inherit;
  font-weight: 400;
}

.estimate-field input[type="number"] {
  max-width: 10rem;
}

.estimate-toggle {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  column-gap: .55rem;
  align-items: center;
  min-height: 2.6rem;
  margin: .55rem 0;
  font-size: .9rem;
  cursor: pointer;
}

.estimate-toggle input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #214d80;
}

.estimate-toggle span {
  grid-column: 2;
  color: #345b81;
  font-size: .8rem;
}

.estimate-photo {
  min-width: 0;
  margin: .9rem 0;
  padding: .2rem .85rem .55rem;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  background: #f7fafd;
}

.estimate-photo legend {
  padding: 0 .3rem;
  font-size: .9rem;
  font-weight: 650;
}

.estimate-photo-footer,
.estimate-subtotal,
.estimate-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .55rem 1rem;
}

.estimate-subtotal {
  padding-top: .7rem;
  margin-top: .9rem;
  border-top: 1px solid #d6e0ea;
}

.estimate-subtotal strong,
.estimate-total strong {
  color: #214d80;
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

.estimate-details {
  margin-top: .65rem;
}

.estimate-details summary,
.estimate-add,
.estimate-photo-footer button {
  cursor: pointer;
  color: #214d80;
}

.estimate-add,
.estimate-photo-footer button {
  min-height: 2.45rem;
  font-size: .875rem;
  background: transparent;
}

.estimate-add {
  border: 1px solid #a6b9cd;
  border-radius: 5px;
  padding: .25rem .65rem;
}

.estimate-photo-footer button {
  padding: 0;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.estimate-total {
  padding: 1rem clamp(1rem, 2.5vw, 1.65rem);
  margin-top: 1rem;
  background: #edf4fb;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
}

.estimate-total strong {
  display: block;
  font-size: 1.7rem;
}

.bulk-estimator :is(button, input, select, summary):focus-visible {
  outline: 2px solid #214d80;
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .estimate-panels {
    grid-template-columns: minmax(0, 1fr);
  }
}
