/*
Theme Name: Labeaute Child
Template: labeaute
Description: Child theme for Labeaute, with WooCommerce review fixes.
Version: 1.0
Author: Derrick Schommer
*/

/* 🏷️ Reduce space between title and price+rating even more */
.product_title.entry-title {
    margin-bottom: 10px !important;
    padding-bottom: 0 !important;
}


/* 💲⭐️ Adjust custom price + rating placement */
.custom-price-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -10px !important;   /* 👈 Pull even closer to title */
    margin-bottom: 10px;
}

/* 🛑 Remove extra padding/margin from WooCommerce summary wrapper */
.woocommerce-product-details__short-description,
.woocommerce-product-summary,
.product .summary.entry-summary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ⭐ Tighten star rating spacing */
.woocommerce-product-rating {
    margin: 0 !important;
}

/* 💲 Hide duplicate price */
.single-product .product .price:first-of-type:not(.custom-price-rating .price) {
    display: none !important;
}

/* �� Adjust line height for price */
.woocommerce-Price-amount {
    line-height: 1.1 !important;
    font-size: 1.4rem !important;
}

/* 🎯 Force quantity and add-to-cart button side-by-side */
.bundle_button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important; /* Adjust spacing as needed */
    flex-wrap: nowrap !important;
}

/* 🧱 Quantity input adjustments */
.bundle_button .quantity {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.bundle_button .quantity input.qty {
    width: 80px !important;
    min-width: 80px !important;
    text-align: center !important;
    height: 45px !important;
}
/* 🎯 Force "Add to Cart" before quantity on ALL products (with or without upsells) */
form.cart, .bundle_button {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
}

/* 🏗️ Reorder specifically by element, regardless of addon presence */
form.cart .single_add_to_cart_button,
.bundle_button .single_add_to_cart_button {
    order: 1 !important; /* ✅ Add to Cart always first */
}

form.cart .quantity,
.bundle_button .quantity {
    order: 2 !important; /* 🔄 Quantity always second */
}

/* 🖼️ Responsive fix for all devices */
@media (max-width: 767px) {
    form.cart, .bundle_button {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
}

.star-rating-link {
    position: relative;
    z-index: 10;  /* 🔼 Bring link above the overlay */
}


/* 🔧 Increase font size for upsell product titles by 50% */
.bundle_form .bundled_product_title {
    font-size: 1.65rem !important; /* Increased from 1.1rem to 1.65rem */
    line-height: 1.4;
}

/* 💵 Increase font size for 'Add for $xx.xx' pricing section */
.bundle_form .bundled_product_optional_checkbox {
    font-size: 1.35rem !important; /* Increased from 0.9rem to 1.35rem */
}

/* �� Adjust price specifically for better spacing */
.bundle_form .bundled_product_optional_checkbox .price {
    font-size: 1.425rem !important; /* Increased from 0.95rem to 1.425rem */
    font-weight: 500;
}

/* ✏️ Adjust checkbox alignment */
.bundle_form .bundled_product_optional_checkbox input[type="checkbox"] {
    transform: scale(1); /* Reset scale for checkbox */
    margin-right: 8px;
}


/* 🚫 Hide PayPal Message */
.ppcp-messages {
    display: none !important;
}
