/* EDD Custom Checkout CSS */

/* 
   Layout Customization for Personal Info 
   Targeting the fieldset that holds Email, First Name, Last Name
*/
/* 
   Layout Customization for Personal Info 
   Targeting the fieldset that holds Email, First Name, Last Name
*/
/* Global Box Sizing for Checkout to prevent layout breakage */
#edd_checkout_form_wrap * {
    box-sizing: border-box !important;
}

/* Force Flexbox on User Info Fieldset */
#edd_checkout_user_info {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Base Styles (Mobile First) - Stacked */
#edd-edd_last-wrap,
#edd-edd_first-wrap,
#edd-edd_email-wrap {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    padding-bottom: 15px !important;
    /* Spacing between rows */
}

/* Email is always order 3 */
#edd-edd_email-wrap {
    order: 3 !important;
}

/* Side-by-side layout removed as per user request. Stacked layout preserved. */

/* Manual Asterisk Removed - handled by PHP filter now */

/* Hide descriptions (e.g., "We will use this to personalize...") */
#edd_checkout_user_info .edd-description {
    display: none !important;
}

/* 
   Hide Password Confirm Field 
   Targeting EDD Blocks class
*/
.edd-blocks-form__group-password-confirm,
.edd_register_password {
    display: none !important;
    visibility: hidden !important;
}

/* Password Toggle Styling */
#edd-user-pass-wrap {
    position: relative !important;
    width: 100% !important;
}

.edd-password-toggle {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    color: #aeaeae !important;
    z-index: 9999 !important;
    font-size: 20px !important;
    display: block !important;
    height: 20px !important;
    width: 20px !important;
}

.edd-password-toggle:hover {
    color: #333 !important;
}

/* Lost Password Link Styling */
.edd-lost-password {
    margin-top: 10px !important;
    font-size: 14px !important;
    text-align: right !important;
    /* Align to right for better UX usually, or keep left. Let's start with right or just some margin */
}