/* Branded coupon entry in WooCommerce Cart and Checkout Blocks.
   Presentation only; coupon validation and totals remain native. */
body.woocommerce-cart .wc-block-components-totals-coupon,
body.woocommerce-checkout .wc-block-components-totals-coupon {
  max-width: 100%;
  min-width: 0;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form,
body.woocommerce-checkout .wc-block-components-totals-coupon__form {
  display: flex !important;
  align-items: stretch !important;
  gap: 10px !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-text-input {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form input,
body.woocommerce-checkout .wc-block-components-totals-coupon__form input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 48px !important;
  color: #171A2B !important;
  -webkit-text-fill-color: #171A2B !important;
  background: #FFFFFF !important;
  border: 2px solid #BDB1D9 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font: 500 15px/1.4 "Inter",system-ui,sans-serif !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form input:focus,
body.woocommerce-checkout .wc-block-components-totals-coupon__form input:focus {
  border-color: #6F6DA8 !important;
  outline: 2px solid #B8E85A !important;
  outline-offset: 1px !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 116px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 18px !important;
  box-sizing: border-box !important;
  border: 2px solid #B8E85A !important;
  border-radius: 9px !important;
  background: #30245E !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: none !important;
  font: 800 14px/1.2 "Inter",system-ui,sans-serif !important;
  text-transform: none !important;
  cursor: pointer !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button:not(:disabled):hover,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button:not(:disabled):hover {
  background: #483683 !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button:disabled,
body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button:disabled {
  background: #E7E1F0 !important;
  border-color: #C9BCE0 !important;
  color: #696179 !important;
  -webkit-text-fill-color: #696179 !important;
  cursor: not-allowed !important;
  opacity: 1 !important;
}
@media (max-width: 480px) {
  body.woocommerce-cart .wc-block-components-totals-coupon__form,
  body.woocommerce-checkout .wc-block-components-totals-coupon__form {
    flex-wrap: wrap !important;
  }
  body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input,
  body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-text-input {
    flex: 1 1 100% !important;
  }
  body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button,
  body.woocommerce-checkout .wc-block-components-totals-coupon__form .wc-block-components-button {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}

/* Mischievous Aliens checkout journey — native WooCommerce Blocks.
   Styles are scoped to cart/checkout actions. Do not alter Stripe/Link/Google Pay wallets. */
body.woocommerce-cart .wc-block-cart__submit,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .wc-block-cart__submit-container,
body.woocommerce-cart .wc-block-cart__submit-container > a {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-container a.wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  min-height: 62px !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 15px 20px !important;
  background: #B8E85A !important;
  color: #171A2B !important;
  -webkit-text-fill-color: #171A2B !important;
  border: 2px solid #95C238 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
  font: 800 clamp(16px, 2.5vw, 20px)/1.3 "Inter",system-ui,sans-serif !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  text-transform: none !important;
  transition: background-color .15s ease !important;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:hover {
  background: #C5F276 !important;
  color: #171A2B !important;
  -webkit-text-fill-color: #171A2B !important;
}
body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible {
  outline: 3px solid #6F6DA8 !important;
  outline-offset: 4px !important;
}
body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text,
body.woocommerce-cart .wc-block-cart__submit-button span,
body.woocommerce-cart .wc-block-cart__submit-button svg {
  color: #171A2B !important;
  fill: currentColor;
}
/* Final place-order action: purple option-style treatment, without altering payment providers. */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button {
  min-height: 60px !important;
  max-width: 100% !important;
  padding: 14px 22px !important;
  border-radius: 11px !important;
  border: 2px solid #B8E85A !important;
  background: #30245E !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  box-shadow: none !important;
  font: 800 clamp(16px,2.5vw,19px)/1.3 "Inter",system-ui,sans-serif !important;
  text-transform: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-checkout__actions_row .wc-block-components-button:hover {
  background: #483683 !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:disabled,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button[aria-disabled="true"] {
  opacity: .55 !important;
  cursor: not-allowed !important;
}
@media (max-width: 600px) {
  body.woocommerce-cart .wc-block-cart__submit-button { min-height: 56px !important; padding: 13px 15px !important; }
  body.woocommerce-checkout .wc-block-components-checkout-place-order-button { min-height: 56px !important; }
}

/* WooCommerce Product New / empty-cart recommendation cards use block
   markup instead of the classic ul.products buttons. Keep their buttons
   visually identical to the catalog Select options buttons. */
.wc-block-grid .wc-block-grid__product-add-to-cart,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart {
  width: 100% !important;
  max-width: 100% !important;
  margin: 10px auto 4px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  text-align: center !important;
}
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link,
.wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  max-width: 100% !important;
  padding: 12px 18px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #30245e !important;
  border: 2px solid #B8E85A !important;
  border-radius: 9px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  font: 800 14px/1.2 "Inter",system-ui,sans-serif !important;
  letter-spacing: .01em !important;
  text-decoration: none !important;
  white-space: normal !important;
  cursor: pointer !important;
}
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible {
  background: #483683 !important;
  border-color: #B8E85A !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link:focus-visible {
  outline: 3px solid #6F6DA8 !important;
  outline-offset: 3px !important;
}
@media (max-width: 600px) {
  .wc-block-grid .wc-block-grid__product-add-to-cart .wp-block-button__link {
    min-height: 44px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

/* Added-to-cart confirmation: a clear, branded, accessible success notice.
   Style only WooCommerce notices; no cart/checkout logic changes. */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-notices-wrapper { width: 100%; min-width: 0; max-width: 100%; margin: 0 0 16px; }
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce > .woocommerce-message,
.woocommerce .woocommerce-message {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 18px 20px !important;
  margin: 0 0 20px !important;
  background: #F1EDF9 !important;
  color: #242035 !important;
  border: 1px solid #CFC6E4 !important;
  border-left: 5px solid #6F6DA8 !important;
  border-radius: 12px !important;
  box-shadow: 0 3px 12px rgba(8,9,27,.07) !important;
  font: 600 15px/1.5 Inter, system-ui, sans-serif !important;
  text-align: left !important;
  overflow-wrap: anywhere !important;
  clear: both !important;
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-message::after { content: none !important; display: none !important; }
.woocommerce .woocommerce-message .button,
.woocommerce .woocommerce-message a.button,
.woocommerce-notices-wrapper .woocommerce-message a.button {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  float: none !important;
  min-width: 150px !important;
  min-height: 43px !important;
  padding: 10px 19px !important;
  margin: 0 0 0 auto !important;
  color: #171A2B !important;
  -webkit-text-fill-color: #171A2B !important;
  background: #B8E85A !important;
  border: 2px solid #95c238 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font: 800 14px/1.35 Inter,system-ui,sans-serif !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
.woocommerce .woocommerce-message .button:hover,
.woocommerce .woocommerce-message a.button:hover { background: #c5f276 !important; }
.woocommerce .woocommerce-message .button:focus-visible,
.woocommerce .woocommerce-message a.button:focus-visible { outline: 3px solid #6F6DA8 !important; outline-offset: 3px !important; }
@media (max-width: 600px) {
 .woocommerce-notices-wrapper .woocommerce-message,
 .woocommerce > .woocommerce-message,
 .woocommerce .woocommerce-message {
  padding: 15px 16px !important;
  gap: 12px !important;
  font-size: 14px !important;
 }
 .woocommerce .woocommerce-message .button,
 .woocommerce .woocommerce-message a.button,
 .woocommerce-notices-wrapper .woocommerce-message a.button {
  order: 2 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 4px 0 0 !important;
  flex: 1 1 100% !important;
 }
}
