/* ================================================= */
/* E. Account Details (edit-account) V0 Styling      */
/* ================================================= */

/* 1. Main Layout Container */


.woocommerce-js form .form-row input.input-text, .woocommerce-js form .form-row textarea {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    outline: 0;
    line-height: 1;
    border-color: #ddd !important;
}

.v2-account-details-container {
    max-width: 100%;
    padding-top:50px;
}

/* 2. Page Header Styling (Account Details) */
.v2-account-details-heading {
    font-size: 1.5em; /* Smaller to match V0 general heading size */
    font-weight: 700;
    color: #000;
    margin-bottom: 5px !important;
}

.v2-account-details-description {
    font-size: 1.2rem !important; /* More subtle description text */
    color: #666;
    margin-bottom: 30px; /* Kept margin for separation */
}

/* 3. Card Row (Two Columns) */
.v2-card-row {
    display: flex;
    gap: 20px; /* Spacing between cards */
    margin-bottom: 20px;
    align-items: stretch; 
}

/* Defines 50% width for side-by-side cards */
.v2-card-half {
    flex: 1 1 50%; 
    height: auto;
}

/* 4. Individual Card Styling (V0 Subtle Look) */
.v2-form-card,
.v2-card-full { 
    background-color: #ffffff;
    padding: 20px; /* Reduced padding for V0 compactness */
    border-radius: 4px; /* Significantly reduced to match V0's slight rounding */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    border: 1px solid #ddd; /* Lighter border */
    height: 100%; 
    box-sizing: border-box; 
    /* Remove margin-bottom from the full card, let the parent row handle it */
    margin-bottom: 0 !important; 
    border-radius: 10px;
}


/* 5. Card Headings (V0 Style: Darker and Bolder) */
.card-heading { 
    font-size: 1.1em; /* Reduced size */
    font-weight: 700; /* Bolder */
    color: #000; /* Black text */
    margin-top: 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 50px !important;
}

/* Card Heading Icons (Font Awesome) - Match V0 Icon Color (Orange/Yellow) */
.card-heading i {
    color: #2ECD70 !important;; /* V2 Orange/Yellow */
    font-size: 1.0em; /* Reduced size */
    margin-right: 10px;
}


/* 6. Form Field Styling (V0 Style) */

/* Make form row groups behave correctly in two-column layouts inside cards */
.form-row-group--inline {
    display: flex;
    gap: 15px; /* Spacing between first and last name inputs */
}
.form-row-group--inline .form-row-first,
.form-row-group--inline .form-row-last {
    margin-bottom: -10px;
}

/* Default Field Label Styling (V0 Style: Bold and Black) */
.v2-form-card label, 
.v2-card-full label { 
    font-weight: 600; /* Bolder label */
    color: #000; /* Black label text */
    display: block; /* Ensure label takes full width */
    margin-bottom: 5px;
    line-height: 1.2; /* Tighter line height for label */
    padding-bottom: 10px;
}
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-Button {
    margin-top: 1em;
    margin-left: 3px;
    border-radius: 10px;
    color: #fff;
    padding: 20px 30px;
    background-color: #2ECD70 !important;;
}
/* Text Input Fields (V0 Style: Flatter, thinner border, less radius) */
.woocommerce-Input--text, 
.woocommerce-Input--email, 
.woocommerce-Input--password,
.input-text { /* Targeting the base input class */
    width: 100%;
    padding: 10px 12px; /* Adjusted padding for V0 height/look */
    border: 1px solid #ddd; /* V0 style border */
    border-radius: 4px; /* Subtle radius */
    box-sizing: border-box;
    margin-top: 0; 
    margin-bottom: 30px; /* Increase spacing after input */
    line-height: 1.5; /* Better text alignment */
    font-size: 0.95em;
    color: #9E9E9E !important;
    border-radius: 6px !important;
}

/* Description Text (V0 Style: Dark, subtle, non-italic) */
.v2-form-card .description,
.v2-card-full .description,
.v2-form-card span.description,
.v2-card-full span.description { /* Targeted span.description for Woocommerce display name */
    font-size: 0.85em;
    color: #666;
    margin-top: -15px; /* Pull description text up */
    margin-bottom: 20px;
    font-style: normal; /* Remove italic style to match V0 */
    display: block; /* Ensure span takes full width */
    line-height: 1.4;
}

/* Description Text Links (e.g., privacy policy) - now black to match V0 */
.v2-form-card .description a,
.v2-card-full .description a { 
    color: #333 !important; /* Slightly darker grey link color */
    text-decoration: underline; 
    font-weight: 600;
}
.body .v2-form-card .description a, .v2-card-full .description a {
    color: #e68a00 !important;
    text-decoration: underline;
    font-weight: 600;
}

/* 7. Additional Details Section (Radio/Checkbox Styling) */
.v2-additional-details-content {
    /* We don't need a specific style for this wrapper, but let's ensure the content looks right */
}

/* Checkbox/Radio Label Text Style */
.additional-detail-row {
    margin-bottom: 12px; /* Slightly tighter spacing for V0 */
    line-height: 1.4;
}

.additional-detail-row label {
    font-weight: normal; 
    color: #000; /* Ensure label text is black */
    display: inline-block; /* Allows the input to sit next to the label content */
}

/* The 'I want an administrator's login...' checkbox link and text */
.additional-detail-row label a {
    color: #333 !important;
    text-decoration: underline;
    font-weight: 500;
}


/* 8. Save Changes Button Styling (Matches the V0 button) */
/* The general .form-row is what wraps the button */
p.form-row .woocommerce-Button.button { 
    display: inline-block;
    background-color: #2ECD70 !important;; 
    color: #ffffff;
    padding: 10px 30px; /* Reduced vertical padding */
    border-radius: 4px; /* Less rounded to match V0 */
    font-weight: 700;
    font-size: 1em; /* Standard size */
    border: 1px solid #2ECD70 !important;;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Subtler shadow */
    transition: background-color 0.2s, box-shadow 0.2s;
    text-transform: capitalize;
}

/* V0 Hover state is a darker orange */
p.form-row .woocommerce-Button.button:hover {
    background-color: #21a156 !important;; /* Darker orange on hover */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

/* 9. Responsive adjustments (Kept for mobile use) */
@media (max-width: 768px) {
    .v2-form-card label, .v2-card-full label {
        text-align: left ;
    }
    
    .woocommerce form .form-row-first, .woocommerce form .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last {
        width: 100%; 
        overflow: visible;
    }
    .v2-account-details-container {
        max-width: 100%;
        padding-top:20px;
    }
 .v2-card-row {
        flex-direction: column; 
        gap: 0;
    }
 .v2-card-half,
 .v2-card-full {
        flex: 1 1 100%;
        margin-bottom: 20px;
    }
 .form-row-group--inline {
        flex-direction: column;
    }
}
