/*
 * "Tell me when it is back" (Modules\StockAlerts) under "Out of stock" on the product
 * page: a light blue card, a bell, the address and a blue button (white on --hs-blue-600
 * 4.78:1; the orange stays for "Add to cart").
 */
.hs-stock-alert {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 16px;
  border-radius: var(--hs-r-lg, 20px);
  corner-shape: var(--hs-corner-shape, round);
  background: var(--hs-account-tint-blue, #edf5fe);
  color: var(--hs-ink, #1f2547);
}

.hs-stock-alert[hidden],
.hs-stock-alert [hidden] {
  display: none !important;
}

.hs-stock-alert__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.hs-stock-alert__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--hs-blue-600, #0070e0);
}

.hs-stock-alert__icon .hs-icon {
  --hs-icon-accent: var(--hs-orange-600, #e06c00);
}

.hs-stock-alert__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.hs-stock-alert__text {
  margin: 2px 0 0;
  color: var(--hs-muted, #5b6180);
  font-size: 14.5px;
  line-height: 1.5;
}

.hs-stock-alert__form {
  display: flex;
  gap: 8px;
}

.hs-stock-alert .hs-stock-alert__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--hs-border-strong, #8a90ab);
  border-radius: var(--hs-r-md, 14px);
  background: #fff;
  box-shadow: none;
  color: var(--hs-ink, #1f2547);
  font: inherit;
  font-size: 16px; /* No zoom on focus in iOS. */
}

.hs-stock-alert .hs-stock-alert__input:focus {
  border-color: var(--hs-blue-600, #0070e0);
  outline: none;
  box-shadow: 0 0 0 3px rgb(0 112 224 / 18%);
}

.hs-stock-alert .hs-stock-alert__input[aria-invalid='true'] {
  border-color: var(--hs-state-failed, #be123c);
}

.hs-stock-alert .hs-stock-alert__button,
.hs-stock-alert .hs-stock-alert__button:is(:hover, :focus, :active) {
  display: inline-flex;
  flex: none;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 50px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: var(--hs-r-pill, 999px);
  background: var(--hs-blue-600, #0070e0);
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hs-stock-alert .hs-stock-alert__button:hover {
  background: var(--hs-blue-700, #185c9f);
}

.hs-stock-alert .hs-stock-alert__button:focus-visible {
  outline: 3px solid var(--hs-focus, #1f2547);
  outline-offset: 2px;
}

.hs-stock-alert .hs-stock-alert__button[aria-disabled='true'] {
  opacity: 0.7;
  cursor: progress;
}

/* A customer: the button alone, across. */
.hs-stock-alert__form.is-member .hs-stock-alert__button {
  flex: 1;
}

/* The bots' field, out of sight and reach. */
.hs-stock-alert__trap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.hs-stock-alert__error {
  margin: -4px 0 0;
  color: var(--hs-state-failed, #be123c);
  font-size: 14px;
  font-weight: 600;
}

.hs-stock-alert__note {
  margin: -2px 0 0;
  color: var(--hs-muted, #5b6180);
  font-size: 13px;
  line-height: 1.5;
}

.hs-stock-alert__note a {
  color: var(--hs-blue-600, #0070e0);
  font-weight: 700;
}

.hs-stock-alert__done {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--hs-r-md, 14px);
  background: #fff;
  font-size: 14.5px;
  font-weight: 600;
}

.hs-stock-alert__done:focus {
  outline: none;
}

.hs-stock-alert__done .hs-icon {
  flex: none;
  color: var(--hs-green, #2b7a3d);
}

.hs-stock-alert__done p {
  flex: 1;
  min-width: 12em;
  margin: 0;
}

.hs-stock-alert .hs-stock-alert__cancel,
.hs-stock-alert .hs-stock-alert__cancel:is(:hover, :focus, :active) {
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--hs-blue-600, #0070e0);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.hs-stock-alert .hs-stock-alert__cancel:hover {
  color: var(--hs-blue-700, #185c9f);
  text-decoration: underline;
}

@media (max-width: 479px) {
  .hs-stock-alert__form {
    flex-direction: column;
  }

  /* In a column "flex: 1" would take the height to nothing. */
  .hs-stock-alert .hs-stock-alert__input {
    flex: none;
  }
}
