.bc-waitlist {
  --bc-wl-btn-bg: #781682;
  --bc-wl-btn-text: #ffffff;
  --bc-wl-btn-hover: #5e1268;
  --bc-wl-panel-bg: #f8fafc;
  --bc-wl-border: #e2e8f0;
  --bc-wl-title: #0f172a;
  --bc-wl-input-border: #cbd5e1;
  --bc-wl-focus: #781682;
  --bc-wl-success: #047857;
  --bc-wl-error: #b91c1c;
  --bc-wl-muted: #475569;
  --bc-wl-radius: 10px;
  --bc-wl-control-h: 44px;

  margin-top: 16px;
  max-width: 420px;
}

.bc-waitlist.is-expanded,
.bc-waitlist:has(.bc-waitlist__form:not([hidden])) {
  padding: 14px 14px 12px;
  background: var(--bc-wl-panel-bg);
  border: 1px solid var(--bc-wl-border);
  border-radius: var(--bc-wl-radius);
}

.bc-waitlist__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--bc-wl-title);
  letter-spacing: -0.01em;
}

.bc-waitlist__title-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--bc-wl-focus);
}

.bc-waitlist__hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bc-wl-muted);
}

.bc-waitlist__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bc-wl-title);
}

.bc-waitlist__row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: stretch;
}

.bc-waitlist__email.input-text,
.bc-waitlist__email {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--bc-wl-control-h) !important;
  min-height: var(--bc-wl-control-h);
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--bc-wl-input-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--bc-wl-title) !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.bc-waitlist__email::placeholder {
  color: #64748b;
  opacity: 1;
}

.bc-waitlist__email:focus,
.bc-waitlist__email:focus-visible {
  border-color: var(--bc-wl-focus) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc-wl-focus) 22%, transparent) !important;
}

.bc-waitlist__email[readonly] {
  background: #f1f5f9 !important;
  color: #334155 !important;
  cursor: default;
}

.bc-waitlist__submit,
.bc-waitlist__toggle,
.bc-waitlist button.bc-waitlist__submit,
.bc-waitlist button.bc-waitlist__toggle,
.bc-waitlist .button.bc-waitlist__submit,
.bc-waitlist .button.bc-waitlist__toggle,
.bc-waitlist .button.alt.bc-waitlist__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: var(--bc-wl-control-h) !important;
  min-height: var(--bc-wl-control-h) !important;
  min-width: 112px;
  margin: 0 !important;
  padding: 0 16px !important;
  border: none !important;
  border-radius: 8px !important;
  background: var(--bc-wl-btn-bg) !important;
  background-image: none !important;
  color: var(--bc-wl-btn-text) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: 0;
  text-transform: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 180ms ease, opacity 180ms ease;
}

.bc-waitlist__submit:hover,
.bc-waitlist__toggle:hover,
.bc-waitlist .button.bc-waitlist__submit:hover,
.bc-waitlist .button.bc-waitlist__toggle:hover,
.bc-waitlist .button.alt.bc-waitlist__submit:hover {
  background: var(--bc-wl-btn-hover) !important;
  background-image: none !important;
  color: var(--bc-wl-btn-text) !important;
  opacity: 1;
}

.bc-waitlist__submit:focus-visible,
.bc-waitlist__toggle:focus-visible {
  outline: 2px solid var(--bc-wl-focus);
  outline-offset: 2px;
}

.bc-waitlist__submit:disabled,
.bc-waitlist__submit.is-loading {
  opacity: 0.72;
  cursor: not-allowed;
}

.bc-waitlist__message {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}

.bc-waitlist__message.is-success {
  color: var(--bc-wl-success);
}

.bc-waitlist__message.is-error {
  color: var(--bc-wl-error);
}

.bc-product-grid__waitlist {
  margin-top: 6px;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.bc-product-grid__waitlist.is-expanded,
.bc-product-grid__waitlist:has(.bc-waitlist__form:not([hidden])) {
  padding: 0;
  background: transparent;
  border: 0;
}

.bc-product-grid__waitlist .bc-waitlist__hint,
.bc-product-grid__waitlist .bc-waitlist__title,
.bc-product-grid__waitlist .bc-waitlist__label {
  display: none;
}

.bc-product-grid__waitlist .bc-waitlist__email {
  max-width: 100%;
  height: 36px !important;
  min-height: 36px;
  font-size: 13px !important;
}

.bc-product-grid__waitlist .bc-waitlist__submit,
.bc-product-grid__waitlist .bc-waitlist__toggle {
  height: 36px !important;
  min-height: 36px !important;
  min-width: 88px;
  padding: 0 12px !important;
  font-size: 12px !important;
}

.bc-product-grid__row.is-unavailable .bc-product-grid__qty-cell {
  vertical-align: top;
}

@media (max-width: 480px) {
  .bc-waitlist {
    max-width: 100%;
  }

  .bc-waitlist__row {
    flex-wrap: wrap;
  }

  .bc-waitlist__email,
  .bc-waitlist__submit {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-waitlist__email,
  .bc-waitlist__submit,
  .bc-waitlist__toggle {
    transition: none;
  }
}
