/* My account (page-account.php). WooCommerce prints the markup; this file only styles it.
   Signed out: the login form (and the register form beside it when the store allows registration), lost password.
   Signed in: the account navigation and each section (dashboard, orders, one order, addresses, account details).
   Shared buttons, fields, notices and tables come from woo.css; this file is layout and the account's own pieces.
   Desktop 1080px and up: navigation at the left, section at the right. Below that: the navigation is one swipe
   row of chips above the section, like the content pages. */

/* ---------- frame ---------- */
.tg-account-body > .woocommerce{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px 40px;align-items:start}
.tg-account-body > .woocommerce::before,
.tg-account-body > .woocommerce::after{display:none}
.tg-account-body > .woocommerce > *{grid-column:1/-1;min-width:0}
.tg-account-body > .woocommerce > .woocommerce-MyAccount-navigation{grid-column:1;float:none;width:auto}
.tg-account-body > .woocommerce > .woocommerce-MyAccount-content{grid-column:2;float:none;width:auto}
.tg-account-body > .woocommerce > .woocommerce-notices-wrapper:empty{display:none}

/* ---------- navigation ---------- */
.tg-account .woocommerce-MyAccount-navigation{background:#FFFFFF;border:1px solid #DCE2E8;border-radius:6px}
.tg-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:10px 0}
.tg-account .woocommerce-MyAccount-navigation li{margin:0;padding:0}
.tg-account .woocommerce-MyAccount-navigation a{display:flex;align-items:center;min-height:44px;padding:0 18px;color:#0E1B26;text-decoration:none}
.tg-account .woocommerce-MyAccount-navigation a:hover{background:#F4F6F8;color:#0E1B26}
.tg-account .woocommerce-MyAccount-navigation li.is-active a{background:#003050;color:#FFFFFF;font-weight:700}
.tg-account .woocommerce-MyAccount-navigation-link--customer-logout{margin-top:8px!important;padding-top:8px!important;border-top:1px solid #E9EDF1}
.tg-account .woocommerce-MyAccount-navigation-link--customer-logout a{color:#0F5C9A;font-weight:600}

/* ---------- a section ---------- */
.tg-account .woocommerce-MyAccount-content{box-sizing:border-box;padding:24px 28px;background:#FFFFFF;border:1px solid #DCE2E8;border-radius:6px;font-size:16px;line-height:1.5;color:#0E1B26}
.tg-account .woocommerce-MyAccount-content > :first-child{margin-top:0}
.tg-account .woocommerce-MyAccount-content > :last-child{margin-bottom:0}
.tg-account .woocommerce-MyAccount-content p{margin:0 0 16px}
.tg-account .woocommerce-MyAccount-content a:where(:not(.button)){color:#0F5C9A;text-underline-offset:3px}
.tg-account :is(.woocommerce-MyAccount-content,.woocommerce) :is(h2,h3,legend){margin:0 0 14px;padding:0;font-family:'Barlow Condensed',Barlow,sans-serif;font-size:22px;font-weight:700;line-height:1.2;letter-spacing:.04em;text-transform:uppercase;color:#003050}
.tg-account .woocommerce-MyAccount-content mark{background:none;color:inherit;font-weight:700}
.tg-account .woocommerce-MyAccount-content section{margin:28px 0 0}
.tg-account .woocommerce-MyAccount-content > .woocommerce-notices-wrapper:empty{display:none}

/* ---------- orders ---------- */
.tg-account .woocommerce-orders-table{margin-bottom:0}
.tg-account .woocommerce-orders-table__cell-order-number a{font-weight:700}
.tg-account .woocommerce-orders-table__cell-order-actions{white-space:nowrap}
.tg-account .woocommerce-orders-table__cell-order-actions .button{min-height:36px;margin:2px 0 2px 6px;padding:6px 14px;font-size:15px}
.tg-account .woocommerce-orders-table__cell-order-actions .button:first-child{margin-left:0}
.tg-account .woocommerce-pagination{display:flex;gap:10px;margin-top:16px}

/* ---------- one order ---------- */
.tg-account table.order_details{margin-bottom:0}
.tg-account table.order_details :is(td,th):last-child{text-align:right}
.tg-account table.order_details .product-name a{font-weight:600}
.tg-account table.order_details .wc-item-meta{margin:6px 0 0;padding:0;list-style:none;font-size:14px;color:#36454F}
.tg-account table.order_details .wc-item-meta p{display:inline;margin:0}
.tg-account .woocommerce-customer-details address,
.tg-account .woocommerce-Address address{box-sizing:border-box;width:100%;margin:0;padding:14px 16px;border:1px solid #DCE2E8;border-radius:6px;background:#F4F6F8;font-style:normal;line-height:1.5}
.tg-account .woocommerce-customer-details address p{margin:6px 0 0}
.tg-account ul.order_details{list-style:none;margin:0 0 20px;padding:0}

/* ---------- two-up blocks: login and register, billing and shipping ---------- */
.tg-account .col2-set{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;width:auto}
.tg-account .col2-set::before,
.tg-account .col2-set::after{display:none}
.tg-account .col2-set :is(.col-1,.col-2){float:none;width:auto;min-width:0}
.tg-account .woocommerce-Address-title{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin:0 0 10px}
.tg-account .addresses .woocommerce-Address-title::before,
.tg-account .addresses .woocommerce-Address-title::after{display:none}
.tg-account .woocommerce-Address-title :is(h2,h3){float:none;margin:0}
.tg-account .woocommerce-Address-title .edit{float:none;display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* ---------- forms: edit address, account details ---------- */
.tg-account .woocommerce-MyAccount-content form{max-width:720px}
.tg-account .woocommerce-MyAccount-content form::after{content:"";display:block;clear:both}
.tg-account form .form-row-first,
.tg-account form .form-row-last{width:calc(50% - 8px)}
.tg-account fieldset{margin:24px 0 16px;padding:20px 20px 4px;border:1px solid #DCE2E8;border-radius:6px;min-width:0}
.tg-account fieldset legend{margin:0;padding:0 8px;font-size:18px}
.tg-account .woocommerce-MyAccount-content form > p:last-of-type{margin-bottom:0}

/* ---------- signed out: login, register, lost password ---------- */
.tg-account-body > .woocommerce > :is(h2,form.login,form.lost_reset_password,p){max-width:520px}
.tg-account form:is(.login,.register,.lost_reset_password){box-sizing:border-box;margin:0;padding:24px 28px;background:#FFFFFF;border:1px solid #DCE2E8;border-radius:6px;text-align:left}
.tg-account form:is(.login,.register,.lost_reset_password)::after{content:"";display:block;clear:both}
.tg-account form:is(.login,.register,.lost_reset_password) > p{margin:0 0 16px}
.tg-account form:is(.login,.register,.lost_reset_password) > p:last-of-type{margin-bottom:0}
.tg-account form.login .form-row:has(.woocommerce-form-login__submit){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px}
.tg-account form.login .form-row:has(.woocommerce-form-login__submit)::before,
.tg-account form.login .form-row:has(.woocommerce-form-login__submit)::after{display:none}
.tg-account form.login .woocommerce-form-login__submit{float:none;order:2;min-width:140px;min-height:48px;margin:0}
.tg-account form.register .woocommerce-form-register__submit{min-width:140px;min-height:48px}
.tg-account .lost_password{margin:0!important}
.tg-account .lost_password a{display:inline-flex;align-items:center;min-height:44px;color:#0F5C9A;font-weight:600}
.tg-account form.lost_reset_password .form-row-first{float:none;width:100%}
.tg-account form.lost_reset_password .button{min-height:48px}
.tg-account .woocommerce-privacy-policy-text{font-size:14px;color:#566574}
.tg-account .woocommerce-privacy-policy-text p{margin:0 0 16px}

/* ---------- tablet and phone: the navigation is one swipe row above the section ---------- */
@media (max-width:1079px){
  .tg-account-body:has(.woocommerce-MyAccount-navigation){padding-top:0!important}
  .tg-account-body > .woocommerce{grid-template-columns:minmax(0,1fr);gap:20px}
  .tg-account-body > .woocommerce > .woocommerce-MyAccount-navigation,
  .tg-account-body > .woocommerce > .woocommerce-MyAccount-content{grid-column:1}
  .tg-account .woocommerce-MyAccount-navigation{position:sticky;top:0;z-index:10;margin:0 -24px;border:0;border-bottom:1px solid #DCE2E8;border-radius:0}
  .tg-account .woocommerce-MyAccount-navigation ul{display:flex;align-items:center;gap:8px;height:56px;box-sizing:border-box;padding:0 24px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
  .tg-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar{display:none}
  .tg-account .woocommerce-MyAccount-navigation li{flex:0 0 auto}
  .tg-account .woocommerce-MyAccount-navigation a{min-height:40px;padding:0 14px;border:1px solid #8796A5;border-radius:4px;font-size:15px;font-weight:600;white-space:nowrap}
  .tg-account .woocommerce-MyAccount-navigation li.is-active a{border-color:#003050}
  .tg-account .woocommerce-MyAccount-navigation-link--customer-logout{margin-top:0!important;padding-top:0!important;border-top:0}
  .tg-account .woocommerce-MyAccount-navigation-link--customer-logout a{border-color:transparent}
}
@media (max-width:699px){
  .tg-account .woocommerce-MyAccount-navigation{margin:0 -16px}
  .tg-account .woocommerce-MyAccount-navigation ul{height:52px;padding:0 16px}
  .tg-account .woocommerce-MyAccount-content{padding:18px 16px}
  .tg-account form:is(.login,.register,.lost_reset_password){padding:20px 16px}
  .tg-account .col2-set{grid-template-columns:minmax(0,1fr)}
  .tg-account form .form-row-first,
  .tg-account form .form-row-last{float:none;width:100%}
  .tg-account form.login .woocommerce-form-login__submit,
  .tg-account form.register .woocommerce-form-register__submit,
  .tg-account form.lost_reset_password .button,
  .tg-account .woocommerce-MyAccount-content form > p > .button{width:100%;min-height:52px}
  .tg-account form.login .form-row:has(.woocommerce-form-login__submit){flex-direction:column;align-items:stretch}
  .tg-account fieldset{padding:16px 14px 0}
  .tg-account table.order_details :is(td,th):last-child{text-align:left}
}
/* WooCommerce turns its responsive tables into stacked rows at 768px and below: one bordered block per order */
@media (max-width:768px){
  .tg-account table.shop_table_responsive{border:0;background:none}
  .tg-account table.shop_table_responsive tr{margin:0 0 12px;padding:6px 0;border:1px solid #DCE2E8;border-radius:6px;background:#FFFFFF}
  .tg-account table.shop_table_responsive tr:last-child{margin-bottom:0}
  .tg-account table.shop_table_responsive tr td{padding:8px 14px;border:0;background:none!important}
  /* WooCommerce hides the row heading (the order number) in stacked rows; here it heads each block */
  .tg-account table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number{display:block;padding:8px 14px 2px;border:0;font-size:18px;text-align:left}
  .tg-account table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number::before{content:attr(data-title) " ";font-weight:600;color:#36454F}
  .tg-account table.shop_table_responsive tr td::before{font-weight:600;color:#36454F}
  .tg-account table.shop_table_responsive .woocommerce-orders-table__cell-order-actions{white-space:normal}
  .tg-account table.shop_table_responsive .woocommerce-orders-table__cell-order-actions::before{display:none}
  .tg-account table.shop_table_responsive .woocommerce-orders-table__cell-order-actions .button{display:block;width:100%;min-height:44px;margin:4px 0;padding:10px 14px}
}
