/* AirSimGo 3.7.13: structural account fix. The dashboard can be rendered by
   shortcode OR Woo's endpoint. Earlier rules required a body class that the
   shortcode route does not receive. Match the actual dashboard descendant
   instead, without depending on body classes / page IDs or account slugs. */
@supports selector(.woocommerce:has(.asgm-dashboard-v2)) {
  .woocommerce:has(.asgm-dashboard-v2) {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .woocommerce:has(.asgm-dashboard-v2) > .woocommerce-MyAccount-navigation,
  .woocommerce:has(.asgm-dashboard-v2) > nav.woocommerce-MyAccount-navigation {
    display: none !important;
  }
  .woocommerce:has(.asgm-dashboard-v2) .woocommerce-MyAccount-content:has(.asgm-dashboard-v2) {
    display: block !important;
    float: none !important;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* Extra route marker fallback for shortcode pages on modern or older browsers. */
body.asgm-customer-dashboard-page .woocommerce {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
}
body.asgm-customer-dashboard-page .woocommerce > .woocommerce-MyAccount-navigation {
  display: none !important;
}
body.asgm-customer-dashboard-page .woocommerce .woocommerce-MyAccount-content {
  display: block !important;
  float: none !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

/* AirSimGo v3.7.12: fixes the actual theme's two-column WooCommerce GRID.
   The AirSimGo premium theme uses:
   .logged-in.woocommerce-account .woocommerce { grid-template-columns:250px minmax(0,1fr) }
   The customer My eSIMs endpoint hides Woo's nav; without resetting the PARENT
   grid, MyAccount-content occupies the leftover 250px sidebar track.
   Only this customer endpoint changes; reseller/customer other account routes stay intact. */
body.logged-in.woocommerce-account.asgm-customer-account-endpoint .woocommerce,
body.logged-in.asgm-customer-account-endpoint .woocommerce {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  column-gap:0!important;
  row-gap:0!important;
  min-width:0!important;
}
body.asgm-customer-account-endpoint .woocommerce > .woocommerce-MyAccount-content,
body.asgm-customer-account-endpoint .woocommerce .woocommerce-MyAccount-content {
  grid-column:1 / -1!important;
  grid-row:auto!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
}
/* Prevent inherited theme account-grid placement of the dashboard widget. */
body.asgm-customer-account-endpoint .woocommerce-MyAccount-content > .asgm-dashboard-v2,
body.asgm-customer-account-endpoint .woocommerce-MyAccount-content > .asgm-app.asgm-dashboard-v2 {
  grid-column:1 / -1!important;
}

/* AirSimGo v3.7.11 – customer My eSIMs layout repair.
   Intentionally scoped: does not modify reseller console, storefront, checkout,
   supplier provisioning, or the WooCommerce customer account on other tabs. */
body.asgm-customer-account-endpoint .woocommerce-MyAccount-navigation,
body.asgm-customer-account-endpoint nav.woocommerce-MyAccount-navigation {
  display:none!important;
}
body.asgm-customer-account-endpoint .woocommerce-MyAccount-content,
body.asgm-customer-account-endpoint .woocommerce .woocommerce-MyAccount-content {
  display:block!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  min-width:0!important;
}
body.asgm-customer-account-endpoint .woocommerce {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
/* Customer dashboard owns its layout; the account theme does not dictate its card columns. */
.asgm-app.asgm-dashboard-v2 {
  position:relative;
  box-sizing:border-box;
  container-type:inline-size;
  isolation:isolate;
  display:block;
  width:100%!important;
  max-width:1180px!important;
  min-width:0!important;
  margin:0 auto!important;
  padding:clamp(18px,2.7vw,36px)!important;
  overflow:visible!important;
  background:#fff!important;
  border:1px solid #eee7e3;
  border-radius:24px;
  box-shadow:0 15px 58px rgba(53,28,16,.06);
}
.asgm-dashboard-v2 .asgm-customer-nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 28px;
  padding:0 0 16px;
  border-bottom:1px solid #eee7e3;
}
.asgm-dashboard-v2 .asgm-customer-nav a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:9px 15px;
  border-radius:11px;
  color:#655a57!important;
  background:#f7f5f3;
  text-decoration:none!important;
  line-height:1.25;
  font-size:13px;
  font-weight:750;
  white-space:nowrap;
}
.asgm-dashboard-v2 .asgm-customer-nav a[aria-current="page"] {
  color:#fff!important;
  background:#e95025;
}
.asgm-dashboard-v2 .asgm-dashboard-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px 24px;
  min-width:0;
  margin:0 0 24px;
}
.asgm-dashboard-v2 .asgm-dashboard-head>div{min-width:0;flex:1 1 280px}
.asgm-dashboard-v2 .asgm-dashboard-head .asgm-kicker {font-size:10px;margin-bottom:12px}
.asgm-dashboard-v2 .asgm-dashboard-head h2 {
  margin:0!important;
  font-size:clamp(30px,3.2vw,44px)!important;
  line-height:1.11!important;
  letter-spacing:-.045em!important;
  overflow-wrap:normal;
}
.asgm-dashboard-v2 .asgm-dashboard-head p {
  margin:9px 0 0!important;
  font-size:14px!important;
  line-height:1.55!important;
  max-width:510px;
}
.asgm-dashboard-v2 .asgm-dashboard-head .asgm-cta {
  position:relative;
  flex:0 0 auto;
  display:inline-flex;
  width:auto;
  max-width:100%;
  min-height:44px;
  padding:11px 18px;
  white-space:normal;
  text-align:center;
  line-height:1.35;
  justify-content:center;
  background:linear-gradient(115deg,#e92b19,#f04a1d 55%,#ff7a1a)!important;
  color:#fff!important;
  font-weight:800;
  font-size:13px;
  opacity:1!important;
}
.asgm-dashboard-v2 .asgm-dashboard-stats {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  width:100%;
  margin-bottom:29px;
}
.asgm-dashboard-v2 .asgm-dashboard-stats>div {
  display:flex;
  min-width:0;
  align-items:center;
  gap:13px;
  padding:19px 16px;
  border-radius:16px;
}
.asgm-dashboard-v2 .asgm-dashboard-stats>div>div{min-width:0}
.asgm-dashboard-v2 .asgm-dashboard-stats small{font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.asgm-dashboard-v2 .asgm-dashboard-stats strong{font-size:22px;line-height:1.25}
.asgm-dashboard-v2 .asgm-stat-icon{flex:0 0 41px}
.asgm-dashboard-v2 .asgm-dashboard-layout {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);
  gap:22px;
  align-items:start;
  width:100%;
}
.asgm-dashboard-v2 .asgm-dashboard-main{margin:0!important;padding:0!important;background:transparent!important;max-width:100%!important;width:100%!important;}
.asgm-dashboard-v2 .asgm-dashboard-main,
.asgm-dashboard-v2 .asgm-dashboard-aside,
.asgm-dashboard-v2 .asgm-esim-stack,
.asgm-dashboard-v2 .asgm-install-panel,
.asgm-dashboard-v2 .asgm-help-panel {min-width:0;max-width:100%}
.asgm-dashboard-v2 .asgm-dashboard-aside {
  position:static!important;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  top:auto!important;
}
.asgm-dashboard-v2 .asgm-dashboard-section-head h3{font-size:21px;line-height:1.3}
.asgm-dashboard-v2 .asgm-dashboard-section-head p{font-size:13px;line-height:1.5}
.asgm-dashboard-v2 .asgm-install-panel,
.asgm-dashboard-v2 .asgm-help-panel{padding:23px;border-radius:19px}
.asgm-dashboard-v2 .asgm-install-panel h3,.asgm-dashboard-v2 .asgm-help-panel h3 {font-size:21px;line-height:1.25}
.asgm-dashboard-v2 .asgm-install-panel ol{list-style:none!important;margin:18px 0!important;padding:0!important;gap:17px}
.asgm-dashboard-v2 .asgm-install-panel li{display:flex;gap:12px;min-width:0;margin:0;padding:0}
.asgm-dashboard-v2 .asgm-install-panel li>span{flex:0 0 32px;width:32px;height:32px;font-size:12px}
.asgm-dashboard-v2 .asgm-install-panel li div{min-width:0}
.asgm-dashboard-v2 .asgm-install-panel li strong{font-size:13px;line-height:1.4}
.asgm-dashboard-v2 .asgm-install-panel li small{font-size:12px;line-height:1.45}
.asgm-dashboard-v2 .asgm-install-panel>a{font-size:13px}
.asgm-dashboard-v2 .asgm-empty--dashboard{max-width:100%;min-width:0;overflow-wrap:anywhere}
.asgm-dashboard-v2 .asgm-esim-card,.asgm-dashboard-v2 .asgm-live-esims{min-width:0;max-width:100%}
.asgm-dashboard-v2 .asgm-esim-card code{overflow-wrap:anywhere}
/* Container queries handle WooCommerce themes that allocate narrower account columns
   even on a wide desktop window. */
@container (max-width:850px) {
  .asgm-dashboard-v2 .asgm-dashboard-layout{grid-template-columns:minmax(0,1fr)}
  .asgm-dashboard-v2 .asgm-dashboard-aside{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container (max-width:620px) {
  .asgm-dashboard-v2 .asgm-dashboard-stats{grid-template-columns:minmax(0,1fr)}
  .asgm-dashboard-v2 .asgm-dashboard-aside{grid-template-columns:minmax(0,1fr)}
  .asgm-dashboard-v2 .asgm-dashboard-head{display:flex;align-items:stretch;flex-direction:column}
  .asgm-dashboard-v2 .asgm-dashboard-head>div{flex:0 1 auto;width:100%}
  .asgm-dashboard-v2 .asgm-dashboard-head .asgm-cta{width:100%;flex:0 0 auto}
}
@media(max-width:520px){
  .asgm-app.asgm-dashboard-v2{padding:18px 13px!important;border-radius:16px}
  .asgm-dashboard-v2 .asgm-customer-nav{gap:6px;margin-bottom:20px}
  .asgm-dashboard-v2 .asgm-customer-nav a{padding:9px 11px;font-size:11px;white-space:normal}
  .asgm-dashboard-v2 .asgm-dashboard-head h2{font-size:31px!important}
  .asgm-dashboard-v2 .asgm-dashboard-stats>div{padding:14px}
}
/* On sites still serving reveal animations, never hide account contents. */
.asgm-dashboard-v2.asgo-reveal-ready,
.asgm-dashboard-v2 .asgo-reveal-ready,
.asgm-dashboard-v2 .asgm-reveal {
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
