
/* =====================================================================
   SISSNUTS ACCOUNT v5.17 — FINAL DESKTOP LAYOUT + READABLE TYPOGRAPHY
   ===================================================================== */

body.woocommerce-account.tc-account-page{
  --acc-text:#334039;
  --acc-muted:#747d76;
  --acc-line:#F8F1E4;
  --acc-green:#394536;
  --acc-gold:#E7D2AA;
}

/* Kill legacy width restrictions */
body.woocommerce-account.tc-account-page :is(
  .site-main,
  .tc-commerce,
  .woocommerce,
  .tc-account-page,
  .tc-account-shell,
  .woocommerce-MyAccount-content,
  .tc-account-dashboard
){
  max-width:none!important;
}

/* Main account width */
body.woocommerce-account.tc-account-page .tc-account-hero.tc-container,
body.woocommerce-account.tc-account-page .tc-account-shell{
  width:min(1500px,calc(100vw - 48px))!important;
  max-width:1500px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Keep real desktop layout until 900px */
body.woocommerce-account.tc-account-page .tc-account-shell{
  display:grid!important;
  grid-template-columns:270px minmax(0,1fr)!important;
  gap:22px!important;
  align-items:start!important;
  padding-bottom:70px!important;
}

body.woocommerce-account.tc-account-page .woocommerce-MyAccount-navigation.tc-account-nav{
  width:270px!important;
  max-width:270px!important;
  min-width:270px!important;
  position:static!important;
  top:auto!important;
  float:none!important;
  margin:0!important;
  padding:14px!important;
  border:1px solid var(--acc-line)!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 12px 32px rgba(46,36,22,.035)!important;
}

body.woocommerce-account.tc-account-page .woocommerce-MyAccount-content{
  width:100%!important;
  min-width:0!important;
  float:none!important;
  margin:0!important;
  padding:26px!important;
  border:1px solid var(--acc-line)!important;
  border-radius:22px!important;
  background:#fff!important;
}

/* Hero */
body.woocommerce-account.tc-account-page .tc-account-hero{
  margin-top:24px!important;
  margin-bottom:18px!important;
  padding:24px 28px!important;
}
body.woocommerce-account.tc-account-page .tc-account-hero h1{
  font-size:30px!important;
  line-height:1.35!important;
}
body.woocommerce-account.tc-account-page .tc-account-hero__copy p{
  font-size:15px!important;
  line-height:1.9!important;
}
body.woocommerce-account.tc-account-page .tc-account-hero__eyebrow{
  font-size:12px!important;
}
body.woocommerce-account.tc-account-page .tc-account-hero__meta>div span{
  font-size:11px!important;
}
body.woocommerce-account.tc-account-page .tc-account-hero__meta>div strong{
  font-size:17px!important;
}
body.woocommerce-account.tc-account-page .tc-account-hero__secure{
  font-size:12px!important;
}

/* Navigation readable */
body.woocommerce-account.tc-account-page .tc-account-nav__label{
  font-size:12px!important;
  padding:7px 8px 12px!important;
}
body.woocommerce-account.tc-account-page .tc-account-nav a{
  min-height:52px!important;
  grid-template-columns:38px minmax(0,1fr) 18px!important;
  gap:10px!important;
  padding:7px 10px!important;
  font-size:14px!important;
  line-height:1.4!important;
}
body.woocommerce-account.tc-account-page .tc-account-nav__icon{
  width:38px!important;
  height:38px!important;
}
body.woocommerce-account.tc-account-page .tc-account-nav__icon .siss-stockholm-svg{
  width:18px!important;
  height:18px!important;
}
body.woocommerce-account.tc-account-page .tc-account-nav__help strong{
  font-size:12px!important;
}
body.woocommerce-account.tc-account-page .tc-account-nav__help small{
  font-size:10px!important;
  line-height:1.5!important;
}

/* Dashboard heading */
body.woocommerce-account.tc-account-page .tc-dashboard-topbar h2,
body.woocommerce-account.tc-account-page .tc-dashboard-head h2{
  font-size:28px!important;
  line-height:1.35!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-topbar p,
body.woocommerce-account.tc-account-page .tc-dashboard-head p{
  font-size:14px!important;
  line-height:1.8!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-eyebrow{
  font-size:11px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-shop{
  min-height:44px!important;
  padding:0 16px!important;
  font-size:13px!important;
}

/* Stats */
body.woocommerce-account.tc-account-page .tc-dashboard-stats{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
  margin-bottom:18px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-stat{
  min-height:92px!important;
  grid-template-columns:46px minmax(0,1fr) 20px!important;
  padding:14px!important;
  border-radius:16px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-stat__icon{
  width:46px!important;
  height:46px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-stat small{
  font-size:12px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-stat strong{
  font-size:22px!important;
}

/* Main dashboard */
body.woocommerce-account.tc-account-page .tc-dashboard-main,
body.woocommerce-account.tc-account-page .tc-dashboard-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr)!important;
  gap:16px!important;
  align-items:start!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-card-head h3{
  font-size:18px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-card-head span{
  font-size:11px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-card-head>a{
  font-size:12px!important;
}

/* Recent order */
body.woocommerce-account.tc-account-page .tc-recent-order__top small{
  font-size:11px!important;
}
body.woocommerce-account.tc-account-page .tc-recent-order__top strong{
  font-size:15px!important;
}
body.woocommerce-account.tc-account-page .tc-order-chip{
  font-size:11px!important;
  padding:7px 10px!important;
}
body.woocommerce-account.tc-account-page .tc-recent-product strong{
  font-size:13px!important;
}
body.woocommerce-account.tc-account-page .tc-recent-product small{
  font-size:11px!important;
}
body.woocommerce-account.tc-account-page .tc-recent-order__foot small{
  font-size:10px!important;
}
body.woocommerce-account.tc-account-page .tc-recent-order__foot strong{
  font-size:13px!important;
}
body.woocommerce-account.tc-account-page .tc-recent-order__foot>a{
  min-height:40px!important;
  padding:0 12px!important;
  font-size:11px!important;
}

/* Quick actions + address */
body.woocommerce-account.tc-account-page .tc-dashboard-action-grid>a{
  min-height:92px!important;
  font-size:12px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-action-grid b{
  width:36px!important;
  height:36px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-address>header span{
  font-size:10px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-address>header h3{
  font-size:16px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-address address,
body.woocommerce-account.tc-account-page .tc-dashboard-address>p{
  font-size:12px!important;
  line-height:1.9!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-address>a{
  font-size:12px!important;
}

/* Assurance */
body.woocommerce-account.tc-account-page .tc-dashboard-assurance strong{
  font-size:11px!important;
}
body.woocommerce-account.tc-account-page .tc-dashboard-assurance span{
  font-size:9px!important;
}

/* All WooCommerce endpoint content readable */
body.woocommerce-account.tc-account-page .woocommerce-MyAccount-content :is(p,li,td,th,label,legend){
  font-size:14px!important;
  line-height:1.8!important;
}
body.woocommerce-account.tc-account-page .woocommerce-MyAccount-content h2{
  font-size:24px!important;
}
body.woocommerce-account.tc-account-page .woocommerce-MyAccount-content h3{
  font-size:20px!important;
}
body.woocommerce-account.tc-account-page .woocommerce-MyAccount-content :is(input,select,textarea,.select2-selection__rendered){
  font-size:14px!important;
}
body.woocommerce-account.tc-account-page .woocommerce-MyAccount-content .button{
  min-height:42px!important;
  padding-inline:14px!important;
  font-size:13px!important;
}

/* Tablet: only here stack */
@media(max-width:900px){
  body.woocommerce-account.tc-account-page .tc-account-hero.tc-container,
  body.woocommerce-account.tc-account-page .tc-account-shell{
    width:calc(100% - 20px)!important;
  }

  body.woocommerce-account.tc-account-page .tc-account-shell{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  body.woocommerce-account.tc-account-page .woocommerce-MyAccount-navigation.tc-account-nav{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }

  body.woocommerce-account.tc-account-page .tc-account-nav ul{
    display:flex!important;
    gap:6px!important;
    overflow-x:auto!important;
    white-space:nowrap!important;
  }

  body.woocommerce-account.tc-account-page .tc-account-nav li{
    flex:0 0 auto!important;
  }

  body.woocommerce-account.tc-account-page .tc-account-nav a{
    grid-template-columns:34px auto!important;
  }

  body.woocommerce-account.tc-account-page .tc-account-nav__arrow,
  body.woocommerce-account.tc-account-page .tc-account-nav__label,
  body.woocommerce-account.tc-account-page .tc-account-nav__help{
    display:none!important;
  }

  body.woocommerce-account.tc-account-page .tc-dashboard-main,
  body.woocommerce-account.tc-account-page .tc-dashboard-grid{
    grid-template-columns:1fr!important;
  }
}

/* Mobile */
@media(max-width:640px){
  body.woocommerce-account.tc-account-page .tc-account-hero.tc-container,
  body.woocommerce-account.tc-account-page .tc-account-shell{
    width:calc(100% - 16px)!important;
  }

  body.woocommerce-account.tc-account-page .woocommerce-MyAccount-content{
    padding:16px!important;
  }

  body.woocommerce-account.tc-account-page .tc-account-hero h1{
    font-size:24px!important;
  }

  body.woocommerce-account.tc-account-page .tc-account-hero__copy p{
    font-size:13px!important;
  }

  body.woocommerce-account.tc-account-page .tc-dashboard-stats{
    grid-template-columns:1fr!important;
  }

  body.woocommerce-account.tc-account-page .tc-dashboard-stat:last-child{
    grid-column:auto!important;
  }

  body.woocommerce-account.tc-account-page .tc-dashboard-action-grid{
    grid-template-columns:1fr 1fr!important;
  }
}
