#learner-account-page{
    min-height: fit-content;
    padding: 0;
}
.my-account .woocommerce{
    width: 100%;
    overflow: hidden;
    padding-top: 60px;
}
.woocommerce-learner-navigation{
    margin-bottom: 0;
    padding-left: 0;
    max-width: 100%;
}
.woocommerce-learner-navigation ul{
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    max-width: 100%;
    flex-wrap: wrap;
    border-bottom: 4px solid #69CBDC4D;
}
.woocommerce-learner-navigation ul li{
    padding: 10px 20px;
    border-bottom: 4px solid transparent;
    margin-bottom:-4px;
}
.woocommerce-learner-navigation ul li.is-active{
    border-bottom-color: #69cbdc;
    margin-bottom: -4px;
}
.woocommerce-learner-navigation ul li a{
    color:#7A7A7A;
}
.woocommerce-learner-navigation ul li.is-active a{
    color:#69cbdc;
}
@media (max-width: 768px) {
    .my-account .woocommerce{ 
        padding-top: 0px;
    }
    .woocommerce-learner-navigation {
        overflow-x: auto;
        position: relative;
        z-index: 0;
    }
    .woocommerce-learner-navigation ul::before {
        content: "";
        border-bottom: 4px solid #69CBDC4D;
        bottom: 0;
        width: 175%;
        position: absolute;
    }

    .woocommerce-learner-navigation ul {
        display: flex;
        gap: 10px;
        list-style: none;
        padding: 0 0 0 0; /* Add bottom padding to make space for active border */
        margin: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        border-bottom: none; /* Remove default border */
        position: relative;
        z-index: 1;
    }

    .woocommerce-learner-navigation ul::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .woocommerce-learner-navigation ul li {
        flex-shrink: 0;
        padding-bottom: 4px;
        border-bottom: 4px solid transparent; /* Reserve space for border */
        position: relative;
        z-index: 2;
    }

    .woocommerce-learner-navigation ul li.is-active {
        border-bottom-color: #69CBDC; /* Your active color */
        margin-bottom: 0px;
        z-index: 3;
    }

    .woocommerce-learner-navigation ul li a {
        display: inline-block;
        white-space: nowrap;
        padding: 10px 5px;
        width: max-content;
    }
}

/* Search & Sort Form */
.my-order-search-form-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.my-order-search-form-wrapper .filter-field {
    margin-bottom: 0;
}
.my-order-search-form-wrapper .search-control {
    flex: 1 1 auto;
}
.my-order-search-form-wrapper .search-control .search-text {
    width: 100%!important;
    padding: 8px 20px!important;
    height: 50px!important;
    border-radius: 5px!important;
}
.my-order-search-form-wrapper .orderby-control {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.my-order-search-form-wrapper .orderby-control label {
    margin: 0!important;
    color: #727272!important;
    line-height: 1!important;
    width:80px;
}
.my-order-search-form-wrapper .orderby-control select {
    padding: 8px 20px!important;
    height: 50px!important;
    border-radius: 5px!important;
    color: #727272!important;
    font-size: 13px;
}

/* Filter button */
.my-order-search-form-wrapper .button {
    flex: 0 0 auto!important;
    padding: 0 20px!important;
    height: 50px!important;
    line-height: 50px!important;
}
#learner-account-page{
    background:linear-gradient(180deg, #7557A5 0%, #000000 100%);;
}
#learner-account-main{
    background:#000000;
    color:#fff;
}
#learner-account-main p,
#learner-account-main span,
#learner-account-main strong
{
    color:#fff;
}

#learner-account-main .purchased-products .products p,
#learner-account-main .purchased-products .products span,
#learner-account-main .purchased-products .products div,
#learner-account-main .purchased-products .products strong
{
    color:#333;
}
.woocommerce-message{
    color: #333;
}
#learner-account-main .purchased-products .products{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
}
#learner-account-main .filter-section {
    position: relative;
    min-width: 300px;
    max-width: 100%;
    width: min-content;
    margin-right: 40px;
}
#learner-account-main .list-section {
    flex:1;
}
#learner-account-main .list-section div.product .btn-view-course{
    background: #69CBDC 0% 0% no-repeat padding-box;
    border-radius: 24px;
    opacity: 1;
    padding: 13px;
    display: block;
    height: auto;
    position: relative;
    text-align: center;
    color: #fff;
    font-size: 16px;
    line-height: 16px;
}
#learner-account-main .list-section div.product .progress-r{
    margin:20px 0;
}
#learner-account-main .list-section div.product .progress-r strong{
    font-size:13px;
    line-height: 14px;
    color:#414141
}
#learner-account-main .list-section div.product .category,
#learner-account-main .list-section div.product .progress-r .plable,
#learner-account-main .list-section div.product .details p
{
    font-size:13px;
    line-height:22px;
    color:#7A7A7A;
    margin:0;
}
#learner-account-main .list-section div.product .product-title {
    font-size: 13px;
    line-height: 14px;
    font-weight: 800;
    margin-top: 0px;
    margin-bottom: 10px;
    color: #000;
}
#learner-account-main .list-section div.product{
    width: 250px;
    max-width: 100%;
    background: #fff;
    border-radius: 25px;
    padding: 20px;
}
.flex-wrap{
    flex-wrap: wrap;
}
#learner-account-main .enrollment-title{
    margin:0 0 36px 0;
}
#learner-account-main .enrollment-title,
#learner-account-main .filters-title,
#learner-account-page .woocommerce-account-title{
    color:#fff!important;
        
}

