.trishya-account {
  --account-surface: #f8f6f2;
  max-width: 1280px;
}

.trishya-account-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(16px, 3vw, 30px);
}

.trishya-account-header h1 {
  font-size: clamp(27px, 2.7vw, 36px);
  margin: 0;
}

.trishya-account .woocommerce:has(> .woocommerce-MyAccount-navigation) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
}

.trishya-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::before,
.trishya-account .woocommerce:has(> .woocommerce-MyAccount-navigation)::after {
  display: none;
}

.trishya-account .woocommerce .woocommerce-MyAccount-navigation,
.trishya-account .woocommerce .woocommerce-MyAccount-content {
  width: auto;
  min-width: 0;
  float: none;
}

.trishya-account .woocommerce-MyAccount-navigation {
  border-bottom: 1px solid var(--line);
}

.trishya-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px clamp(12px, 3vw, 36px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.trishya-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.trishya-account .woocommerce-MyAccount-navigation .is-active a {
  border-color: var(--ink);
  font-weight: 700;
}

.trishya-account .woocommerce-MyAccount-navigation a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trishya-account .woocommerce-MyAccount-content > :first-child {
  margin-top: 0;
}

.trishya-account:has(.woocommerce-MyAccount-navigation) .trishya-account-header {
  border: 0;
  margin-bottom: 14px;
  padding: 0;
}

.trishya-account-welcome {
  background: var(--account-surface);
  padding: clamp(20px, 4vw, 46px);
  margin-bottom: clamp(18px, 3vw, 34px);
}

.trishya-account .trishya-account-welcome h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 42px);
}

.trishya-account-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 34px);
}

.trishya-account-panel {
  border: 1px solid var(--line);
  padding: clamp(16px, 3vw, 30px);
}

.trishya-account-panel h3 {
  font-size: clamp(22px, 2.4vw, 29px);
  margin: 0;
}

.trishya-account-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.trishya-account-panel-heading a { white-space: nowrap; }

.trishya-account-orders-preview {
  list-style: none;
  padding: 0;
  margin: 0;
}

.trishya-account-orders-preview a,
.trishya-account-settings a {
  display: grid;
  gap: 4px 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  text-decoration: none;
}

.trishya-account-orders-preview a { grid-template-columns: minmax(0, 1fr) auto; }
.trishya-account-orders-preview a > :nth-child(even) { text-align: right; }
.trishya-account-settings h3 { margin-bottom: 12px; }
.trishya-account-settings a > span,
.trishya-account-orders-preview a > span { color: #59534c; }
.trishya-account-orders-preview a:hover strong,
.trishya-account-settings a:hover strong { text-decoration: underline; }

body:not(.logged-in) .trishya-account article {
  max-width: 900px;
  margin-inline: auto;
}

body:not(.logged-in) .trishya-account-header {
  text-align: center;
}

.trishya-account .woocommerce #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 46px);
}

.trishya-account .woocommerce #customer_login::before,
.trishya-account .woocommerce #customer_login::after {
  display: none;
}

.trishya-account .woocommerce #customer_login > div {
  float: none;
  width: auto;
  min-width: 0;
}

.trishya-account .woocommerce > h2,
.trishya-account .woocommerce h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 16px;
}

.trishya-account .woocommerce > form.login,
.trishya-account .woocommerce > .woocommerce-ResetPassword,
.trishya-account .woocommerce > h2 {
  max-width: 490px;
  margin-inline: auto;
}

.trishya-account .woocommerce form.login,
.trishya-account .woocommerce form.register,
.trishya-account .woocommerce form.woocommerce-ResetPassword {
  background: var(--account-surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(18px, 3vw, 30px);
}

.trishya-account .woocommerce form .form-row label {
  color: var(--ink);
  font-weight: 700;
}

.trishya-account .woocommerce form .form-row input.input-text {
  border: 1px solid #afa69a;
  min-height: 46px;
  padding: 9px 12px;
  background: #fff;
  color: var(--ink);
}

.trishya-account input:focus-visible,
.trishya-account select:focus-visible {
  outline: 2px solid #534732;
  outline-offset: 2px;
}

.trishya-account .woocommerce .button,
.woocommerce-order .woocommerce-order-details .button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: #fff;
  line-height: 1.3;
}

