/**
Theme Name: Twenty Twenty-One Child
Template:   twentytwentyone
Description:  Twenty Twenty-One child theme
Author:       Realysys
Author URI:   https://realysys.com
Template:     twentytwentyone
Version:      1.0.0
Text Domain:  twentytwentyonechild
*/


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #f0f4ff;
    --card: #ffffff;
    --border: #e2e8f8;
    --accent: #4361ee;
    --accent-light: #eef0fd;
    --purple: #7c3aed;
    --red: #f03e5e;
    --red-light: #fff0f3;
    --text-primary: #0f172a;
    --text-muted: #94a3b8;
    --shadow: 0 4px 6px rgba(15,23,42,0.04), 0 12px 32px rgba(67,97,238,0.10);
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── .custom-account-menu ── */
  .custom-account-menu {
    width: auto;
    animation: fadeUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
  }

  /* ── <ul> ── */
  .custom-account-menu ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  /* ── <li> ── */
  .custom-account-menu ul li {
    display: flex;
  }

  /* ── <a> — default nav pill ── */
  .custom-account-menu ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
    background: var(--accent-light);
    border: 1.5px solid rgba(67,97,238,0.15);
    transition: all 0.18s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
  }
  .custom-account-menu ul li a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(67,97,238,0.06) 0%, transparent 60%);
    pointer-events: none;
  }
  .custom-account-menu ul li a:hover {
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(67,97,238,0.3);
    text-decoration: none !important;
  }

  /* ── Active item (My Accounts as example) ── */
  .custom-account-menu ul li.active a,
  .custom-account-menu ul li:first-child a {
    background: linear-gradient(135deg, #4361ee, #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(67,97,238,0.28);
  }
  .custom-account-menu ul li.active a::before,
  .custom-account-menu ul li:first-child a::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.13) 0%, transparent 60%);
  }

  /* ── Logout — red tinted ── */
  .custom-account-menu ul li:last-child a {
    color: var(--red);
    background: var(--red-light);
    border-color: rgba(240,62,94,0.18);
  }
  .custom-account-menu ul li:last-child a::before { display: none; }
  .custom-account-menu ul li:last-child a:hover, 
  .custom-account-menu ul li:last-child a:active, 
  .custom-account-menu ul li:last-child a:focus {
    background: var(--red) !important;
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(240,62,94,0.3);
  }
  .custom-account-menu ul li:last-child a:hover img, 
  .custom-account-menu ul li:last-child a:active img, 
  .custom-account-menu ul li:last-child a:focus img{
    filter: brightness(0) invert(1);
  }

  /* Stagger animations on li */
  .custom-account-menu ul li { animation: fadeUp 0.4s cubic-bezier(0.22,1,0.36,1) both; }
  .custom-account-menu ul li:nth-child(1) { animation-delay: 0.04s; }
  .custom-account-menu ul li:nth-child(2) { animation-delay: 0.08s; }
  .custom-account-menu ul li:nth-child(3) { animation-delay: 0.12s; }
  .custom-account-menu ul li:nth-child(4) { animation-delay: 0.16s; }
  .custom-account-menu ul li:nth-child(5) { animation-delay: 0.20s; }
  .custom-account-menu ul li:nth-child(6) { animation-delay: 0.24s; }
  .custom-account-menu ul li:nth-child(7) { animation-delay: 0.28s; }
  .custom-account-menu ul li:nth-child(8) { animation-delay: 0.32s; }

  @media (max-width: 600px) {
    .custom-account-menu ul { gap: 6px; }
    .custom-account-menu ul li a { padding: 8px 13px; font-size: 0.73rem; }
  }
body.woocommerce-account .site-header .site-branding,
body.woocommerce-account .site-header .primary-navigation,
body.woocommerce-account .site-footer, body.woocommerce-account .edit-link, body.woocommerce-account .entry-header,
body.page-template-page-live-classes .site-header, 
body.page-template-page-live-classes .site-footer,
body.assign-class-template-default .site-header,
body.assign-class-template-default .site-footer
{
    display:none !important;
}
body.woocommerce-account .site-header{
    padding: 0;
}
body.woocommerce-account .site-logo{
    padding: 0;
    border-bottom: none;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
}
.class-box {
    border: 1px solid #ddd;
    padding: 20px;
}
.live-classes {
    display: grid;
    grid-template-columns: repeat(3,3fr);
    gap: 20px;
}
.class-box h3 {
    margin: 0 0 10px;
}


/* Account Menu Wrapper */

.cam-wrap {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 20px;
}
/* Remove default list styling */
.custom-account-menu ul{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

/* List items */
.custom-account-menu li{
    margin:0;
}

/* Menu links */
.custom-account-menu li a{
    display:block;
    padding:8px 14px;
    background:#0073aa;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
    font-size:14px;
    transition:0.2s;
}

/* Hover effect */
.custom-account-menu li a:hover{
    background:#005f8d;
}

/* Active item */
.custom-account-menu li.is-active a{
    background:#222;
}
.post-thumbnail, .entry-content .wp-audio-shortcode, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), *[class*=inner-container] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .default-max-width {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-dashboard .entry-header{ display:none; }

/* Make content full width */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% ;
    float: none ;
}  

.wcmamtx_dashboard_link {
    border-radius: 22px;
    overflow: hidden;
}

.wcmamtx_dashboard_link a {
    display: flex;
    align-items: center;
    padding: 28px 30px;
    height: 150px;
    border-radius: 22px;
    text-decoration: none;
    position: relative;
    transition: 0.3s ease;
}

