/* Hide Price - Enquire Button Styles - Matching Figma Design */
.foster-enquire-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 34px;
  margin-bottom: 20px;
  width: 100%;
}

/* Main Enquire Button */
.foster-enquire-buttons .enquire-button {
  background-color: #32373c;
  color: #ffffff;
  border: none;
  padding: 11.755px 21.495px;
  font-size: 14.03px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  line-height: 21.94px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.foster-enquire-buttons .enquire-button .arrow {
  font-size: 12.797px;
  font-weight: 400;
  line-height: 21px;
}

.foster-enquire-buttons .enquire-button:hover {
  background-color: #444a50;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(50, 55, 60, 0.2);
}

/* Contact Buttons Container */
.foster-enquire-buttons .contact-buttons {
  display: flex;
  gap: 7px;
  width: 100%;
}

/* Individual Contact Buttons */
.foster-enquire-buttons .contact-button {
  flex: 1;
  background-color: #f9f9f9;
  color: #32373c;
  border: 1px solid #9a9a9a;
  padding: 11.755px 21.495px;
  font-size: 14.03px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  line-height: 21.94px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.foster-enquire-buttons .contact-button:hover {
  background-color: #ffffff;
  border-color: #32373c;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(154, 154, 154, 0.2);
}

/* Product info wrapper for ordering */
.product-info-wrapper {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
}

/* Mobile product description - hidden on desktop */
.product-description-mobile {
  display: none;
}

/* Mobile product images - hidden on desktop */
.product-image-mobile {
  display: none;
}

@media (max-width: 768px) {
  .product-info-wrapper {
    position: relative;
    margin-top: 10px;
  }

  /* Show mobile product description */
  .product-description-mobile {
    display: block;
    margin-bottom: 15px;
  }

  /* Hide the regular product description on mobile */
  .product-description {
    display: none !important;
  }
}

/* Default order on desktop */
.product-featured-text {
  order: 1;
}

.foster-enquire-buttons {
  order: 2;
}

/* Responsive styles */
@media (max-width: 674px) {
  /* Show mobile product images */
  .product-image-mobile {
    display: block;
    order: 2;
    margin: 20px 0;
  }

  /* Order within product-info-wrapper: buttons (1), images (2), description (3) */
  .foster-enquire-buttons {
    order: 1;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .product-featured-text {
    order: 3;
  }

  /* Ensure product-info-wrapper is flex container */
  .product-info-wrapper {
    display: flex;
    flex-direction: column;
  }

  .foster-enquire-buttons .enquire-button {
    padding: 12px 20px;
    font-size: 14px;
  }

  .foster-enquire-buttons .contact-buttons {
    flex-direction: column;
    gap: 7px;
  }

  .foster-enquire-buttons .contact-button {
    width: 100%;
    padding: 12px 20px;
  }
}

/* Integration with existing WooCommerce styles */
.woocommerce div.product form.cart .foster-enquire-buttons {
  margin-top: 30px;
}

.woocommerce div.product .foster-enquire-buttons .button * {
  font-family: 'Inter', sans-serif;
  line-height: 22px;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
}
.foster-enquire-buttons .enquire-button::after {
  content: none !important;
}

/* Hide the original add to cart button when our custom buttons are shown */
.woocommerce
  div.product
  form.cart.variations_form
  .foster-enquire-buttons
  ~ .single_add_to_cart_button,
.woocommerce
  div.product
  form.cart
  .foster-enquire-buttons
  ~ .single_add_to_cart_button {
  display: none;
}

/* Category Hero Enquire Button Styles */
.hero-enquire-button-wrapper {
  margin-top: 20px;
}

.hero-image-content .hero-enquire-button-wrapper .hero-enquire-button {
  background-color: #f9f9f9 !important;
  color: #32373c !important;
  border: 1px solid #9a9a9a !important;
  padding: 11.755px 21.495px !important;
  font-size: 14.03px !important;
  font-weight: 400 !important;
  font-family: 'Inter', sans-serif !important;
  line-height: 21.94px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  text-transform: none !important;
}

.hero-image-content .hero-enquire-button-wrapper .hero-enquire-button:hover {
  background-color: #ffffff !important;
  border-color: #32373c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(154, 154, 154, 0.2) !important;
}

@media (max-width: 768px) {
  .hero-enquire-button-wrapper {
    margin-top: 15px;
  }

  .hero-image-content .hero-enquire-button-wrapper .hero-enquire-button {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}