.trishya-account .woocommerce .button:hover,
.woocommerce-order .woocommerce-order-details .button:hover {
  background: #414141;
  color: #fff;
}

.trishya-account .woocommerce .woocommerce-form-login .woocommerce-form-login__submit,
.trishya-account .woocommerce .woocommerce-form-register__submit {
  float: none;
  justify-content: center;
  width: 100%;
  margin: 10px 0 0;
}

.trishya-account .woocommerce table.shop_table,
.woocommerce-order .woocommerce-order-details table.shop_table {
  border: 1px solid var(--line);
  border-radius: 0;
  overflow-wrap: anywhere;
}

.trishya-account .woocommerce table.shop_table th,
.trishya-account .woocommerce table.shop_table td,
.woocommerce-order .woocommerce-order-details table.shop_table th,
.woocommerce-order .woocommerce-order-details table.shop_table td {
  padding: 12px 14px;
}

.trishya-account .woocommerce table.shop_table thead,
.woocommerce-order .woocommerce-order-details table.shop_table thead {
  background: #f8f6f2;
}

.trishya-account .woocommerce-orders-table__cell-order-actions .button {
  margin: 2px 4px 2px 0;
}

.trishya-account .woocommerce-MyAccount-content .woocommerce-info {
  background: var(--account-surface);
  border-top-color: #766953;
}

.trishya-account .woocommerce-MyAccount-content .woocommerce-info::before {
  color: #766953;
}

.trishya-order-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.trishya-order-status {
  background: #f1ece4;
  color: var(--ink);
  padding: 5px 10px;
}

.trishya-account .woocommerce .order-actions-button {
  margin: 2px 6px 2px 0;
}

@media (max-width: 760px) {
  .trishya-account-overview-grid,
  .trishya-account .woocommerce #customer_login {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .trishya-account .woocommerce-MyAccount-content .woocommerce-info:has(> .button) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .trishya-account .woocommerce-MyAccount-content .woocommerce-info > .button {
    order: 1;
    float: none;
  }

  .trishya-account .woocommerce table.woocommerce-orders-table tbody th.woocommerce-orders-table__cell-order-number {
    display: block;
    background: var(--account-surface);
    text-align: left;
  }
}
.trishya-saved-addresses{margin-top:36px;padding-top:30px;border-top:1px solid var(--line)}
.trishya-saved-addresses h2{font-size:25px;margin:0 0 22px}
.trishya-address-book{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.trishya-address-card{position:relative;padding:24px;border:1px solid var(--line);background:#fff}
.trishya-address-card address{font-style:normal;line-height:1.7;margin:0 0 18px}
.trishya-address-default{display:inline-block;margin-bottom:14px;font-size:11px;text-transform:uppercase;letter-spacing:.1em;padding:3px 9px;background:#f0e9df}
.trishya-address-use{border:0;background:none;color:inherit;padding:0;margin:0 0 14px;font:inherit;text-decoration:underline;text-underline-offset:4px}
.trishya-saved-addresses summary{cursor:pointer;font-size:14px;min-height:40px;padding-block:8px}
.trishya-saved-addresses .trishya-address-add{margin-top:22px;padding:18px 24px;border:1px solid var(--line)}
.trishya-address-edit{display:flow-root;margin-top:18px}
.trishya-address-country{font-size:13px;color:#6b6258}
.trishya-account .woocommerce .trishya-address-edit .button{border-radius:0;background:#171717;color:#fff;min-height:44px;padding:10px 20px;font-weight:400}
@media(max-width:650px){.trishya-address-book{grid-template-columns:minmax(0,1fr)}.trishya-address-card{padding:20px}}
.trishya-order-tracking{margin:26px 0;padding:24px;background:#f7f4ef;border:1px solid var(--line)}
.trishya-order-tracking h3{font:23px/1.3 var(--heading);margin:0 0 18px}
.trishya-order-tracking>p{margin:0 0 18px}
.trishya-tracking-list{display:grid;gap:14px}
.trishya-tracking-list>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
.trishya-tracking-list span{overflow-wrap:anywhere;font-size:14px}
.trishya-tracking-list a{text-underline-offset:4px;font-size:14px}