/* REAL gradients like 2nd image */
.orders-card a {
    background: linear-gradient(135deg,#dceefc,#c6e2fa);
}
.downloads-card a {
    background: linear-gradient(135deg,#f6d8f9,#f5c4ea);
}
.address-card a {
    background: linear-gradient(135deg,#d7f3f6,#bfe9ef);
}
.account-card a {
    background: linear-gradient(135deg,#ffd8e9,#ffc1dd);
}
.logout-card a {
    background: linear-gradient(135deg,#ffd2c8,#ffb3a6);
}
.task-card a {
    background: linear-gradient(135deg,#d8e4f5,#c4d6ef);
}
.class-card a {
    background: linear-gradient(135deg,#e4d6f1,#d3c2e7);
}
.custom-card a {
    background: linear-gradient(135deg,#e6edf2,#d3dde5);
}

/* Icon circle */
.dash-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 22px;
}

/* Icon color adjust */
.orders-card .dash-icon i { color:#3b82f6; }
.downloads-card .dash-icon i { color:#9333ea; }
.address-card .dash-icon i { color:#0ea5e9; }
.account-card .dash-icon i { color:#ec4899; }
.logout-card .dash-icon i { color:#ef4444; }
.task-card .dash-icon i { color:#2563eb; }
.class-card .dash-icon i { color:#7c3aed; }
.custom-card .dash-icon i { color:#475569; }

/* Text */
.dash-text h3 {
    margin:0;
    font-size:18px;
    font-weight:600;
    color:#1e293b;
}

.dash-text p {
    margin:6px 0 0;
    font-size:14px;
    color:#475569;
}

/* Arrow */
.dash-arrow {
    position:absolute;
    right:25px; 
    font-size:24px;
    color:rgba(0,0,0,0.3);
}

/* Hover */
.wcmamtx_dashboard_link a:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}


.dash-text {
    text-align: left;
}
.wcmtx-my-account-links {
  --wcmtx-col-lg: 4;
}


.woocommerce-account .woocommerce-MyAccount-content p {
    font-family: var(--heading--font-family);
    font-size: 12px;
}
.woocommerce-account .woocommerce-MyAccount-content p:first-of-type {
    margin-bottom: 0 !important;
}

.wcmamtx_dashboard_link {
    border: none;
}
p.welcome-text {
    font-weight: 600;
    font-size: 20px !important;
}
span.user-name {
    color: cadetblue;
}
.fa.fa-shopping-basket:before, .fa.fa-file-download:before,
.fa.fa-home:before, .fa.fa-file-alt:before, .fa.fa-user:before
{
    content: "";
}
.fa.fa-shopping-basket {
    background: url(images/shopping-bag.svg) center center no-repeat;
    width: 32px;
    height: 32px;
}
.fa.fa-file-download{
    background: url(images/download-myaccount.svg) center center no-repeat;
    width: 32px;
    height: 32px;
}
.fa.fa-home{
    background: url(images/map-pin.svg) center center no-repeat;
    width: 32px;
    height: 32px;
}
.fa.fa-file-alt{
    background: url(images/clipboard.svg) center center no-repeat;
    width: 32px;
    height: 32px;
}
.custom-link-427580-link .fa.fa-file-alt{
    background: url(images/check-circle.svg) center center no-repeat;
    width: 32px;
    height: 32px;
}
.installments-link .fa.fa-file-alt{
    background: url(images/Indian_Rupee_symbol.svg) center center no-repeat;
    width: 32px;
    height: 32px;
}
.custom-link-368029-link .fa.fa-file-alt{
    background: url(images/book-open.svg) center center no-repeat;
    width: 32px;
    height: 32px; 
}
.fa.fa-user{
    background: url(images/user-myaccount.svg) center center no-repeat;
    width: 32px;
    height: 32px;  
}
.custom-link-427580-link .wcmtx_icon_src, 
.installments-link .wcmtx_icon_src,
.custom-link-368029-link .wcmtx_icon_src{
    width: 65px;
    min-height: 65px;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 22px;
}
/* Responsive */
@media(max-width:1024px){
    .wcmtx-my-account-links{--wcmtx-col-lg: 2;display: grid !important;}

}
@media(max-width:667px){
    .wcmamtx_dashboard_link a{ display:block; text-align:center; height:auto; }
    .dash-icon, .custom-link-427580-link .wcmtx_icon_src, .installments-link .wcmtx_icon_src, .custom-link-368029-link .wcmtx_icon_src{ margin: 0 auto 15px !important; }
    .dash-text{ text-align:center; }
    .dash-arrow{ display:none; }
    .cam-wrap {flex-wrap: wrap;}
    .custom-account-menu {order: 2; width: 100%; margin: 10px 0 0;}
    p.welcome-text {flex-basis: 100%; order: 1; text-align: center;}
    .custom-account-menu ul{justify-content: center;}
    .wcmtx-my-account-links a, .wcmamtx_dashboard_link a:hover{ box-shadow:none; }
    .dash-icon { width: 50px; height: 50px;}
    .fa{background-size: 23px !important;}
    .custom-link-427580-link .wcmtx_icon_src, .installments-link .wcmtx_icon_src, .custom-link-368029-link .wcmtx_icon_src { width: 50px; min-height: 50px;}
    body.woocommerce-account .site-logo .custom-logo { max-width: 200px; }
}