.nax-woocommerce-login-form {
    border: 1px solid var(--sections-border-color, #d5d8dc);
    padding: 20px;
    border-radius: var(--sections-border-radius, 3px);
    max-width: 800px;
    margin: 0 auto;
}

.nax-woocommerce-login-form-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nax-woocommerce-login-form-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--sections-border-color, #d5d8dc);
    border-top-left-radius: var(--sections-border-radius, 3px);
    border-top-right-radius: var(--sections-border-radius, 3px);
}

.nax-woocommerce-login-form-tab {
    width: 50%;
    text-align: center;
    cursor: pointer;
}

body .nax-woocommerce-login-form-tab h2 {
    margin: 0 !important;
}

.nax-woocommerce-login-form-tab.nax-login {
    border-right: 1px solid var(--sections-border-color, #d5d8dc);
}

.nax-woocommerce-login-form div#customer_login,
.nax-woocommerce-login-form form {
    margin: 0px !important;
    border-top: 0 !IMPORTANT;
    border-top-left-radius: 0 !IMPORTANT;
    border-top-right-radius: 0 !important;
    height: auto !IMPORTANT;
}

.nax-woocommerce-login-form .nax-col-register,
.nax-woocommerce-login-form .nax-col-login {
    float: none !important;
    width: 100% !important;
    display: none;
}

.nax-woocommerce-login-form .nax-col-register.active,
.nax-woocommerce-login-form .nax-col-login.active {
    display: block;
}

.nax-woocommerce-login-form-tab.active {
    background: var(--e-global-color-secondary);
}

.nax-woocommerce-login-form-tab.active h2 {
    color: #fff !important;
}

p.woocommerce-form-row.form-row.nax-form-row {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password {
    margin: auto;
    width: 800px !important;
}


/* form */
.error-field {
    border: 1px solid red !important;
}

.required-mark {
    color: red;
}

.success {
    color: green;
    padding: 10px;
    background: #e6ffe6;
    border: 1px solid green;
}

.error {
    color: red;
    padding: 10px;
    background: #ffebeb;
    border: 1px solid red;
}

.woocommerce-EditAccountForm button[name="save_account_details"] {
    background: #5bc0de !important;
}

/* calender */

.booking-calendar {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.month-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #0073aa;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-button {
    border: none;
    background: #f5f5f5;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
    transition: all 0.2s ease;
}

.nav-button:hover {
    background: #0073aa;
    color: white;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0073aa;
    font-size: 1.1rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.days-grid>div {
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    font-size: 1rem;
    padding: 8px 4px;
    transition: all 0.2s ease;
    position: relative;
}

.days-grid>div:hover {
    background: #6c9e9e2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.day-number {
    font-weight: 600;
    margin-bottom: 4px;
}

.event-indicator {
    width: calc(100% + 2px);
    height: 20px;
    background-color: #008000;
    position: absolute;
    top: calc(50% - 5px);
    left: -2px;
}

.event-details {
    display: none;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #e0e0e0;
    padding: 12px;
    z-index: 10;
    width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    border-radius: 8px;
    text-align: center;
    position: absolute !important;
}

.event-details::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.days-grid>div.has-event:hover .event-details {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* .has-event {
    background-color: rgba(52, 168, 83, 0.1);
    border-color: rgba(52, 168, 83, 0.3);
} */

.has-event.first .event-indicator {
    border-radius: 0;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
    width: calc(100% - 5px);
    left: 5px;
    right: auto;
    height: 19px;
    top: 33px;
}

.has-event.inner .event-indicator {
    border-radius: 0;
    width: 100%;
    left: 0;
    right: 0;
    height: 19px;
    top: 33px;
}

.has-event.last .event-indicator {
    border-radius: 0;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
    width: calc(100% - 5px);
    left: 0;
    right: 5px;
    height: 19px;
    top: 33px;
}


.today {
    background-color: #e8f0fe;
    ;
    border-color: #0073aa;
}

.event-title {
    font-weight: 600;
    color: #008000;
    margin-bottom: 4px;
}

.event-time {
    color: #666;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .month-title {
        font-size: 1.4rem;
    }

    .days-grid>div {
        height: 60px;
        font-size: 0.9rem;
    }

    .event-details {
        width: 140px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .booking-calendar {
        padding: 15px;
    }

    .days-grid>div {
        height: 50px;
        padding: 4px 2px;
    }

    .weekdays div {
        font-size: 0.9rem;
    }

    .event-details {
        width: 120px;
        font-size: 0.8rem;
    }
}