.estimate-photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.estimate-photo-preview[hidden] {
  display: none;
}

.estimate-photo-preview figure {
  min-width: 0;
  margin: 0;
}

.estimate-photo-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #ded7ca;
  border-radius: 6px;
  background: #f4f4f4;
}

.estimate-photo-preview figcaption {
  margin-top: 4px;
  overflow: hidden;
  color: #6c6c6c;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.estimate-photo-more {
  min-height: 44px;
  border: 1px dashed #c7b27e;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #785e24;
  background: #fffaf0;
  font-size: 12px;
  font-weight: 700;
}

.estimate-submit-status {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #e4d7ba;
  border-radius: 6px;
  color: #514930;
  background: #fffaf0;
  font-size: 13px;
  line-height: 1.55;
}

.estimate-submit-status[hidden] {
  display: none;
}

.estimate-submit-status.is-loading {
  border-color: #c9b16f;
  color: #514015;
}

.estimate-submit-status.is-success {
  border-color: #a8c7ad;
  color: #24572d;
  background: #f2faf3;
}

.estimate-submit-status.is-error {
  border-color: #d9aaa4;
  color: #8c251a;
  background: #fff5f3;
}

.estimate-success {
  padding: 16px 12px;
  border-top: 1px solid #b8d5bd;
  border-bottom: 1px solid #b8d5bd;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #234d2a;
  background: #f3faf4;
  text-align: center;
}

.estimate-success[hidden] {
  display: none;
}

.estimate-success-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #348a45;
  font-size: 24px;
  font-weight: 800;
}

.estimate-success strong {
  font-size: 17px;
  line-height: 1.4;
}

.estimate-success p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.estimate-success a {
  min-height: 40px;
  margin-top: 3px;
  padding: 0 16px;
  border: 1px solid #b9994d;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4c3a12;
  background: #fff;
  font-weight: 700;
}

[data-estimate-form][aria-busy="true"] [data-submit-button] {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 420px) {
  .estimate-photo-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