#learner-account-main .filters-title{
    font-size: 18px;
}
#learner-account-page .woocommerce-learner-navigation ul li a{
    color:#fff;
}
#learner-account-page .woocommerce-learner-navigation ul li a:hover,
#learner-account-page .woocommerce-learner-navigation ul li.is-active a
{
    color:#69cbdc!important;
}
#products-result-count{
    margin:15px 0!important;
}
#learner-account-main .account-header h2{
    color: #fff;
    font-size:48px;
    margin:0 0 40px 0;
}
#learner-account-main .current-year-progress{
    display:flex;
    gap: 30px;
}
#learner-account-main .current-year-progress>div{
    background: #fff;
    border-radius: 30px;
    text-align: center;
    padding: 40px;
    margin-bottom:100px;
}

@media (max-width: 767px) {
    #learner-account-main .current-year-progress>div{
        margin-bottom: 10px;
    }
}
#learner-account-main .current-year-progress>div p.cyp-progress{
    color:#000;
    font-weight:bold;
    font-size: 60px;
    line-height:60px;
    margin:0;
}
#learner-account-main .current-year-progress>div p{
    color:#414141;
    font-size: 24px;
    margin:0;
}


/*Profile*/
/* cards layout */
.woocommerce-edit-account .account‐overview {
    display: flex;
    grid‐template‐columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.woocommerce-edit-account .account‐card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: .75rem;
    padding: 1.5rem;
    flex:1;
}
.woocommerce-edit-account .account‐card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.woocommerce-edit-account .account‐card button {
    background: #4dd2c2;
    border: none;
    color: #fff;
    padding: .5rem 1rem;
    border-radius: .5rem;
    cursor: pointer;
}
.woocommerce-edit-account .account‐card dl {
    display: grid;
    grid‐template‐columns: auto 1fr;
    row‐gap: .5rem;
    column‐gap: 1rem;
}
.woocommerce-edit-account .account‐card dt { font-weight: 600; }
.woocommerce-edit-account .account‐card dd { margin: 0 0 0.5rem; }
.woocommerce-edit-account #learner-account-main p,
.woocommerce-edit-account #learner-account-main span,
.woocommerce-edit-account #learner-account-main div,
.woocommerce-edit-account #learner-account-main strong
{
    color:#414141;
}
.woocommerce-edit-account #learner-account-main .personal-details div
{
    word-break: break-all;
}

.woocommerce-edit-account .account‐overview dl dt{
    color:#414141;
    font-size:14px;
}
.woocommerce-edit-account .account‐overview dl dd{
    color:#717171;
    font-size:16px;
}

/* modal overlay */
.account-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.account-modal.is-active{
    display:flex;
}

/* the white box */
.modal-inner {
    background: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
}

/* close “×” button */
.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* =====================================================
   1) ACCOUNT OVERVIEW CARDS
   ===================================================== */
.account‐overview {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}
.account‐overview .account‐card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex: 1 1 320px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}
.account‐overview .account‐card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.account‐overview .account‐card .js-open-modal {
    background: #4AC8D8;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 24px;
    opacity: 1;
    padding: 10px 12px;
    display: block;
    height: auto;
    position: relative;
    text-align: center;
    color: #fff !important;
    font-size: 12px;
    line-height: 12px;
    font-weight: 500;
    text-transform: capitalize
}
.account‐overview .account‐card .js-open-modal:hover {
    background: #7557a5!important;
}

/* change-password link */
.user-password .change-password-link {
    display: inline-block;
    color: #4AC8D8 !important;
    text-decoration: none;
    text-transform: capitalize !important;
    font-weight: bold;
    padding: 0 !important;
    cursor: pointer;
}
.user-password .change-password-link:hover {
    text-decoration: underline;
}

/* grid of details */
.personal-details,
.billing-address {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 1rem 2rem;
}

/* force full–width on .w-100 items */
.personal-details .w-100 {
    grid-column: 1 / -1;
}

/* horizontal rule inside grid */
.personal-details hr {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 1rem 0;
}

/* each label/value pair */
.details-col {
    display: flex;
    flex-direction: column;
}

.details-col .label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.details-col .strong,
.user-email,
.user-password {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}
.user-email{
    word-wrap: break-word;
}


/* =====================================================
   2) MODAL OVERLAY & INNER PANEL
   ===================================================== */
.account-modal {
    display: none;                  /* hidden by default */
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}
.account-modal.active {
    display: flex;                  /* show when you toggle `.active` */
}
.account-modal .modal-inner {
    background: #fff;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

/* close “×” button */
.account-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 15px;
    z-index: 99;
    border-radius: 50%;
    padding: 10px;
    color: #000;
}
.account-modal .modal-close:hover {
    background-color: transparent;
    color: #000;
}

