/* Back in Stock — compact notify form, matched to the Novo Core Labs UI. */

.ncl-bis {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border, #e5e5e5);
  border-radius: var(--radius, 8px);
  background: var(--navy-tint, rgba(13, 27, 75, 0.05));
}

.ncl-bis[hidden] {
  display: none;
}

.ncl-bis__heading {
  margin: 0 0 0.625rem;
  font-size: 0.8125rem;
  font-weight: var(--fw-semibold, 600);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy, #0d1b4b);
}

.ncl-bis__btn {
  width: 100%;
}

.ncl-bis__btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.ncl-bis__btn.is-subscribed-btn {
  gap: 0.375rem;
}

.ncl-bis__msg {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.ncl-bis__msg:empty {
  display: none;
}

.ncl-bis__msg.is-success {
  color: var(--green-dark, #166534);
}

.ncl-bis__msg.is-error {
  color: #b3261e;
}

.ncl-bis.is-subscribed {}

.ncl-bis__login {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Compact shop/archive card variant — shares footer row with the OOS badge. */
.ncl-bis--loop {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  min-width: 0;
}

.ncl-bis--loop.is-subscribed {
  background: none;
  border: none;
}

.ncl-bis--loop .ncl-bis__heading,
.ncl-bis--loop .ncl-bis__msg {
  display: none;
}

/* Product-page form uses full-width buttons; loop cards match other card CTAs. */
.ncl-bis--loop .ncl-bis__btn,
.ncl-bis--loop .ncl-btn {
  width: auto;
}

.ncl-bis--loop .ncl-bis__btn.is-processing,
.ncl-bis--loop .ncl-bis__btn.is-subscribed-btn {
  opacity: 0.6;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.ncl-bis--loop .ncl-bis__btn.is-processing {
  cursor: progress;
  opacity: 1;
}

.ncl-bis--loop .ncl-bis__btn.is-processing,
.ncl-bis--loop .ncl-bis__btn.is-subscribed-btn {
  gap: 0.375rem;
}

.ncl-bis__spinner {
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ncl-bis-spin 0.7s linear infinite;
}

.ncl-bis__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: var(--fw-bold, 700);
}

.ncl-bis__check::before {
  content: '\2713';
}

@keyframes ncl-bis-spin {
  to { transform: rotate(360deg); }
}

.ncl-bis__login a {
  color: var(--cobalt, #0d1b4b);
  text-decoration: underline;
}

/* Fallback toast styles when quick-buy.css is not loaded (matches theme toast). */
.ncl-toast {
  position: fixed;
  bottom: var(--space-md, 1rem);
  left: var(--space-md, 1rem);
  right: var(--space-md, 1rem);
  transform: translateY(12px);
  z-index: 1300;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: var(--fw-medium, 500);
  color: var(--white, #fff);
  background: var(--navy, #0d1b4b);
  border-radius: var(--radius, 8px);
  box-shadow: 0 12px 32px rgba(3, 11, 39, 0.3);
  opacity: 0;
  transition: opacity var(--duration, 0.2s) var(--ease, ease), transform var(--duration, 0.2s) var(--ease, ease);
}

.ncl-toast__body {
  flex: 1;
  min-width: 0;
  text-align: left;
  line-height: 1.4;
}

.ncl-toast__dismiss {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--radius, 8px);
  background: transparent;
  color: var(--white, #fff);
  font-size: 1.25rem;
  line-height: 1;
  opacity: 0.75;
  cursor: pointer;
}

.ncl-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .ncl-toast {
    left: 50%;
    right: auto;
    width: max-content;
    max-width: min(420px, calc(100vw - 2 * var(--space-md, 1rem)));
    transform: translate(-50%, 12px);
  }

  .ncl-toast.is-visible {
    transform: translate(-50%, 0);
  }
}

.ncl-toast a {
  color: var(--white, #fff);
  text-decoration: underline;
  margin-left: 0.375rem;
}
