/* Account menu group headings */
.woocommerce-MyAccount-navigation-link.is-heading {
    pointer-events: none;
    border: none;
    background: none !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-top: 30px;
    opacity: 1;
    /*margin-bottom: 15px;*/
}

.woocommerce-MyAccount-navigation-link:not(.is-heading) a{
    color: #333;
    opacity: .7;
}

.woocommerce-MyAccount-navigation-link.is-heading + li{
    padding-top: 15px;
}

.woocommerce-MyAccount-navigation ul li.is-active a{
    font-weight: 600;
    background-color: #f5f5f5;
}

.woocommerce-MyAccount-navigation-link.is-heading a {
    cursor: default;
    color: inherit;
    text-decoration: none;
    background-color: #00AEEF;
    opacity: 1;
    font-size: 22px;
    text-transform: none;
    color: white;
    padding: 10px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-top: 0;
}

.woocommerce-MyAccount-navigation-link.is-heading:first-child {
    margin-top: 0;
}

.woocommerce-MyAccount-navigation-link.is-heading a:before {
    display: none;
}

.woocommerce-MyAccount-navigation>ul {
    border-top: 0 !important;
}

.woocommerce-MyAccount-navigation>ul>li {
    border-bottom: 0 !important;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation>ul>li>a {
    padding: 3px 20px 0 20px !important;
    font-size: 17px;
}

.woocommerce-MyAccount-navigation>ul>li>a:hover {
    background-color: rgba(245,245,245,.7);
}

.woocommerce-MyAccount-navigation-link:not(.is-heading):has(+ .is-heading), .woocommerce-MyAccount-navigation>ul>li:last-child{
    border-bottom: 1px solid #eee !important;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    padding-bottom: 15px;
}

.woocommerce-MyAccount-navigation-link:not(.is-heading):has(+ .is-heading)>a, .woocommerce-MyAccount-navigation>ul>li:last-child>a{
    padding: 3px 20px 3px 20px !important;
}

/*Icons*/
/*Courses*/
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--my-courses a:before{
    content: '\f073';
}
/*Certificates*/
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--my-certificates a:before{
    content: '\f2c2';
}
/*Attendees*/
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--my-attendees a:before{
    content: '\f0c0';
}
/*Company*/
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--company-information a:before{
    content: '\f1ad';
}

/* Dashboard card grid */
.wooa-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 8px;
}

