/* --- WooCommerce Buttons: unify color scheme --- */

/* Primary cart/checkout buttons */
.wc-block-components-button.contained,
.wp-block-woocommerce-cart .wc-block-components-button.contained,
.wp-block-woocommerce-checkout .wc-block-components-button.contained,
.wc-block-cart__submit-button,
.wc-block-checkout__submit-button {
    background-color: #42A52B !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

/* Hover + focus states */
.wc-block-components-button.contained:hover,
.wc-block-cart__submit-button:hover,
.wc-block-checkout__submit-button:hover {
    background-color: #379023 !important; /* slightly darker green */
    color: #fff !important;
}

/* Disabled state (optional) */
.wc-block-components-button.is-disabled,
.wc-block-components-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Text-based or outline buttons (e.g. Apply coupon, Return to shop) */
.wc-block-components-button:not(.contained),
.woocommerce button.button.alt,
.woocommerce a.button.alt {
    background-color: transparent !important;
    color: #42A52B !important;
    border: 2px solid #42A52B !important;
    border-radius: 4px;
}

.wc-block-components-button:not(.contained):hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: #42A52B !important;
    color: #fff !important;
}
/* Fix WooCommerce Cart alignment */
.wp-block-woocommerce-cart.alignwide {
    margin-inline: auto !important;
    max-width: var(--wp--style--global--wide-size, 1200px); /* optional: controls width */
    width: 100%;
}

.elementor-nav-menu--dropdown,
.elementor-nav-menu--dropdown .elementor-item,
.elementor-nav-menu__container.elementor-nav-menu--dropdown {
  z-index: 150 !important;
}


.variation-unrolled {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}
.variation-unrolled-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 2px solid #42A52B;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: background 0.15s;
}
.variation-unrolled-option:hover {
    background: #e6f4e1;
}
.variation-unrolled-option.selected {
    background: #42A52B;
    color: #fff;
}
.variation-unrolled-option.selected .save-tag {
    color: #fff;
}
.save-tag {
    font-size: 0.9em;
    color: #42A52B;
    font-weight: 600;
}




/* --- Fix layout so the stock notifier goes BELOW variation info --- */
.single_variation_wrap {
  display: block !important; /* kill Elementor's flex on this wrapper */
  width: 100%;
}

.single_variation_wrap .woocommerce-variation,
.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-availability,
.single_variation_wrap .woocommerce-variation-add-to-cart {
  display: block !important;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.single_variation_wrap .woocommerce-variation-add-to-cart { height:auto; } 
.single_add_to_cart_button {
  display: block !important;
  margin: 0.75rem auto 0 !important; /* top, auto-sides, bottom */
  text-align: center;
  float:none !important;
}
/* --- Minimal clean style for the notifier box --- */
.cwginstock-subscribe-form {
  display: block !important;
  margin-top: 1em;
  padding: 1em;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

/* Remove Bootstrap panel clutter */
.cwginstock-subscribe-form .panel,
.cwginstock-subscribe-form .panel-primary,
.cwginstock-subscribe-form .panel-heading,
.cwginstock-subscribe-form .panel-body {
  all: unset;
  display: block;

}

.cwginstock-subscribe-form h4 {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5em;
  color: #333;
}

.cwginstock-subscribe-form input[type="email"] {
  width: 100%;
  text-align: center;
  padding: 0.6em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 0.5em;
}

.cwginstock-subscribe-form input[type="submit"] {
  width: 100%;
  background: #42a52b;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6em;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cwginstock-subscribe-form input[type="submit"]:hover {
  background: #379223;
}
.cwginstock-panel-heading{
	background-color:transparent !important;
	
}
/* Center Cloudflare captcha */
#cwg-turnstile-captcha {
  display: flex;
  justify-content: center;
  margin: 0.5em 0;
}


/* --- Out of stock badge on product cards --- */
li.product.outofstock {
  position: relative;
}

li.product.outofstock::before {
  content: "Out of stock";
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 100, 0, 0.9);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.85em;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
}

/* --- Dim the product image for visual cue --- */
li.product.outofstock img {
  opacity: 0.55;
  filter: grayscale(30%);
}

/* --- Optional: style the button differently --- */
li.product.outofstock .button {
  background: #888 !important;
 /* cursor: not-allowed;
  pointer-events: none;*/
  opacity: 0.8;
}
