/* ss-global-product-stock-styles */
body.single-product {
  --ss-product-marmalade: #F7931A;
  --ss-product-marmalade-light: #ffb347;
  --ss-product-ink: #050505;
}

/* Premium orange availability notice. */
body.single-product .stock.out-of-stock,
body.single-product .stock.available-on-backorder {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--ss-product-marmalade) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--ss-product-marmalade), var(--ss-product-marmalade-light)) !important;
  color: var(--ss-product-ink) !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 22px rgba(247, 147, 26, 0.18);
}

/* Naja Duo only: its custom product template bypasses the stock-text filters. */
body.single-product.postid-56219 .stock.out-of-stock {
  font-size: 0 !important;
}

body.single-product.postid-56219 .stock.out-of-stock::after {
  content: 'Coming Soon';
  font-size: 0.78rem;
  line-height: 1.2;
}

/* Keep in-stock status distinct without the old red treatment. */
body.single-product .stock.in-stock {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* Replace the former form treatment with one premium card. */
body.single-product .cwginstock-subscribe-form {
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid transparent !important;
  border-radius: 18px !important;
  background:
    linear-gradient(var(--ss-product-ink), var(--ss-product-ink)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), var(--ss-product-marmalade)) border-box !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

body.single-product .cwginstock-subscribe-form .cwginstock-panel-heading {
  padding: 1rem 1.15rem !important;
  border: 0 !important;
  background: linear-gradient(135deg, var(--ss-product-marmalade), var(--ss-product-marmalade-light)) !important;
  color: var(--ss-product-ink) !important;
}

body.single-product .cwginstock-subscribe-form .cwginstock-panel-heading h4 {
  margin: 0 !important;
  color: var(--ss-product-ink) !important;
  font-size: clamp(0.9rem, 1.6vw, 1.05rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

body.single-product .cwginstock-subscribe-form .cwginstock-panel-body {
  padding: 1.15rem !important;
  border: 0 !important;
  background: transparent !important;
}

body.single-product .cwginstock-subscribe-form input.cwgstock_name,
body.single-product .cwginstock-subscribe-form input.cwgstock_email {
  display: block;
  width: 100% !important;
  min-height: 46px;
  margin: 0 0 0.75rem !important;
  padding: 0.7rem 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 999px !important;
  background: var(--ss-product-ink) !important;
  color: #fff !important;
  caret-color: var(--ss-product-marmalade);
  text-align: center;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

body.single-product .cwginstock-subscribe-form input.cwgstock_name::placeholder,
body.single-product .cwginstock-subscribe-form input.cwgstock_email::placeholder {
  color: #fff !important;
  opacity: 0.92;
}

body.single-product .cwginstock-subscribe-form input.cwgstock_name:focus,
body.single-product .cwginstock-subscribe-form input.cwgstock_email:focus {
  border-color: var(--ss-product-marmalade) !important;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(247, 147, 26, 0.2);
}

body.single-product .cwginstock-subscribe-form .cwgstock_button {
  display: block;
  width: 100% !important;
  min-height: 48px;
  margin: 0.2rem 0 0 !important;
  padding: 0.7rem 1rem !important;
  border: 1px solid var(--ss-product-marmalade) !important;
  border-radius: 12px !important;
  background: var(--ss-product-marmalade) !important;
  color: var(--ss-product-ink) !important;
  font-weight: 800 !important;
  line-height: 1.2;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

body.single-product .cwginstock-subscribe-form .cwgstock_button:hover,
body.single-product .cwginstock-subscribe-form .cwgstock_button:focus {
  background: var(--ss-product-marmalade-light) !important;
  color: var(--ss-product-ink) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(247, 147, 26, 0.25);
}

body.single-product .cwginstock-subscribe-form .cwgstock_output {
  margin-top: 0.8rem;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.single-product .cwginstock-subscribe-form .cwgstock_output .error,
body.single-product .cwginstock-subscribe-form .cwgstock_output .cwg-error {
  color: #ffb3b3 !important;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  body.single-product .stock.out-of-stock,
  body.single-product .stock.available-on-backorder,
  body.single-product .stock.in-stock {
    font-size: 0.72rem;
  }

  body.single-product .cwginstock-subscribe-form .cwginstock-panel-body {
    padding: 1rem !important;
  }
}