/* Individual cards */
.wooa-card {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  padding: 30px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Hover state */
.wooa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/*Card Interior*/
.card-main{
    flex: 1 1 60%;
}
.card-footer{
    flex: 1 1 40%;
}

/* Card title and number */
.wooa-card .title {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    font-family: 'Poppins';
    font-weight: 700;
    max-width: 150px;
}
.wooa-card .value {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  font-family: 'Poppins';
}
.wooa-card .label{
    font-size: 15px;
    line-height: 1.3;
}

/*Sub*/
.sub{
    color: #004563;
    font-size: 16px;
    opacity: 0.5;
    letter-spacing: -1px;
    padding-left: 2px;
}

/* Optional type-based accenting */
.wooa-card.registered-attendees { border-left: 4px solid #00aeef; }
.wooa-card.unregistered-attendees { border-left: 4px solid #8dc63f; }
.wooa-card.certificates { border-left: 4px solid #004563; }
.wooa-card.upcoming-courses { border-left: 4px solid #f98100; }

/* Dashboard footer link */
.wooa-dashboard-links {
  margin-top: 6px;
  font-size: 14px;
  display: none; /*hide the links*/
}
.wooa-dashboard-links a {
  color: var(--nectar-accent-color, #0073aa);
  text-decoration: underline;
}





/*My Courses Tab*/
.woocommerce-my-courses h3{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #004563;
}

.woocommerce-my-courses h3:after{
    content: '\f073';
    font-family: 'FontAwesome';
    color: white;
    background-color: #004563;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}

.woocommerce-my-courses h4{
    font-size: 22px;
    font-family: 'Poppins';
    font-weight: 700;
}

h4.upcoming + table.shop_table thead tr{
    background-color: #f98100!important;
}

/*My Certificates Tab*/
.woocommerce-my-certificates h3{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #004563;
}

.woocommerce-my-certificates h3:after{
    content: '\f2c2';
    font-family: 'FontAwesome';
    color: white;
    background-color: #004563;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}

.woocommerce-my-certificates h4{
    font-size: 22px;
    font-family: 'Poppins';
    font-weight: 700;
}

.download-link, .woocommerce-my-certificates .download-link, .woocommerce-my-attendees .download-link, .woocommerce-my-courses .download-link{
    color: white;
    background-color: #8dc63f;
    padding: 10px 22px;
    width: 100%;
    display: block;
    text-align: center;
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 16px;
    border-radius: 7px;
    font-family: 'Poppins';
}

.woocommerce-my-courses .shop_table{
    margin-bottom: 60px;
}

.woocommerce-my-certificates table.shop_table thead tr{
    background-color: #004563!important;
}

/*My Attendees Tab*/
.woocommerce-my-attendees h3{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #004563;
}

.woocommerce-my-attendees h3:after{
    content: '\f0c0';
    font-family: 'FontAwesome';
    color: white;
    background-color: #004563;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}

.woocommerce-my-attendees h4{
    font-size: 22px;
    font-family: 'Poppins';
    font-weight: 700;
}

h4.Upcoming + table.registered thead tr{
    background-color: #f98100!important;
}

h4.Unregistered + table.registered thead tr{
    background-color: #8DC63F!important;
}

/*Company Information Tab*/
.woocommerce-company-information h3{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #004563;
}

.woocommerce-company-information h3:after{
    content: '\f1ad';
    font-family: 'FontAwesome';
    color: white;
    background-color: #004563;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}

.woocommerce-company-information h3.add:after{
    content: '\2b';
}

.woocommerce-company-information h4{
    font-size: 22px;
    font-family: 'Poppins';
    font-weight: 700;
}

.woocommerce-company-information .main-content table.shop_table.my_account_orders{
    margin-top: 12px;
    margin-bottom: 60px;
}

/*Orders Tab*/
.woocommerce-orders h3{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #004563;
}

.woocommerce-orders h3:after{
    content: '\f291';
    font-family: 'FontAwesome';
    color: white;
    background-color: #004563;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}

/*Addresses Tab*/
.woocommerce-edit-address h3{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #004563;
}

.woocommerce-edit-address h3:after{
    content: '\f015';
    font-family: 'FontAwesome';
    color: white;
    background-color: #004563;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}

.woocommerce-Address-title h2{
    font-size: 22px;
    font-family: 'Poppins';
    font-weight: 700;
    line-height: 1;
    padding-top: 10px;
    display: inline-block;
}

.woocommerce-Addresses{
    display: flex;
    flex-direction: column;
}

.woocommerce-Addresses .woocommerce-Address{
    width: 75% !important;
    padding: 50px 40px;
    border-bottom: 1px solid #eee;
}

/*Account Details Tab*/
.woocommerce-edit-account h3{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #004563;
}

.woocommerce-edit-account h3:after{
    content: '\f007';
    font-family: 'FontAwesome';
    color: white;
    background-color: #004563;
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 8px;
}
/*Forms*/
form label{
    font-family: 'Poppins';
    font-weight: 700;
    font-size: 16px;
}

form legend{
    font-family: 'Poppins';
    font-weight: 700;
    font-size: 22px;
}

form legend{
    padding-top: 40px;
}

form .clear, form #account_display_name_description{
    display: none;
}

/*Dashboard Resources*/
/* ----- Resource link grid below dashboard cards ----- */
.wooa-resource-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 12px;
}

.wooa-resource-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 20px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.wooa-resource-card:hover {
  transform: translateY(-3px);
  background-color: #f4fbff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.wooa-resource-card .icon {
  font-size: 1.9rem;
  color: #004563; /* you can switch this to your theme accent */
      width: 30px;
    height: 30px;
    margin-left: 0px;
}

.wooa-resource-card .icon:before{
    font-size: 30px;
    line-height: 1;
    text-align: center;
    width: 30px;
    height: 30px;
    display: block;
}

.wooa-resource-card .label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* Responsive layout */
@media (max-width: 900px) {
  .wooa-resource-links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .wooa-resource-links {
    grid-template-columns: 1fr;
  }
}

/*Tables*/
table.shop_table {
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: rgba(0,0,0,.04) 0 1px 0,rgba(0,0,0,.05) 0 2px 7px,rgba(0,0,0,.06) 0 12px 22px;
}

table.shop_table  thead tr{
    background-color: #00AEEF!important;
}

table.shop_table  thead tr th{
    color: white !important;
    border-color: rgba(255,255,255,.2) !important;
}

table.registered{
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: rgba(0,0,0,.04) 0 1px 0,rgba(0,0,0,.05) 0 2px 7px,rgba(0,0,0,.06) 0 12px 22px;
}

table.registered thead tr{
    background-color: #00AEEF!important;
}

table.registered thead tr th{
    color: white !important;
    border-color: rgba(255,255,255,.2) !important;
}

table.registered td, table.shop_table td{
    font-size: 16px !important;
}

table.registered a, table.shop_table a{
    font-weight: 600 !important;
}

table.registered td, table.shop_table td{
    padding: 15px !important;
}

/*tr[data-is-registered="0"]>td[data-field="name"]{
    visibility: hidden;
    line-height: 1;
}

tr[data-is-registered="0"]>td[data-field="name"]>span{
    visibility: visible;
}*/
