/* Negin Choob Alborz customer account: confined to the WooCommerce My Account page. */
body.nca-wordpress.woocommerce-account .nca-reading-width{max-width:1180px}
body.nca-wordpress.woocommerce-account .nca-article-text{max-width:none;line-height:1.9}
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce{
  direction:rtl;display:grid;grid-template-columns:260px minmax(0,1fr);gap:28px;align-items:start;
}
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-notices-wrapper,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-message,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-error,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-info{grid-column:1/-1}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation{
  float:none!important;width:100%!important;min-width:0!important;background:#fff;
  border:1px solid #dce5ef;border-radius:20px;padding:18px;
  box-shadow:0 12px 30px rgba(14,38,66,.055)
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation::before{
  content:"بخش‌های حساب من";display:block;padding:5px 10px 15px;color:#102844;font-weight:800;font-size:17px
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation ul,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li{
  list-style:none!important;margin:0!important;padding:0!important;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li::marker{content:""}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li a{
  display:flex;align-items:center;justify-content:space-between;gap:9px;
  text-decoration:none!important;font-size:14px;font-weight:700;
  color:#38506c!important;padding:13px 14px!important;margin:3px 0;
  border-radius:12px;border:1px solid transparent;transition:background .15s,color .15s;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li a:focus-visible{
  background:#ecf1f7;color:#102844!important;border-color:#dbe5f0;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{border-right:4px solid #cda856}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:12px!important;border-top:1px solid #e6ecf3;padding-top:10px!important}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content{
  float:none!important;width:100%!important;min-width:0!important;
  background:#fff;border:1px solid #dce5ef;border-radius:22px;
  padding:clamp(20px,3vw,38px);box-shadow:0 15px 40px rgba(14,38,66,.055);color:#233b55;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content > :first-child{margin-top:0}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content p{line-height:2.1}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content h2,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content h3{color:#102844}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content a:not(.button):not(.nca-customer-quick-card):not(.nca-customer-primary-action){color:#936b24;text-underline-offset:3px}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content a:focus-visible,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content button:focus-visible{outline:3px solid #cda856;outline-offset:3px}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .woocommerce-button,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content button.button{
  background:#102844!important;color:#fff!important;border-radius:999px!important;padding:12px 22px!important;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content textarea,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content select{
  border:1px solid #cad9e9;border-radius:10px;background:#fff;min-height:44px;padding:10px 12px;max-width:100%;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table-wrap{width:100%;overflow-x:auto;border-radius:12px;margin:18px 0}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table{min-width:530px}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table th{background:#102844!important;color:#fff!important;text-align:right}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table td{vertical-align:middle}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-status-pill{
  display:inline-flex;align-items:center;border-radius:999px;padding:4px 12px;
  background:#f0f4f9;border:1px solid #d8e3ef;color:#243f5e;font-size:12px;font-weight:700;white-space:nowrap;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-status-pill--reviewing{background:#fff9e9;border-color:#f0dfad;color:#85651d}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-status-pill--contacted{background:#eaf5ff;border-color:#c5ddf2;color:#245577}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-status-pill--closed{background:#e9f6ee;border-color:#c2e5d0;color:#2c6b46}
.nca-customer-overview{margin-top:30px}
.nca-customer-overview-heading{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:end;border-bottom:1px solid #e6edf5;padding-bottom:18px;margin-bottom:20px}
.nca-customer-overview-heading h2{font-size:clamp(19px,2.2vw,25px);line-height:1.6;margin:5px 0 0!important}
.nca-customer-overview-heading p{font-size:13px;color:#678096;margin:0!important}
.nca-customer-overline{color:#ae8b49;letter-spacing:.10em;font:700 10px/1.5 system-ui,sans-serif}
.nca-customer-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.nca-customer-quick-card{display:flex;flex-direction:column;min-width:0;gap:7px;background:#f8fafc;border:1px solid #dce5ef;border-radius:15px;padding:18px 19px;color:#102844!important;text-decoration:none!important;transition:transform .15s,border-color .15s}
.nca-customer-quick-card:hover{transform:translateY(-2px);border-color:#c9a35b}
.nca-customer-quick-card strong{color:#102844;font-size:16px}
.nca-customer-quick-card span:not(.nca-customer-count){font-size:12px;color:#5c7188;line-height:1.7}
.nca-customer-quick-card .nca-customer-count{font-size:12px;font-weight:800;color:#a47c35}
.nca-customer-quick-card em{font-style:normal;font-size:18px;align-self:flex-end;color:#b58b43}
.nca-customer-consult-action{margin:22px 0 0!important}
.nca-customer-primary-action{display:inline-flex;justify-content:center;align-items:center;background:#e5c778;color:#102844!important;text-decoration:none!important;font-weight:800;font-size:13px;min-height:46px;padding:10px 25px;border-radius:999px}
.nca-customer-primary-action:hover{background:#d4b45e}
@media(max-width:800px){
  body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce{grid-template-columns:1fr;gap:16px}
  body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-notices-wrapper,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-message,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-error,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce > .woocommerce-info{grid-column:1/-1}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation{padding:12px}
  body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li a{font-size:12px;padding:11px!important;min-height:46px}
  body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation::before{padding:6px 8px 10px}
}
@media(max-width:520px){
  body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .woocommerce{gap:12px}
  body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content{padding:17px}
  .nca-customer-quick-grid{grid-template-columns:1fr}
  .nca-customer-overview-heading{display:block}
  .nca-customer-overview-heading p{margin-top:9px!important}
}

/* v1.4.1 - account layout stability fix.
 * A WooCommerce shortcode may be nested inside a wp-block-shortcode wrapper,
 * so the old .nca-article-text > .woocommerce selector does not always match.
 * Use a scoped flex row with explicit column sizes and ordering.
 */
body.logged-in.nca-wordpress.woocommerce-account .nca-reading-width {
  width:calc(100% - 36px)!important;
  max-width:1160px!important;
}
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text > .wp-block-shortcode {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:flex-start!important;
  justify-content:stretch!important;
  gap:clamp(15px,2.6vw,30px)!important;
  direction:rtl!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin-inline:auto!important;
}
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-MyAccount-navigation {
  flex:0 0 245px!important;
  width:245px!important;
  max-width:245px!important;
  min-width:0!important;
  order:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-MyAccount-content {
  flex:1 1 0%!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  order:1!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow-wrap:break-word;
}
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-notices-wrapper,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-message,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-error,
body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-info {
  flex:0 0 100%!important;
  width:100%!important;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content h2,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content h3 {
  font-size:clamp(19px,2vw,25px)!important;
  line-height:1.6!important;
  margin:0 0 18px!important;
  letter-spacing:normal!important;
  overflow-wrap:break-word;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table-wrap {
  box-sizing:border-box;
  display:block;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table {
  width:100%!important;
  min-width:520px!important;
  table-layout:auto;
  border-collapse:collapse;
  font-size:13px;
}
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table th,
body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content .nca-table td {
  white-space:normal;
  padding:13px 12px;
}
@media(max-width:820px) {
  body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce {
    flex-direction:column!important;
    gap:16px!important;
  }
  body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-MyAccount-navigation,
  body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-MyAccount-content {
    flex:0 1 auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  body.logged-in.nca-wordpress.woocommerce-account .nca-article-text .woocommerce > .woocommerce-MyAccount-navigation ul {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
  }
}
@media(max-width:480px) {
  body.logged-in.nca-wordpress.woocommerce-account .nca-reading-width {width:calc(100% - 24px)!important}
  body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation {padding:11px!important}
  body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-navigation li a {font-size:12px!important;line-height:1.6!important;padding:10px!important}
  body.nca-wordpress.woocommerce-account .woocommerce-MyAccount-content {padding:16px!important}
}
