/* personalization.css */
.personalization-field-wrapper {
    margin: 5px 0 5px;
    background-color: hsla(0,0%,50%,.071);
	padding: 1em!important;
    font-weight: 700;
    text-align: left;
}

.personalization-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: .9em;
    color: #000;
}

.personalization-label .required {
    color: #c00;
}

#personalization_text {
    width: 100%;
    max-width: 520px;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #000;
    border-radius: 4px;
    background: transparent;
    box-sizing: border-box;
}

#personalization_text:focus {
    border-color: #999;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* Fix for variable products container */
.woocommerce-variation-add-to-cart.variations_button {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

/* Force gift field to occupy full row */
.woocommerce-variation-add-to-cart.variations_button 
> .personalization-field-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
    margin-bottom: 15px;
}

/* SIMPLE PRODUCTS (Elementor) */

/* Force form to allow wrapping */
.elementor-add-to-cart.elementor-product-simple form.cart {
    display: flex;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

/* Force personalization field onto its own row */
.elementor-add-to-cart.elementor-product-simple 
form.cart > .personalization-field-wrapper {
    width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
    margin-bottom: 15px;
}

/* Keep qty + button aligned normally */
.elementor-add-to-cart.elementor-product-simple .quantity,
.elementor-add-to-cart.elementor-product-simple .single_add_to_cart_button {
    flex: 0 0 auto;
}

