/* Main Account Page Layout */
.woocommerce {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

/* Menu */
.woocommerce .woocommerce-MyAccount-navigation {
    background-color: var(--primary-gray);
    width: 100%;
}

.woocommerce-MyAccount-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 20px;
}

.woocommerce-MyAccount-navigation-link a {
    text-decoration: none;
    color: var(--dark-gray);
    padding: 10px;
    border-radius: 5px;
    display: block;
    transition: background-color 0.3s ease;
}

.woocommerce-MyAccount-navigation-link a:hover {
    background-color: #e60023;
    color: var(--white);
}

.woocommerce-MyAccount-navigation-link--dashboard.is-active a,
.woocommerce-MyAccount-navigation-link--orders.is-active a,
.woocommerce-MyAccount-navigation-link--downloads.is-active a,
.woocommerce-MyAccount-navigation-link--edit-address.is-active a,
.woocommerce-MyAccount-navigation-link--edit-account.is-active a {
    background-color: #e60023;
    color: var(--white);
}

/* Account Content */

.woocommerce-account .woocommerce-MyAccount-content p {
    color: var(--dark-gray);
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: var(--primary-red);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: #999;
}

/* Order details page */
@media (max-width: 500px) {

    .woocommerce-order-details,
    .woocommerce-customer-details,
    .woocommerce-columns--addresses {
        margin: 0;
        padding: 0;
        font-size: 12px;
    }

    /* Address page */
    #shipping_first_name_field,
    #shipping_last_name_field {
        width: 100%;
    }

    /* Account details page */
    .woocommerce-page form .form-row-first {
        width: 100%;
    }

    .woocommerce-page form .form-row-last {
        width: 100%;
    }
}



/* Notices Wrapper */
.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

/* Address Section Layout */
.woocommerce-Addresses {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.u-column1,
.u-column2 {
    width: 100%;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    background-color: var(--primary-gray);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Title and Edit Link */
.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.woocommerce-Address-title h2 {
    font-size: 18px;
    color: #333;
}

.woocommerce-Address-title .edit {
    text-decoration: none;
    font-size: 14px;
    color: #e60023;
    font-weight: bold;
    transition: color 0.3s ease;
}

.woocommerce-Address-title .edit:hover {
    color: #d8001d;
}

/* Address Text */
.woocommerce-Address address {
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

/* Styling for the message "You have not set up this type of address yet" */
.woocommerce-Address address {
    color: #999;
    font-style: italic;
}

/* Responsive Styling */
@media (max-width: 768px) {

    .u-column1,
    .u-column2 {
        width: 100%;
        /* Stack the columns on smaller screens */
    }

    .woocommerce-MyAccount-navigation ul {
        flex-direction: column;
        width: 100%;
    }
}

/* Style the form container */
.woocommerce-MyAccount-content form {
    border-radius: 10px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Style for form headings */
.woocommerce-MyAccount-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Styling for form fields */
.woocommerce-address-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.woocommerce-address-fields__field-wrapper .form-row {
    width: 48%;
    /* Adjust width of the fields */
    margin-bottom: 15px;
}

/* Adjust the widths of first name and last name fields */
#billing_first_name_field,
#billing_last_name_field {
    width: 48%;
    /* Each takes half the width */
}

#billing_first_name_field {
    margin-right: 4%;
}

/* Style input fields */
.woocommerce-input-wrapper input.input-text {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

.woocommerce-input-wrapper select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

.woocommerce-input-wrapper .select2-container {
    width: 100%;
}

/* Style labels */
.woocommerce-address-fields label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Style for required fields */
.woocommerce-address-fields .required {
    color: var(--primary-red);
    margin-left: 5px;
}

/* Style for optional fields */
.woocommerce-address-fields .optional {
    color: #777;
}

/* Adjust the button styling */
.woocommerce-MyAccount-content form button.button {
    background-color: var(--secondary-red);
    color: white;
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.woocommerce-MyAccount-content form button.button:hover {
    background-color: var(--primary-red);
    color: var(--white);
}

/* Add a subtle hover effect for inputs */
.woocommerce-input-wrapper input.input-text:hover {
    border-color: var(--primary-red);
}

.woocommerce-input-wrapper input.input-text:focus {
    border-color: var(--primary-red);
    outline: none;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .woocommerce-address-fields__field-wrapper .form-row {
        width: 100%;
        /* Stack fields on smaller screens */
    }

    #billing_first_name_field,
    #billing_last_name_field {
        width: 100%;
        margin-right: 0;
    }

    .woocommerce-MyAccount-content form {
        padding: 15px;
    }

    .woocommerce-MyAccount-content h2 {
        font-size: 20px;
    }

    .woocommerce-MyAccount-content form button.button {
        width: 100%;
        /* Make the button full width on mobile */
    }
}

/* General form styles */
.woocommerce-EditAccountForm {
    background-color: var(--primary-gray);
    border: 1px solid var(--secondary-gray);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.woocommerce-form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.woocommerce-form-row label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.woocommerce-Input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--lighter-gray);
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}

.woocommerce-Input:focus {
    border-color: var(--primary-red);
    outline: none;
}

.woocommerce-Input--email,
.woocommerce-Input--text,
.woocommerce-Input--password {
    box-sizing: border-box;
}

.required {
    color: #ff4d4d;
}

#account_display_name+span {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: inline-block;
}

/* Password change section */
fieldset {
    padding: 15px;
    border-radius: 6px;
    border: 1px solid var(--lighter-gray);
}

legend {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    padding: 0 10px;
    margin-bottom: 10px;
}

.show-password-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}



/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce-EditAccountForm {
        padding: 15px;
    }

    .woocommerce-form-row {
        margin-bottom: 15px;
    }

    .woocommerce-Button {
        width: 100%;
    }
}

/* General form styles */
.woocommerce-form-login {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.woocommerce-form-login h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Input fields */
.woocommerce-Input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--lighter-gray);
    border-radius: 4px;
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

.woocommerce-Input:focus {
    border-color: var(--primary-red);
    outline: none;
}

/* Label styles */
.woocommerce-form-row label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.required {
    color: var(--primary-red);
}

/* Password field and visibility toggle */
.password-input {
    position: relative;
    width: 100%;
}

.password-input input {
    padding-right: 35px;
}

.show-password-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Remember me checkbox */
.woocommerce-form__label-for-checkbox {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.woocommerce-form__input-checkbox {
    margin-right: 10px;
    width: 15px;
    height: 15px;
}

/* Button */
.woocommerce-button {
    background-color: #e60000;
    color: var(--white);
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.woocommerce-button:hover {
    background-color: #6d0000;
}

/* Lost Password link */
.woocommerce-LostPassword a {
    color: var(--primary-red);
    font-size: 14px;
    text-align: center;
    display: block;
    margin-top: 15px;
    text-decoration: none;
}

.woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

/* reset password layout */
form.woocommerce-ResetPassword.lost_reset_password {
    width: 50%;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce-form-login {
        padding: 20px;
    }

    .woocommerce-button, form.woocommerce-ResetPassword.lost_reset_password {
        width: 100%;
    }
}