/* The Herd delivery checker — sits under the home story headline. */
.herd-delivery-checker {
  box-sizing: border-box;
  width: min(560px, 100%);
  margin-top: 24px;
  padding: 0;
  background: transparent;
  text-align: left;
}

.herd-delivery-checker__heading {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
}

.herd-delivery-checker__form {
  margin: 0;
}

.herd-delivery-checker__label {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #000;
}

.herd-delivery-checker__required {
  margin-left: 2px;
  font-weight: 400;
  color: #c00;
  border: 0;
  text-decoration: none;
}

.herd-delivery-checker__input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 16px;
  background: #f5f5f5;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 48px;
  color: #000;
}

.herd-delivery-checker__input::placeholder {
  color: #8a8a8a;
}

.herd-delivery-checker__input:focus {
  outline: 2px solid #a78359;
  outline-offset: 0;
}

.herd-delivery-checker__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  min-height: 56px;
  margin: 12px 0 0;
  padding: 12px 20px;
  background: #a78359;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  cursor: pointer;
}

.herd-delivery-checker__submit:hover,
.herd-delivery-checker__submit:focus-visible {
  background: #8a6c3e;
}

.herd-delivery-checker__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.herd-delivery-checker__result {
  margin: 12px 0 0;
  padding: 12px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.herd-delivery-checker__result[hidden] {
  display: none;
}

.herd-delivery-checker__result.is-ok {
  background: #e6f4ea;
  border-left: 4px solid #1e7e34;
  color: #14551f;
}

.herd-delivery-checker__result.is-err {
  background: #fdecea;
  border-left: 4px solid #c0392b;
  color: #7a241a;
}

/* Keep card centred under the story headline. */
.home-story__copy .herd-delivery-checker {
  align-self: center;
}
