#elw-login-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}
#elw-login-modal .modal-content {
    background: white;
    max-width: 600px;
    margin: 10% auto;
    padding: 40px;
    position: relative;
    border-radius: 20px;
}
.elw-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.myaccount-tab-item {
    font-weight: bold;
    font-size: 15px;
    margin-right: 15px;
    transition: all 0.3s ease;
    color: #999999;
    text-decoration: none;
}
.myaccount-tab-item.active {
    color: #00B3E4;
    border-bottom: 1px solid #00B3E4;
    
}
#elw-login-modal .elw-close {
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
}

/* Hide all form panes by default */
.myaccount-form-pane {
    display: none;
    padding-top: 10px;
    margin-top: 10px;
}

/* Show only the active form pane */
.myaccount-form-pane.active {
    display: block;
}

/* Override WooCommerce column widths for the modal (these might not be needed as much now, but keep for safety) */
#elw-login-modal .u-columns.col2-set {
    width: 100%;
    float: none;
    margin: 0;
    margin-top: 20px;
}

#elw-login-modal .u-column1.col-1,
#elw-login-modal .u-column2.col-2 {
    width: 100% !important; /* Force full width for columns inside the modal */
    float: none !important; /* Remove float to prevent side-by-side layout */
    padding: 0 !important; /* Remove default column padding */
    margin: 0 !important; /* Remove default column margin */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Basic styling for WooCommerce forms within the modal */
#elw-login-modal .woocommerce-form-row label {
    display: block;
    margin-bottom: 0px;
    font-weight: normal;
    font-size: 15px;
    color: #666;
}

#elw-login-modal .woocommerce-Input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#elw-login-modal .woocommerce-Button.button {
    background-color: #002F57;
    width: -webkit-fill-available;
    margin-top: 20px;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s ease;
}

#elw-login-modal .woocommerce-Button.button:hover {
    background-color: #3e7aaf;
}
#elw-login-modal .form-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}
#elw-login-modal .woocommerce-form__label-for-checkbox {
    display: inline-block;
    margin-left: 5px;
}
/* Message styling (from previous versions, kept for consistency) */
.elw-message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
}
.elw-message.success { background: #d4edda; color: #155724; }
.elw-message.error { background: #f8d7da; color: #721c24; }
.myaccount-form-content h2{
    display:none;
}
form.woocommerce-form.woocommerce-form--login.login p {
    margin-bottom: 0px;
}
div#register-form p {
    margin-bottom: 0px;
    font-size: 14px;
}
button.woocommerce-button.button.woocommerce-form-register__submit {
    margin-top: 20px;
    width: -webkit-fill-available;
    padding: 10px 0px;
    color: white;
    background-color: #002F57;
    border: unset;
    font-size: 16px;
    border-radius: 5px;
}
.loginRemember {
    display: inline;
}
#elw-login-modal .woocommerce-LostPassword {
    display: inline;
    float: right;
}

#elw-login-modal .woocommerce-LostPassword a {
    color: #007bff;
    text-decoration: none;
}

#elw-login-modal .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}
button.woocommerce-button.button.woocommerce-form-login__submit {
    margin-top: 20px;
    width: -webkit-fill-available;
    padding: 10px 0px;
    color: white;
    background-color: #002F57;
    border: unset;
    font-size: 16px;
    border-radius: 5px;
}
.loginProcessing{
	background-color: #999 !important;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    #elw-login-modal .modal-content {
        max-width: 90%;
        width: auto;
        margin: 5% auto;
        padding: 20px;
        border-radius: 10px;
    }
}