.moze-bis-card {
  margin: 0;
  padding: 4px;
  background: #fff;
}
.moze-bis-title { margin: 0 42px 8px 0; font-size: 1.12rem; font-weight: 700; }
.moze-bis-description { margin: 10px 0 14px; }
.moze-bis-row { display: flex; gap: 8px; flex-wrap: wrap; }
.moze-bis-row input { flex: 1 1 230px; min-height: 44px; }
.moze-bis-row button { min-height: 44px; }
.moze-bis-message { margin: 10px 0 0; font-size: .92em; }
.moze-bis-message.is-error { color: #b32d2e; }
.moze-bis-message.is-success { color: #008a20; }
.moze-bis-cart-button-hidden,
.moze-bis-quantity-hidden { display: none !important; }
.moze-bis-notify-button { cursor: pointer; }

/* Extra protection for themes that add their own AJAX click handlers. */
form.variations_form.moze-bis-waitlist-active .single_add_to_cart_button,
form.variations_form.moze-bis-waitlist-active .quantity {
  display: none !important;
}

.moze-bis-variation-summary {
  margin: 0 0 10px;
  font-size: .94em;
  line-height: 1.5;
}
.moze-bis-separator { opacity: .55; }

body.moze-bis-modal-open { overflow: hidden; }
.moze-bis-modal[hidden] { display: none !important; }
.moze-bis-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.moze-bis-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}
.moze-bis-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}
.moze-bis-modal-close {
  position: absolute !important;
  top: 10px !important;
  right: 12px !important;
  left: auto !important;
  inset-inline-start: auto !important;
  inset-inline-end: 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.moze-bis-modal-close:hover,
.moze-bis-modal-close:focus { background: rgba(0, 0, 0, .06); }

@media (max-width: 480px) {
  .moze-bis-modal { align-items: flex-end; padding: 0; }
  .moze-bis-modal-dialog {
    width: 100%;
    max-height: 85vh;
    padding: 20px 16px;
    border-radius: 18px 18px 0 0;
  }
  .moze-bis-row { display: block; }
  .moze-bis-row input,
  .moze-bis-row button { width: 100%; }
  .moze-bis-row button { margin-top: 8px; }
}

/* Anti-spam honeypot: hidden from real users, kept in the DOM for bots. */
.moze-bis-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Back in stock: unavailable size swatches remain selectable, but are visually
 * distinct from immediately purchasable sizes. WoodMart marks these exposed
 * swatches as wd-enabled, so the plugin adds its own state class in JS. */
body.moze-bis-enabled-product
.wd-swatches-product[data-id="pa_size"]
.wd-swatch.moze-bis-out-of-stock-swatch {
  border-color: #d7b8f3 !important;
  opacity: 1 !important;
}

body.moze-bis-enabled-product
.wd-swatches-product[data-id="pa_size"]
.wd-swatch.moze-bis-out-of-stock-swatch.wd-active {
  border-color: #a96fd3 !important;
  background-color: #efe1f8 !important;
}
