/* Optional measurement stays in page flow so it never covers the inquiry. */
.measurement-banner {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 720px;
  max-height: none;
  margin: 24px auto;
  padding: 16px;
  overflow: visible;
  border: 1px solid #dedbd7;
  border-radius: 8px;
  background: #f8f7f5;
  box-shadow: none;
  color: #242424;
  scroll-margin-block: 100px 24px;
}

.measurement-banner[hidden] {
  display: none !important;
}

.measurement-banner h2 {
  margin: 0 28px 6px 0;
  color: #242424;
  font-family: var(--sans, Arial, sans-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: normal;
}

.measurement-banner > p,
.measurement-banner > p:not(.eyebrow) {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.45;
}

.measurement-banner .measurement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.measurement-banner .measurement-actions .button {
  flex: 1 1 90px;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #686460;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  color: #242424;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
}

.measurement-banner .measurement-actions .button:hover {
  background: #eeece9;
  transform: none;
}

.measurement-banner .measurement-actions .button:disabled {
  border-color: #bdb9b4;
  background: #eeece9;
  color: #666;
  cursor: not-allowed;
  opacity: 1;
}

.measurement-banner > a {
  display: inline-block;
  margin-top: 10px;
  color: #45413d;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.measurement-banner .measurement-close {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #45413d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.measurement-banner button:focus-visible,
.measurement-banner a:focus-visible {
  outline: 2px solid #843e27;
  outline-offset: 3px;
}

.measurement-banner #measurement-gpc-status:not([hidden]) {
  margin-top: 8px;
  color: #31513b !important;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
}

.inquiry-with-measurement {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  margin: 0;
  justify-self: center;
}

.inquiry-with-measurement > .measurement-banner {
  width: 100%;
  margin: 12px 0 0;
}

.contact-form-panel > .measurement-banner {
  width: 100%;
  max-width: 540px;
  margin: 18px auto 0;
}

@media (max-width: 980px) {
  .inquiry-with-measurement {
    max-width: 520px;
  }
}
