@font-face{font-family:GH2Vazir;src:url('../gh-pack-groups/fonts/vazirmatn-variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
/* Scope to account only. Avoid touching icon fonts, checkout or vendor widgets outside main. */
body.gh2-account-active #main :is(h1,h2,h3,h4,h5,p,a,button,input,textarea,select,label,th,td,li,small,strong,span):not(i):not([class*="icon-"]):not([class*="dashicons"]):not([class*="fa-"]){font-family:GH2Vazir,Vazirmatn,Tahoma,sans-serif!important;letter-spacing:0}
body.gh2-account-dashboard #main:has(.gh2-account) :is(.woocommerce-MyAccount-navigation,.account-user,.dashboard-links){display:none!important}
body.gh2-account-dashboard #main:has(.gh2-account) :is(.woocommerce-MyAccount-content,.my-account-content){width:100%!important;max-width:100%!important;flex:0 0 100%!important;float:none!important;margin:0!important;padding:0!important;border:0!important}
body.gh2-account-dashboard #main:has(.gh2-account) .row:has(>.col>.account-user):has(.gh2-account)>.col:has(>.account-user){display:none!important}
body.gh2-account-dashboard #main:has(.gh2-account) .col:has(.gh2-account){max-width:100%;flex-basis:100%}
.gh2-account{max-width:1020px;margin:12px auto 28px;padding:12px;color:#24364b;line-height:1.6;font-family:GH2Vazir,Vazirmatn,Tahoma,sans-serif!important;box-sizing:border-box}
.gh2-account *{box-sizing:border-box}.gh2-account h2,.gh2-account h3{margin:0;color:#24364b;line-height:1.5}.gh2-account h2{font-size:19px;font-weight:750}.gh2-account h3{font-size:13px;font-weight:650;margin:0 0 8px;color:#596777}.gh2-account-identity{display:flex;align-items:center;gap:14px;background:#f5f7fa;border:1px solid #e3e9ef;border-radius:16px;padding:16px;margin:0 0 18px}.gh2-account-avatar{display:grid;place-items:center;flex:none;width:52px;height:52px;border-radius:50%;background:#e2ebf5;color:#294c79}.gh2-account-identity strong,.gh2-account-identity small{display:block;color:#435368;font-size:13px}.gh2-account-identity small{color:#697687;text-align:right;font-size:12px}.gh2-account-groups{display:grid;grid-template-columns:1fr;gap:16px}.gh2-account-group{min-width:0;background:#fff;border:1px solid #e3e9ef;border-radius:14px;padding:12px}.gh2-account-link{display:flex!important;align-items:center;gap:11px;min-height:62px;padding:9px 3px!important;margin:0!important;border:0!important;border-bottom:1px solid #edf0f3!important;text-decoration:none!important;background:transparent!important;color:#24364b!important;text-align:right!important;box-shadow:none!important;letter-spacing:0!important}.gh2-account-link:last-child{border-bottom:0!important}.gh2-account-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;background:#edf2f7;border-radius:11px;color:#345779}.gh2-account-copy{flex:1;min-width:0;display:block}.gh2-account-copy strong,.gh2-account-copy small{display:block;overflow-wrap:anywhere;line-height:1.6}.gh2-account-copy strong{font-size:14px;color:#24364b;font-weight:650}.gh2-account-copy small{font-size:11.5px;color:#687584}.gh2-account-chevron{flex:none;color:#84909a}.gh2-account-percent .gh2-account-icon{background:#fce7e9;color:#b91c32}.gh2-account-exit{display:inline-flex!important;align-items:center;gap:8px;margin:18px 4px 0!important;padding:8px 10px;color:#b42336!important;font-size:13px;text-decoration:none!important}.gh2-account a:focus-visible{outline:2px solid #345779;outline-offset:3px;border-radius:8px}.gh2-account-link:hover{background:#f7f9fb!important;border-radius:9px}
body.gh2-account-active #main .woocommerce-MyAccount-content :is(a,button):not(.gh2-account-link):not(.gh2-account-exit):not(.button){color:#344e69}
@media(min-width:850px){.gh2-account-groups{grid-template-columns:1.15fr 1fr;align-items:start}.gh2-account-group:first-child{grid-row:span 2}.gh2-account{padding:18px}.gh2-account-group{padding:16px}.gh2-account-copy strong{font-size:15px}.gh2-account-copy small{font-size:12px}}
@media(max-width:849px){.gh2-account{padding:8px;margin-top:8px}.gh2-account-group{padding:10px}.gh2-account-identity{padding:12px}.gh2-account-link{min-height:58px}.gh2-account-copy strong{font-size:13px}}
body.gh2-account-dashboard #main:has(.gh2-account) :is(#my-account-nav,.my-account-nav,.account-nav,.account-sidebar){display:none!important}
/* Native endpoint pages keep their forms and controls; unify visible navigation styling. */
body.gh2-account-active #main .woocommerce-MyAccount-navigation a{color:#344e69!important;font-family:GH2Vazir,Vazirmatn,Tahoma,sans-serif!important;letter-spacing:0!important}
body.gh2-account-active #main .woocommerce-MyAccount-navigation .is-active>a{color:#24364b!important;background:#edf2f7;border-radius:8px}

/* 2.0.5.1: only hide the legacy sidebar when the new inner navigation actually rendered. */
body.gh2-account-inner-page #main:has(.gh2-account-inner) :is(.woocommerce-MyAccount-navigation,.account-user,#my-account-nav,.my-account-nav,.account-nav,.account-sidebar,.dashboard-links):not(.gh2-account-inner *){display:none!important}
body.gh2-account-inner-page #main:has(.gh2-account-inner) .row:has(.gh2-account-inner)>.col:has(:is(.account-user,.woocommerce-MyAccount-navigation,#my-account-nav,.account-sidebar)):not(:has(.gh2-account-inner)){display:none!important}
body.gh2-account-inner-page #main:has(.gh2-account-inner) :is(.woocommerce-MyAccount-content,.my-account-content,.col):has(.gh2-account-inner){width:100%!important;max-width:100%!important;flex:0 0 100%!important;float:none!important;margin:0!important;border:0!important}
body.gh2-account-inner-page #main:has(.gh2-account-inner) :is(.woocommerce-MyAccount-content,.my-account-content):has(.gh2-account-inner){padding:0!important}
body.gh2-account-inner-page #main:has(.gh2-account-inner) :is(.my-account-header,.account-title,.page-title):not(.gh2-account-inner *){display:none!important}
.gh2-account-inner{--gh2-ink:#24364b;--gh2-muted:#596777;--gh2-border:#dfe6ed;--gh2-soft:#edf2f7;max-width:1020px;margin:12px auto 28px;padding:12px;color:var(--gh2-ink);font-family:GH2Vazir,Vazirmatn,Tahoma,sans-serif!important;line-height:1.75;min-width:0;box-sizing:border-box}
.gh2-account-inner *{box-sizing:border-box}
.gh2-inner-head{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--gh2-border);border-radius:16px;background:#f5f7fa;margin-bottom:16px}
.gh2-inner-head h2{flex:1;min-width:0;font-size:18px;line-height:1.5;font-weight:750;margin:0!important;color:var(--gh2-ink)}
.gh2-inner-back{display:inline-flex!important;align-items:center;gap:4px;padding:7px 9px;border:1px solid var(--gh2-border);border-radius:10px;background:white;color:#294c79!important;font-size:12px;text-decoration:none!important;white-space:nowrap;line-height:1.5}
.gh2-inner-content{min-width:0;background:#fff;border:1px solid var(--gh2-border);border-radius:16px;padding:16px;overflow-wrap:break-word}
.gh2-inner-content :is(h1,h2,h3,h4,legend){color:var(--gh2-ink);line-height:1.6;text-transform:none;letter-spacing:0;font-weight:700}
.gh2-inner-content :is(p,label,th,td,address){color:var(--gh2-ink);font-size:14px;line-height:1.75}
.gh2-inner-content address{font-style:normal;margin:0;overflow-wrap:anywhere}
.gh2-inner-content a:not(.button):not([class*="icon-"]){color:#294c79;text-decoration-thickness:1px}
.gh2-inner-content :is(a.button,button.button,input.button,button[type="submit"],input[type="submit"]){font-family:GH2Vazir,Vazirmatn,Tahoma,sans-serif!important;background:#345779!important;border:1px solid #345779!important;color:#fff!important;border-radius:10px!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important;min-height:40px;height:auto;line-height:1.6!important;padding:8px 13px!important;white-space:normal!important;margin:3px 0 3px 4px!important;font-weight:600;font-size:13px!important}
.gh2-inner-content :is(input:not([type]),input[type="text"],input[type="email"],input[type="tel"],input[type="number"],input[type="password"],input[type="search"],input[type="url"],textarea,select,.select2-selection--single){max-width:100%;border:1px solid #cfd9e3!important;border-radius:10px!important;background:#fff;box-shadow:none!important;min-height:44px;font-size:14px;color:var(--gh2-ink);padding:8px 10px}
.gh2-inner-content :is(input,textarea,select,button,a):focus-visible,.gh2-inner-back:focus-visible{outline:2px solid #345779;outline-offset:2px}
.gh2-inner-content .form-row{margin-bottom:14px;min-width:0}.gh2-inner-content label{font-weight:600}.gh2-inner-content fieldset{border:1px solid var(--gh2-border);border-radius:12px;padding:12px;margin:16px 0;min-width:0}
.gh2-inner-content .woocommerce-Address{padding:14px!important;border:1px solid var(--gh2-border);border-radius:12px;background:#f8fafc;float:none!important;width:auto!important;max-width:100%;min-width:0}
.gh2-inner-content .woocommerce-Addresses{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin:12px 0}.gh2-inner-content .woocommerce-Addresses:before,.gh2-inner-content .woocommerce-Addresses:after{display:none!important}
.gh2-inner-content .woocommerce-Address-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.gh2-inner-content .woocommerce-Address-title h3{margin:0;flex:1;font-size:15px}.gh2-inner-content .woocommerce-Address-title a.edit{float:none!important;border-radius:8px;padding:5px 10px;background:#e6edf5;font-size:12px}
.gh2-inner-content :is(.woocommerce-info,.woocommerce-message,.woocommerce-error){border-radius:12px;padding:12px;margin:0 0 14px;line-height:1.8;overflow-wrap:anywhere}
.gh2-inner-content table{max-width:100%;font-size:13px;border-collapse:separate;border-spacing:0;box-shadow:none!important}.gh2-inner-content table :is(th,td){padding:10px 8px;border-color:#e4e9ef;font-size:13px;letter-spacing:0;text-transform:none}.gh2-inner-content table th{background:#f5f7fa;font-weight:650}
.gh2-inner-content .woocommerce-orders-table__cell-order-number a{font-weight:700}.gh2-inner-content .woocommerce-orders-table__cell-order-actions a{display:inline-flex;align-items:center;justify-content:center}
/* WooWallet/TeraWallet content retains vendor tabs, balances, forms, and transactions. */
.gh2-account-inner-wallet :is(.woo-wallet-my-wallet-container,.woo-wallet-content,.woo-wallet-sidebar,.woo-wallet-menu,.woo-wallet-balance,.woo-wallet-balance-container,.woo-wallet-balance-box,.wallet-balance,.wallet-card){max-width:100%;min-width:0;border-radius:12px;box-shadow:none;overflow-wrap:anywhere}
.gh2-account-inner-wallet :is(.woo-wallet-my-wallet-container,.woo-wallet-content){border-color:var(--gh2-border)}
.gh2-account-inner-wallet :is(.woo-wallet-sidebar,.woo-wallet-menu){background:#f5f7fa;border-color:var(--gh2-border)}
.gh2-account-inner-wallet :is(.woo-wallet-balance,.woo-wallet-balance-container,.woo-wallet-balance-box,.wallet-balance,.wallet-card){background:#e8eff7!important;color:#24364b!important;border:1px solid var(--gh2-border);padding:12px}
.gh2-account-inner-wallet :is(.woo-wallet-balance,.woo-wallet-balance-container,.woo-wallet-balance-box,.wallet-balance,.wallet-card) :is(h2,h3,h4,p,strong,.amount){color:#24364b!important}
.gh2-account-inner-wallet :is(.woo-wallet-content,.woo-wallet-my-wallet-container,.dataTables_wrapper){min-width:0;max-width:100%;overflow-x:auto}
@media(max-width:849px){
 .gh2-account-inner{padding:8px;margin:8px auto 22px}.gh2-inner-head{padding:10px;gap:8px}.gh2-inner-head h2{font-size:16px}.gh2-inner-head .gh2-account-icon{width:34px;height:34px}.gh2-inner-back{font-size:11px;padding:6px}.gh2-inner-content{padding:10px}
 .gh2-account-inner-orders .gh2-inner-content{background:transparent;border:0;padding:0}
 .gh2-account-inner-orders table.woocommerce-orders-table{display:block;width:100%;border:0;background:transparent;overflow:visible}
 .gh2-account-inner-orders table.woocommerce-orders-table thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .gh2-account-inner-orders table.woocommerce-orders-table tbody{display:grid;gap:12px;width:100%}
 .gh2-account-inner-orders table.woocommerce-orders-table tbody tr{display:block;border:1px solid var(--gh2-border);border-radius:14px;background:white;padding:10px 12px;width:100%;box-shadow:none}
 .gh2-account-inner-orders table.woocommerce-orders-table tbody td{display:flex!important;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;width:100%!important;padding:8px 0!important;text-align:start!important;border:0;border-bottom:1px solid #edf0f3;background:transparent!important;float:none!important}
 .gh2-account-inner-orders table.woocommerce-orders-table tbody td:before{content:attr(data-title);font-weight:600;color:#596777;float:none!important;font-size:12px;margin:0!important}
 .gh2-account-inner-orders table.woocommerce-orders-table tbody td:last-child{border-bottom:0}
 .gh2-account-inner-orders table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions{justify-content:flex-start;gap:6px}
 .gh2-account-inner-orders table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions:before{flex-basis:100%}
 .gh2-inner-content :is(.woocommerce-table--order-details,.woocommerce-table--customer-details){display:block;overflow-x:auto}
 .gh2-account-inner-wallet .woo-wallet-my-wallet-container{display:flex;flex-direction:column;gap:12px}
 .gh2-account-inner-wallet :is(.woo-wallet-sidebar,.woo-wallet-content){width:100%!important;max-width:100%!important;flex-basis:auto!important;float:none!important}
 .gh2-inner-content :is(.form-row-first,.form-row-last){float:none!important;width:100%!important}
}
.gh2-inner-content a.button{text-decoration:none!important}
.gh2-account-inner-wallet :is(.woo-wallet-balance,.woo-wallet-balance-container,.woo-wallet-balance-box,.wallet-balance,.wallet-card) .amount{display:inline-block;font-size:clamp(20px,4vw,27px);font-weight:750;color:#24364b!important}
.gh2-account-inner-wallet .woo-wallet-sidebar>a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-bottom:1px solid var(--gh2-border);text-decoration:none;font-weight:600}
.gh2-account-inner-wallet .woo-wallet-sidebar>a:last-child{border-bottom:0}