/* =====================================================
   3) WOOCOMMERCE FORM INSIDE MODAL
   ===================================================== */
.woocommerce-EditAccountForm {
    margin-top: 1rem;
}
.woocommerce-EditAccountForm .form-row {
    margin-bottom: 1rem;
}
.woocommerce-EditAccountForm label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    box-sizing: border-box;
}
.woocommerce-EditAccountForm input[type="text"]:focus,
.woocommerce-EditAccountForm input[type="email"]:focus,
.woocommerce-EditAccountForm input[type="password"]:focus{
    border: 1px solid #d9d9d9 !important;
}

/* fieldset & legend */
.woocommerce-EditAccountForm fieldset {
    margin: 1.5rem 0;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
}
.woocommerce-EditAccountForm legend {
    padding: 0 0.5rem;
    font-weight: 600;
}

/* Save changes button */
.woocommerce-EditAccountForm .button {
    background: #4AC8D8;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.woocommerce-EditAccountForm .button:hover {
    background: #3BB1B8;
}
a.woocommerce-button.button.download_invoice {
    background: #69CBDC 0% 0% no-repeat padding-box;
    border-radius: 24px;
    opacity: 1;
    padding: 13px;
    display: block;
    height: auto;
    position: relative;
    text-align: center;
    color: #fff;
    font-size: 16px;
    line-height: 16px;
    width: fit-content;
    font-weight: 500;
    transition: all 0.3s linear;
}
a.woocommerce-button.button.download_invoice:hover {
    background-color: #7557A5;
    color: #fff;
}

/* Responsive tweaks */

@media (max-width: 768px) {
    a.woocommerce-button.button.download_invoice {
        font-size: 11px;
        width: auto;
         margin-top: 0px;
        display: inline-block;
    }
}
@media (max-width: 600px) {

    
    .account‐overview {
        flex-direction: column;
        gap: 1.5rem;
    }
    .account-modal .modal-inner {
        padding: 1.5rem;
    }
}

.account-modal .form-row.address-field{
    width: 100%;
}
.account-modal .form-row.address-field select{
    border: 1px solid #e0e0e0;
    background-color: #f8f8f8;
    border-width: 0px 0px 0px 0px;
    border-radius: 25px 25px 25px 25px;
    padding: 12px 20px 12px 20px;
}
.account-modal .form-row.address-field select:focus {
    border: 1px solid #d9d9d9 !important;
}
.woocommerce form .form-row .input-text:focus , .woocommerce form .form-row select:focus {
    border: 1px solid #d9d9d9 !important;
    
    
}

/* Filter Account Section Design Change  */

.woocommerce-learner-account-content .top-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.woocommerce-learner-account-content .top-content .purchased-products-filters.d-flex {
    width: 70%;
}
.woocommerce-learner-account-content .bottom-content-account {
    display: flex;
    align-items: flex-start;

}
.filters-title-mobile {
    display: none;
}
.filters-title-desktop {
    display: block;
}

@media (max-width: 768px) {

    .woocommerce-learner-account-content .dropdown-options div {
        color: #000 !important;
    }
    .woocommerce-learner-account-content select#orderby {
        display: none;
    }
    .woocommerce-learner-account-content .top-content .purchased-products-filters.d-flex {
        width: 100%;
    }
   .filters-title-desktop {
        display: none;
    }
    .filters-title-mobile {
        display: block;
    }
    #filter-section-account {
        display: none;
    }
    .woocommerce-learner-account-content .bottom-content-account {
        flex-direction: column;
        width: 100%;
    }
    .woocommerce-learner-account-content .filter-section {
        position: relative;
        min-width: 100% !important;
        max-width: 100%;
        width: min-content;
        margin-right: 40px;
    }
    #learner-account-main .list-section {
        width: 100%;
    }

}

p.save-btn-account {
    margin-left: 4px;
    margin-top: 10px;
}
.save-btn-account-billing {
    padding-left: 4px;
}
#learner-account-main .woocommerce-learner-account-content .dropdown-options{
    background: #fff;
    border: 1px solid #ddd;
    width: 150px;
    position: absolute;
    right: 10px;
    top: 124px;
    border-radius: 5px;
    z-index: 1;
}

.woocommerce-learner-account-content .woocommerce-order-details .woocommerce-order-details__title,
.woocommerce-learner-account-content .woocommerce-customer-details .woocommerce-column__title
{
    color: #fff!important
}
.woocommerce-learner-account-content .shop_table.woocommerce-table.order_details thead th, .shop_table.woocommerce-table.order_details tbody td, .shop_table.woocommerce-table.order_details tfoot th, .shop_table.woocommerce-table.order_details tfoot td{
    padding:5px 5px;
}
.woocommerce-learner-account-content .shop_table.woocommerce-table.order_details thead th{
    font-weight: bold;
    background: #323438;
}

@media (max-width: 768px) {
    .woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td {
        min-height: 30px !important;
    }
}
.error-message{
    color: #ff5d5d !important;
}
