/**
 * Tea Shop BD — My Account Phase 03 (Premium endpoint UI)
 * Scoped exclusively to authenticated WooCommerce Account pages.
 * Existing Phase 01/02 inline CSS stays intact; no parent-theme changes.
 */
body.tsbd-customer-account:not(.tsbd-customer-account--guest) .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation){
  grid-template-columns:minmax(220px,252px) minmax(0,1fr)!important;
  gap:clamp(17px,2vw,28px)!important;
  padding:clamp(17px,2.2vw,36px) clamp(14px,3vw,50px) 80px!important;
  align-items:start!important;
  background:#fbf8f3!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation{
  top:16px!important;
  max-height:calc(100vh - 32px);
  overflow-y:auto;
  border:1px solid #eadfd9!important;
  border-radius:19px!important;
  padding:16px 11px 13px!important;
  box-shadow:0 14px 34px rgba(81,31,46,.055)!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation:before{
  content:"TEA SHOP BD  /  MY ACCOUNT"!important;
  display:block!important;
  position:static!important;
  color:#85233d!important;
  font-size:10px!important;
  letter-spacing:.12em!important;
  font-weight:850!important;
  line-height:1.5!important;
  padding:2px 13px 15px!important;
  margin:0 0 8px!important;
  border-bottom:1px solid #eee2dc!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation li a{
  display:flex!important;
  gap:11px!important;
  padding:9px 11px!important;
  min-height:45px!important;
  border-radius:11px!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.35!important;
  transition:background-color .15s ease,color .15s ease!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation li a:before{
  content:"•"!important;
  display:grid!important;
  place-items:center!important;
  width:29px!important;
  height:29px!important;
  flex:0 0 29px!important;
  border-radius:9px!important;
  background:#f5ebe6!important;
  color:#8a2440!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:800!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation li.is-active a:before{
  background:rgba(255,255,255,.13)!important;
  color:#e8c57a!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation li:not(.is-active) a:hover{
  background:#fbf2ec!important;
  color:#65172f!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation li a:focus-visible,
body.tsbd-customer-account .tsbd-account-mobile-nav a:focus-visible,
body.tsbd-customer-account .tsbd-account-mobile-nav summary:focus-visible{
  outline:3px solid #d5aa52!important;
  outline-offset:2px!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--dashboard a:before{content:"⌂"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--orders a:before{content:"▤"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--track-order a:before{content:"◎"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--loyalty a:before{content:"★"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--rewards a:before{content:"◇"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--buy-again a:before{content:"↻"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--tea-collection a:before{content:"♧"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--edit-address a:before{content:"⌖"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--edit-account a:before{content:"◉"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--security a:before{content:"◆"!important}
body.tsbd-customer-account .woocommerce-MyAccount-navigation-link--customer-logout a:before{content:"↪"!important}

body.tsbd-customer-account .woocommerce-MyAccount-content{
  min-width:0!important;
  overflow-wrap:break-word;
}
body.tsbd-customer-account.tsbd-account-endpoint-page .woocommerce-MyAccount-content{
  padding:clamp(18px,2.5vw,32px)!important;
  border:1px solid #eddfd8!important;
  border-radius:20px!important;
  background:#fff!important;
  box-shadow:0 8px 30px rgba(73,31,44,.035)!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-content .tsbd-account-endpoint{
  max-width:1320px;
  margin:0 auto;
}
body.tsbd-customer-account .tsbd-account-endpoint-head,
body.tsbd-customer-account .tsbd-account-native-head{
  position:relative;
  background:linear-gradient(110deg,#fff7f1 0%,#fff 84%);
  padding:21px clamp(17px,2.3vw,27px);
  border:1px solid #eddfd8;
  border-left:4px solid #811c3b;
  border-radius:15px;
  margin:0 0 22px;
}
body.tsbd-customer-account .tsbd-account-endpoint-head>span,
body.tsbd-customer-account .tsbd-account-native-head>span{
  display:block;
  text-transform:uppercase;
  font-size:11px;
  font-weight:850;
  letter-spacing:.13em;
  color:#8c2540;
}
body.tsbd-customer-account .tsbd-account-endpoint-head h1,
body.tsbd-customer-account .tsbd-account-native-head h1{
  margin:6px 0 8px!important;
  font-family:inherit!important;
  font-weight:760!important;
  font-size:clamp(25px,2.6vw,36px)!important;
  line-height:1.16!important;
  letter-spacing:-.025em!important;
  color:#411d2c!important;
}
body.tsbd-customer-account .tsbd-account-endpoint-head p,
body.tsbd-customer-account .tsbd-account-native-head p{
  margin:0!important;
  color:#766970!important;
  line-height:1.55!important;
  font-size:13px!important;
  max-width:800px;
}
body.tsbd-customer-account .tsbd-endpoint-hero{
  padding:23px clamp(17px,2.5vw,27px)!important;
  border:1px solid #eddfd8;
  border-left:4px solid #811c3b;
  border-radius:16px!important;
  background:linear-gradient(115deg,#fff7f1,#fff)!important;
  margin:0 0 20px!important;
}
body.tsbd-customer-account .tsbd-endpoint-hero h1{
  font-family:inherit!important;
  font-size:clamp(25px,2.5vw,36px)!important;
  font-weight:760!important;
  line-height:1.2!important;
  color:#411d2c!important;
  margin:7px 0!important;
}
body.tsbd-customer-account .tsbd-account-empty{
  padding:30px clamp(19px,3vw,35px)!important;
  background:#fffcf8!important;
  border:1px dashed #d6bcb2!important;
  border-radius:16px!important;
}
body.tsbd-customer-account .tsbd-account-empty strong{
  display:block;
  color:#462432;
  font-size:18px;
  margin-bottom:5px;
}
body.tsbd-customer-account .tsbd-account-empty p{
  margin:0 0 12px!important;
  font-size:13px;
  line-height:1.65;
}

/* Native WooCommerce Orders / View Order */
body.tsbd-customer-account .woocommerce-orders-table,
body.tsbd-customer-account .woocommerce-table--order-details,
body.tsbd-customer-account table.shop_table{
  width:100%!important;
  border:1px solid #ede2dc!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border-radius:15px!important;
  background:#fff!important;
}
body.tsbd-customer-account .woocommerce-orders-table thead th,
body.tsbd-customer-account .woocommerce-table--order-details thead th,
body.tsbd-customer-account table.shop_table thead th{
  background:#fbf2eb!important;
  color:#683345!important;
  font-size:11px!important;
  letter-spacing:.035em;
  text-transform:uppercase;
  padding:15px 12px!important;
  border-color:#eee0d8!important;
}
body.tsbd-customer-account .woocommerce-orders-table td,
body.tsbd-customer-account table.shop_table td{
  color:#463941;
  padding:15px 12px!important;
  vertical-align:middle;
  border-color:#f1e8e3!important;
}
body.tsbd-customer-account .woocommerce-orders-table a:not(.button),
body.tsbd-customer-account .woocommerce-MyAccount-content .order-number a{
  color:#801e3d!important;
  font-weight:750!important;
}
body.tsbd-customer-account .woocommerce-orders-table .button,
body.tsbd-customer-account .woocommerce-order-details .button,
body.tsbd-customer-account .woocommerce-MyAccount-content a.woocommerce-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  border-radius:10px!important;
  min-height:36px!important;
  padding:8px 13px!important;
  text-decoration:none!important;
  font-size:12px!important;
  font-weight:750!important;
}
body.tsbd-customer-account .woocommerce-Pagination{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0 0;
}

/* Billing / shipping address list and edit form */
body.tsbd-customer-account .woocommerce-MyAccount-content>.woocommerce-Addresses{
  margin:14px 0 0!important;
}
body.tsbd-customer-account .woocommerce-Addresses{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:15px!important;
}
body.tsbd-customer-account .woocommerce-Address{
  padding:21px!important;
  min-width:0!important;
  background:#fffaf7!important;
  border:1px solid #ebded8!important;
  border-radius:15px!important;
}
body.tsbd-customer-account .woocommerce-Address-title{
  display:flex!important;
  flex-wrap:wrap;
  align-items:center!important;
  justify-content:space-between!important;
  border-bottom:1px solid #efe3dd;
  padding:0 0 13px!important;
  margin:0 0 15px!important;
}
body.tsbd-customer-account .woocommerce-Address-title h2{
  margin:0!important;
  font-family:inherit!important;
  font-size:18px!important;
  font-weight:760!important;
  line-height:1.3!important;
  color:#4d2030!important;
}
body.tsbd-customer-account .woocommerce-Address-title a.edit{
  padding:7px 10px;
  text-decoration:none!important;
  border:1px solid #c7a9a1;
  border-radius:9px;
  color:#7d1d3b!important;
  font-size:12px;
  font-weight:800;
}
body.tsbd-customer-account .woocommerce-Address address{
  margin:0!important;
  padding:0!important;
  font-style:normal!important;
  line-height:1.8!important;
  font-size:13px!important;
  color:#5d4c54!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-content form.woocommerce-EditAccountForm,
body.tsbd-customer-account .woocommerce-MyAccount-content form.woocommerce-address-fields{
  max-width:980px;
  margin:0;
}
body.tsbd-customer-account .woocommerce-EditAccountForm .form-row,
body.tsbd-customer-account .woocommerce-address-fields .form-row{
  margin:0 0 17px!important;
}
body.tsbd-customer-account .woocommerce-EditAccountForm label,
body.tsbd-customer-account .woocommerce-address-fields label{
  font-size:12px!important;
  color:#4d3440!important;
  font-weight:800!important;
  margin:0 0 7px!important;
  display:block!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-content input.input-text,
body.tsbd-customer-account .woocommerce-MyAccount-content select,
body.tsbd-customer-account .woocommerce-MyAccount-content textarea{
  max-width:100%!important;
  min-height:46px!important;
  border-radius:10px!important;
  border:1px solid #d9ccc6!important;
  background:#fff!important;
  color:#372631!important;
  box-shadow:none!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-content input.input-text:focus,
body.tsbd-customer-account .woocommerce-MyAccount-content select:focus,
body.tsbd-customer-account .woocommerce-MyAccount-content textarea:focus{
  border-color:#862441!important;
  outline:2px solid rgba(134,36,65,.16)!important;
  outline-offset:0!important;
}
body.tsbd-customer-account .woocommerce-EditAccountForm fieldset{
  margin:17px 0!important;
  padding:20px!important;
  background:#fffcf8;
}
body.tsbd-customer-account .woocommerce-EditAccountForm legend{
  color:#6d1935!important;
  font-size:15px;
}
body.tsbd-customer-account .woocommerce-MyAccount-content button.button,
body.tsbd-customer-account .woocommerce-MyAccount-content input.button{
  min-height:44px;
  border-radius:11px!important;
  font-size:13px!important;
  font-weight:800!important;
}
body.tsbd-customer-account .woocommerce-MyAccount-content .woocommerce-error,
body.tsbd-customer-account .woocommerce-MyAccount-content .woocommerce-message{
  border-radius:12px!important;
  margin:0 0 17px!important;
}

/* Loyalty, Rewards, Tea Collection, Buy Again, Security */
body.tsbd-customer-account .tsbd-account-loyalty-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:13px!important;
}
body.tsbd-customer-account .tsbd-account-loyalty-grid article,
body.tsbd-customer-account .tsbd-account-security-grid article{
  min-width:0;
  padding:22px!important;
  border:1px solid #ebddd7!important;
  border-radius:15px!important;
  background:#fffcf9!important;
}
body.tsbd-customer-account .tsbd-account-loyalty-grid strong{
  display:block;
  font-family:inherit!important;
  font-size:clamp(16px,1.8vw,22px)!important;
  font-weight:800;
  overflow-wrap:anywhere;
}
body.tsbd-customer-account .tsbd-account-loyalty-grid .woocommerce-Price-amount{
  display:inline!important;
  white-space:nowrap!important;
}
body.tsbd-customer-account .tsbd-account-loyalty-progress{
  margin:18px 0 0;
  border-radius:15px;
  padding:18px 20px;
  background:#721a35;
  color:#fff;
}
body.tsbd-customer-account .tsbd-account-loyalty-progress p{
  margin:0 0 12px!important;
  color:#fff!important;
  font-size:13px;
}
body.tsbd-customer-account .tsbd-account-loyalty-progress>div{
  width:100%;height:8px;
  background:rgba(255,255,255,.22);
  border-radius:20px;overflow:hidden;
}
body.tsbd-customer-account .tsbd-account-loyalty-progress>div>span{
  display:block;height:100%;background:#d5aa52;border-radius:20px;
}
body.tsbd-customer-account .tsbd-account-collection-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
body.tsbd-customer-account .tsbd-account-collection-grid article{
  border:1px solid #ebddd7!important;
  padding:22px!important;
  border-radius:15px!important;
  background:#fffcf9!important;
}
body.tsbd-customer-account .tsbd-account-collection-grid article>span{
  width:35px;height:35px;border-radius:11px;
  font-weight:800;
}
body.tsbd-customer-account .tsbd-account-product-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:15px!important;
}
body.tsbd-customer-account .tsbd-account-product-card{
  border:1px solid #ebddd7!important;
  border-radius:15px!important;
  box-shadow:0 7px 19px rgba(78,34,45,.035);
  background:#fff!important;
}
body.tsbd-customer-account .tsbd-account-product-card h3{
  min-height:2.5em;
  font-size:15px;
  line-height:1.4;
}
body.tsbd-customer-account .tsbd-account-product-card img{
  object-fit:contain!important;
  background:#fff;
}
body.tsbd-customer-account .tsbd-account-product-card .tsbd-account-price{
  white-space:normal;
  overflow-wrap:anywhere;
}
body.tsbd-customer-account .tsbd-account-product-card .tsbd-account-btn{
  width:100%;
  text-align:center;
  gap:6px;
}
body.tsbd-customer-account .tsbd-account-security-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:13px!important;
}
body.tsbd-customer-account .tsbd-account-security-grid h3{
  overflow-wrap:anywhere;
  font-family:inherit!important;
  font-size:18px!important;
  font-weight:750!important;
}
body.tsbd-customer-account .tsbd-account-security-grid p{
  margin:12px 0!important;
  font-size:13px!important;
}
body.tsbd-customer-account .tsbd-account-security-grid .tsbd-account-btn{
  margin-top:7px;
}

/* Mobile: bottom nav includes a fully accessible native <details> More menu. */
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more{
  position:static;
  min-width:0;
  list-style:none;
}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more>summary{
  display:grid;
  place-items:center;
  gap:1px;
  min-height:52px;
  border-radius:12px;
  color:#6d6467;
  font-size:10px;
  font-weight:750;
  cursor:pointer;
  list-style:none;
}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more>summary::-webkit-details-marker{display:none}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more>summary>span{
  font-size:20px;line-height:1.1;
}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more.is-active>summary,
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more[open]>summary{
  color:#d5aa52;
  background:#68142c;
}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more-menu{
  position:absolute;
  right:0;
  left:0;
  bottom:calc(100% + 10px);
  padding:13px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  max-height:min(60vh,500px);
  overflow-y:auto;
  border:1px solid #ecdfd9;
  border-radius:17px;
  box-shadow:0 24px 45px rgba(61,21,38,.25);
  background:#fff;
  color:#4f343f;
}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more-menu>a{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  min-height:45px;
  padding:9px 10px!important;
  border:1px solid #f0e7e2;
  border-radius:10px;
  font-size:12px;
  line-height:1.35;
  text-align:left;
  color:#59384a!important;
  text-decoration:none!important;
}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more-menu>a.is-active{
  color:#d5aa52!important;
  background:#68142c!important;
}
body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more-menu>a:last-child{
  border-color:#e6d1d5!important;
}
@media(max-width:1100px){
  body.tsbd-customer-account .tsbd-account-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.tsbd-customer-account .tsbd-account-loyalty-grid,
  body.tsbd-customer-account .tsbd-account-security-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:980px){
  body.tsbd-customer-account:not(.tsbd-customer-account--guest) .entry-content > .woocommerce:has(.woocommerce-MyAccount-navigation){
    display:block!important;
    padding:14px 14px 100px!important;
  }
  body.tsbd-customer-account .woocommerce-MyAccount-navigation{display:none!important}
  body.tsbd-customer-account.tsbd-account-endpoint-page .woocommerce-MyAccount-content{
    padding:clamp(15px,3vw,25px)!important;
    border-radius:17px!important;
  }
  body.tsbd-customer-account .woocommerce-Addresses{grid-template-columns:1fr!important}
  body.tsbd-customer-account .tsbd-account-security-grid{grid-template-columns:1fr!important}
  body.tsbd-customer-account .tsbd-account-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.tsbd-customer-account .tsbd-account-mobile-nav{overflow:visible!important}
}
@media(max-width:700px){
  body.tsbd-customer-account .tsbd-account-endpoint-head,
  body.tsbd-customer-account .tsbd-account-native-head,
  body.tsbd-customer-account .tsbd-endpoint-hero{
    padding:18px!important;
    margin-bottom:16px!important;
  }
  body.tsbd-customer-account .tsbd-account-product-grid,
  body.tsbd-customer-account .tsbd-account-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  body.tsbd-customer-account .tsbd-account-product-card>div{padding:11px!important}
  body.tsbd-customer-account .tsbd-account-loyalty-grid{grid-template-columns:1fr!important;gap:9px!important}
  body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more-menu{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Explicit mobile order-row layout: narrow screens must never keep
     the five-column desktop table's intrinsic minimum width. */
  body.tsbd-customer-account .woocommerce-orders-table{
    display:block!important;width:100%!important;max-width:100%!important;
    border:none!important;overflow:visible!important;
  }
  body.tsbd-customer-account .woocommerce-orders-table thead{display:none!important}
  body.tsbd-customer-account .woocommerce-orders-table tbody,
  body.tsbd-customer-account .woocommerce-orders-table tr{
    display:block!important;width:100%!important;max-width:100%!important;
    box-sizing:border-box!important;
  }
  body.tsbd-customer-account .woocommerce-orders-table td{
    display:flex!important;width:100%!important;max-width:100%!important;
    align-items:center!important;justify-content:space-between!important;
    gap:12px!important;text-align:right!important;
    white-space:normal!important;overflow-wrap:anywhere!important;
    box-sizing:border-box!important;
  }
  body.tsbd-customer-account .woocommerce-orders-table tr{
    border:1px solid #e9dcd6!important;
    margin:0 0 12px!important;
  }
  body.tsbd-customer-account .woocommerce-orders-table td{
    padding:11px 12px!important;
    min-height:44px!important;
  }
  body.tsbd-customer-account .woocommerce-orders-table td:before{
    flex:0 0 39%;
    line-height:1.35!important;
  }
  body.tsbd-customer-account .woocommerce-orders-table td .button{margin-left:auto!important}
}
@media(max-width:390px){
  body.tsbd-customer-account .tsbd-account-product-grid{grid-template-columns:1fr!important}
  body.tsbd-customer-account .tsbd-account-mobile-nav .tsbd-account-mobile-more-menu{grid-template-columns:1fr}
}
