/* CHB back-in-stock waitlist on product pages */
html body.single-product .ema-bis-wrap,
html body.single-product .wt-notify-btn,
html body.single-product .cwginstock-subscribe-form,
html body.single-product .stock-notifier,
html body.single-product .woocommerce-back-in-stock-form,
html body.single-product .wc-block-components-product-back-in-stock-form {
  display: none !important;
}

html body.single-product .chb-stock-notify,
.chb-stock-notify {
  --chb-green: #2f3d2a;
  --chb-gold: #c9a84c;
  --chb-cream: #f7f2eb;
  --chb-ink: #3d4038;
  position: relative;
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 36rem;
  margin: 0.85rem 0 1.15rem;
  padding: 1.05rem 1.1rem 0.95rem;
  background: var(--chb-cream);
  border: 1px solid rgba(47, 61, 42, 0.12);
  border-radius: 14px;
  font-family: Montserrat, system-ui, sans-serif;
  color: var(--chb-ink);
  overflow: visible;
  z-index: 3;
}
html body.single-product .chb-stock-notify.is-hidden,
html body.single-product .chb-stock-notify[hidden],
.chb-stock-notify.is-hidden,
.chb-stock-notify[hidden] {
  display: none !important;
}
.chb-stock-notify *,
.chb-stock-notify *::before,
.chb-stock-notify *::after {
  box-sizing: border-box;
}
.chb-sn-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chb-gold);
}
.chb-sn-title {
  margin: 0 0 0.4rem;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--chb-green);
}
.chb-sn-copy {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--chb-ink);
}
.chb-sn-copy strong {
  font-weight: 650;
  color: var(--chb-green);
}
html body.single-product .chb-sn-form,
.chb-sn-form {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
  width: 100%;
  margin: 0;
}
.chb-sn-field {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}
.chb-stock-notify .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
html body.single-product .chb-sn-form input[type="email"],
.chb-sn-form input[type="email"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 1px solid rgba(47, 61, 42, 0.18);
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: var(--chb-ink);
  -webkit-appearance: none;
  appearance: none;
}
html body.single-product .chb-sn-form input[type="email"]:focus,
.chb-sn-form input[type="email"]:focus {
  outline: none;
  border-color: var(--chb-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.22);
}
html body.single-product .chb-sn-submit,
.chb-sn-submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--chb-green);
  color: #f7f2eb;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}
.chb-sn-submit:hover,
.chb-sn-submit:focus {
  background: #24301f;
}
.chb-sn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.chb-sn-msg {
  display: none;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--chb-green);
  font-weight: 600;
}
.chb-sn-msg.is-on {
  display: block;
}
.chb-sn-msg.is-error {
  color: #6b2c22;
  font-weight: 500;
}
.chb-sn-fine {
  margin: 0.7rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #6b6458;
}
.chb-sn-fine a {
  color: var(--chb-green);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.5);
}
.chb-sn-hp {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
}
.chb-stock-notify.is-done .chb-sn-form,
.chb-stock-notify.is-done .chb-sn-fine {
  display: none;
}
.chb-stock-notify.is-done .chb-sn-copy {
  display: none;
}

html body.single-product.chb-gold-layout .chb-stock-notify {
  grid-column: 1 / -1;
  width: min(36rem, 100%);
}

@media (max-width: 767px) {
  html body.single-product .chb-stock-notify,
  .chb-stock-notify {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.7rem 0 1rem !important;
    padding: 0.95rem 0.9rem 0.85rem;
  }
  .chb-sn-title {
    font-size: 1.28rem;
  }
  html body.single-product .chb-sn-form,
  .chb-sn-form {
    flex-direction: column;
    gap: 0.65rem;
  }
  html body.single-product .chb-sn-submit,
  .chb-sn-submit {
    width: 100%;
    min-height: 52px;
  }
  html body.single-product .chb-sn-form input[type="email"],
  .chb-sn-form input[type="email"] {
    font-size: 16px !important;
    min-height: 52px;
  }
}
