/**
 * Amour Parfum Signature 6.0.7 — Add-to-Cart Control Recovery
 * Narrow corrective layer only. Loaded after 6.0.6 commerce recovery CSS.
 */

/* Keep the quantity and CTA on one controlled row and neutralise inherited WooCommerce floats. */
body.single-product .summary form.cart {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  width: min(100%, 330px) !important;
  max-width: 330px !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  clear: both !important;
}

body.single-product .summary form.cart::before,
body.single-product .summary form.cart::after {
  display: none !important;
  content: none !important;
}

body.single-product .summary form.cart .quantity {
  flex: 0 0 72px !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.single-product .summary form.cart .quantity .qty {
  display: block !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  border: 1px solid #d7d0c6 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #0b0b0a !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font: 500 16px/54px Helvetica Neue, Helvetica, Arial, sans-serif !important;
}

body.single-product .summary form.cart .single_add_to_cart_button,
body.single-product .summary form.cart button.single_add_to_cart_button.button,
body.single-product .summary form.cart button.single_add_to_cart_button.button.alt {
  display: inline-flex !important;
  flex: 0 0 220px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  float: none !important;
  clear: none !important;
  overflow: visible !important;
  border: 1px solid #0b0b0a !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  background: #0b0b0a !important;
  color: #fff !important;
  opacity: 1 !important;
  text-align: center !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  writing-mode: horizontal-tb !important;
  font: 700 10px/1.1 Helvetica Neue, Helvetica, Arial, sans-serif !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
}

body.single-product .summary form.cart .single_add_to_cart_button:hover,
body.single-product .summary form.cart .single_add_to_cart_button:focus-visible {
  border-color: #4b1723 !important;
  background: #4b1723 !important;
  color: #fff !important;
}

/* Variable-product forms can contain selector rows before the final purchase controls. */
body.single-product .summary form.variations_form.cart {
  display: block !important;
  width: 100% !important;
  max-width: 610px !important;
}
body.single-product .summary form.variations_form.cart .variations_button {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: min(100%, 330px) !important;
}

@media (max-width: 520px) {
  body.single-product .summary form.cart,
  body.single-product .summary form.variations_form.cart .variations_button {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.single-product .summary form.cart .single_add_to_cart_button,
  body.single-product .summary form.cart button.single_add_to_cart_button.button,
  body.single-product .summary form.cart button.single_add_to_cart_button.button.alt,
  body.single-product .summary form.variations_form.cart .variations_button .single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
