/*
 * Toile — My Account redesign v3
 * Implements the top-level "My Account.dc.html" handoff (superseding the
 * earlier "My Account - Redesign v2" this file used to be built from) as a
 * WooCommerce account skin. That file's signature look is borderless, rounded
 * (16-20px) white cards on the tan page background, a dark brand-coloured
 * "lead order" hero, pill chips/filters, and warm off-white inputs -- not the
 * flat bordered, square-cornered cards this file had before. Tokens/values
 * below are read directly off the handoff's own inline styles. Markup is
 * produced by the myaccount/*.php template overrides + the plugin endpoints
 * (coupons, invoices, returns) which inherit these tokens.
 */

/* The [hidden] attribute's UA-default display:none has the same specificity
   as a plain class selector, so any element with its own author display
   value (flex/grid/block) defeats element.hidden=true. Force it. */
.tacc [hidden] { display: none !important; }

body.woocommerce-account {
  background: #f4efea;
}
body.woocommerce-account .page-heading,
body.woocommerce-account .woocommerce-breadcrumb { display: none; }
body.woocommerce-account .page-wrapper,
body.woocommerce-account .content-page { background: #f4efea; }
body.woocommerce-account .content-page { padding-top: 0; padding-bottom: 0; }

.tacc {
  --brand: #3b2a23;
  --brand-hover: #6b564c;
  --soft: #6b6259;
  --body: #555;
  --line: #e1e1e1;
  --paper: #f4efea;
  --faint: #faf7f4;
  --faint2: #fdfbf9;
  --track: #ece3da;

  font-family: Poppins, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 16px;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  padding: clamp(20px, 4vw, 36px) clamp(16px, 4vw, 24px) 90px;
  margin: 0 auto;
  max-width: 1218px; /* 1170 content + padding */
  box-sizing: border-box;
}
.tacc *, .tacc *::before, .tacc *::after { box-sizing: border-box; }
.tacc a { color: var(--brand); text-decoration: none; }
.tacc a:hover { color: var(--brand-hover); }
.tacc h1, .tacc h2, .tacc h3, .tacc p, .tacc address, .tacc form { margin: 0; }
.tacc-serif { font-family: "Poiret One", sans-serif; font-weight: 400; }

/* Neutralise the XStore two-column account layout — the redesign is a single
   full-width column (header, horizontal tabs, then content). XStore floats the
   content at 75%/65% width; force it back to full width inside our shell. */
.tacc .woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
  padding-top: 0 !important;
  margin: 0 !important;
}
.tacc .woocommerce-MyAccount-navigation,
.tacc .woocommerce-MyAccount-navigation-wrapper { display: none; }

/* ---- Account header (name / email / logout) ---- */
.tacc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px; padding: clamp(16px, 2.6vw, 24px);
  background: #fff; border-radius: 20px;
}
.tacc-avatar {
  flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: var(--track); color: var(--brand);
  font-family: "Poiret One", sans-serif; font-size: 22px;
}
.tacc-head-copy { flex: 1 1 230px; min-width: 0; }
.tacc-head h1 { font-size: clamp(24px, 4vw, 32px); line-height: 1.15; color: var(--brand); margin-bottom: 4px; }
.tacc-head .tacc-head-email { font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; color: var(--soft); }
.tacc-head .tacc-logout {
  min-height: 46px; display: inline-flex; align-items: center; padding: 0 16px;
  background: transparent; border: 1px solid #d8ccc3; border-radius: 12px; font-size: 14.5px;
  color: var(--brand-hover); text-decoration: none;
}

.tacc-account-layout {
  display: grid; grid-template-columns: minmax(210px, 236px) minmax(0, 1fr);
  gap: 20px; align-items: start;
}

/* ---- Navigation: desktop tabs ---- */
.tacc-nav-desktop {
  display: flex; flex-direction: column; gap: 4px; padding: 10px;
  border: 0; border-radius: 18px; margin: 0; background: #fff;
  box-shadow: 0 10px 28px rgba(59, 42, 35, 0.06);
}
.tacc-nav-desktop a {
  min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  border: 0; border-radius: 12px; margin: 0; font-size: 15px;
  white-space: normal; color: var(--brand);
  transition: background 130ms ease, color 130ms ease;
}
.tacc-nav-desktop a:hover { background: var(--faint); }
.tacc-nav-desktop a.is-active { background: var(--brand); color: var(--paper); font-weight: 500; }
.tacc-nav-desktop a.is-active:hover { background: var(--brand); }
.tacc-nav-icon { flex: 0 0 auto; color: var(--soft); }
.tacc-nav-desktop a.is-active .tacc-nav-icon { color: var(--paper); }
.tacc-nav-label { flex: 1 1 auto; min-width: 0; }

/* ---- Navigation: narrow-width custom dropdown ---- */
.tacc-nav-mobile { display: none; position: relative; margin-bottom: 28px; }
.tacc-nav-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 54px; padding: 0 18px;
  background: #fff; border: 1px solid #e2d9d0; border-radius: 14px;
  color: var(--brand); font-family: inherit; cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.tacc-nav-toggle:hover { border-color: var(--brand); }
.tacc-nav-toggle[aria-expanded="true"] {
  border-color: var(--brand); border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  box-shadow: 0 1px 0 var(--brand);
}
.tacc-nav-toggle-current { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tacc-nav-toggle-current .tacc-nav-icon { color: var(--brand); }
.tacc-nav-toggle-label { font-size: 16px; font-weight: 500; }
.tacc-nav-toggle-arrow {
  flex: 0 0 auto; width: 9px; height: 9px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform 180ms ease; margin-top: -3px;
}
.tacc-nav-toggle[aria-expanded="true"] .tacc-nav-toggle-arrow { transform: rotate(-135deg); margin-top: 3px; }

.tacc-nav-mobile .tacc-nav-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20;
  border-top-left-radius: 0; border-top-right-radius: 0;
  box-shadow: 0 16px 40px rgba(59, 42, 35, 0.16);
  max-height: min(60vh, 420px); overflow-y: auto;
}
.tacc-nav-row { color: var(--brand); }
.tacc-nav-row .tacc-row-title { flex: 1 1 auto; }
.tacc-nav-row.is-active { background: var(--faint); }
.tacc-nav-row.is-active .tacc-row-title { font-weight: 600; }
.tacc-nav-row-check {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--brand); position: relative;
}
.tacc-nav-row-check::after {
  content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg);
}

@media (max-width: 860px) {
  .tacc-account-layout { display: block; }
  .tacc-nav-desktop { display: none; }
  .tacc-nav-mobile { display: block; }
}

/* ---- Buttons ---- */
/* Scoped under `.tacc ` so these win over the generic `.tacc a` link colour
   (element+class would otherwise outrank a lone `.tacc-btn` class and paint the
   button text the link colour — brand text on a brand fill = invisible). */
.tacc .tacc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; background: var(--brand); color: #fff; border-radius: 14px;
  border: 1px solid var(--brand); font-size: 15px; line-height: 1.2; cursor: pointer;
}
.tacc .tacc-btn:hover { color: #fff; background: var(--brand-hover); border-color: var(--brand-hover); }
.tacc .tacc-btn--secondary { background: #fff; color: var(--brand); padding: 14px 24px; }
.tacc .tacc-btn--secondary:hover { color: var(--brand); background: var(--faint); border-color: var(--brand); }
.tacc .tacc-btn--small { padding: 9px 16px; font-size: 14px; background: #fff; color: var(--brand); border-radius: 11px; flex: 0 0 auto; }
.tacc .tacc-btn--small:hover { background: var(--faint); color: var(--brand); border-color: var(--brand); }
.tacc .tacc-btn--small.tacc-btn--fill { background: var(--brand); color: #fff; }
.tacc .tacc-btn--small.tacc-btn--fill:hover { background: var(--brand-hover); color: #fff; }

/* ---- Chips ---- */
.tacc-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 9px; font-size: 13.5px; line-height: 1.2; white-space: nowrap; flex: 0 0 auto; background: #efeae4; color: #57504a; }
.tacc-chip--progress { background: #fdf1e0; color: #7d5306; }
.tacc-chip--done { background: #e9f0e8; color: #22601f; }
.tacc-chip--refund { background: #fbeaea; color: #a02020; }

/* ---- Inputs ---- */
.tacc input[type="text"], .tacc input[type="email"], .tacc input[type="tel"],
.tacc input[type="password"], .tacc input[type="number"], .tacc select, .tacc textarea {
  width: 100%; height: auto; padding: 13px 14px; border: 1px solid #e2d9d0; border-radius: 12px; background: #fbf9f7;
  color: var(--brand); font-size: 15px; line-height: 1.3; font-family: inherit;
}
.tacc input:focus, .tacc select:focus, .tacc textarea:focus { outline: none; border-color: var(--brand); }
.tacc label { display: block; }
.tacc-field-label { display: block; font-size: 15px; color: var(--body); margin-bottom: 7px; }

/* ---- Cards / sections ---- */
.tacc-card { background: #fff; border-radius: 18px; }
.tacc-stack { display: flex; flex-direction: column; }
.tacc-section-title { font-weight: 600; font-size: 20px; color: var(--brand); margin: 0; }
.tacc-page-title { font-weight: 600; font-size: 24px; color: var(--brand); }
.tacc-muted { color: var(--soft); }

/* ===== Overview ===== */
.tacc-overview { display: flex; flex-direction: column; gap: 34px; }
/* The "lead order" hero is the one dark, brand-coloured card in the whole
   design -- everything else is white. Overrides .tacc-card's white bg. */
.tacc-lead { background: var(--brand); color: var(--paper); border-radius: 20px; }
.tacc-lead-body { padding: clamp(18px, 3vw, 26px); }
.tacc-lead-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.tacc-lead h2 { font-size: clamp(19px, 3vw, 25px); line-height: 1.3; color: var(--paper); margin-bottom: 10px; font-weight: 400; }
.tacc-lead-arrive { font-size: 14px; color: #d8c4b8; margin-bottom: 6px; }
.tacc-lead-arrive strong { color: var(--paper); font-weight: 500; }
.tacc-lead-meta { font-size: 13.5px; color: #d8c4b8; }
.tacc-lead .tacc-chip { background: rgba(244, 239, 234, 0.14); color: #dcc0b1; }
.tacc-progress { margin-bottom: 24px; }
.tacc-progress-track { height: 6px; border-radius: 3px; background: #57433a; margin-bottom: 10px; }
.tacc-progress-fill { height: 100%; border-radius: 3px; background: #f0e5dc; }
.tacc-progress-steps { display: flex; justify-content: space-between; gap: 8px; }
.tacc-progress-steps span { font-size: 12px; color: #d8c4b8; }
.tacc-progress-steps span.is-reached { color: #f0e5dc; }
.tacc-progress-steps span.is-current { color: #f0e5dc; font-weight: 600; }
.tacc-lead-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tacc-lead-actions .tacc-btn { background: var(--paper); color: var(--brand); border-color: var(--paper); border-radius: 13px; min-width: 200px; }
.tacc-lead-actions .tacc-btn:hover { background: #fff; border-color: #fff; color: var(--brand); }
.tacc-lead-actions .tacc-btn--secondary { background: transparent; color: var(--paper); border-color: rgba(244, 239, 234, 0.4); }
.tacc-lead-actions .tacc-btn--secondary:hover { background: rgba(244, 239, 234, 0.1); color: var(--paper); }
.tacc-lead-foot { border-top: 1px solid rgba(244, 239, 234, 0.18); padding: 14px clamp(18px, 3vw, 26px); font-size: 14px; color: #d8c4b8; }
.tacc-lead-foot a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.tacc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tacc-section-head a { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }

.tacc-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.tacc-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; min-height: 62px; padding: 14px 18px; }
.tacc-action span:first-child { font-size: 15.5px; color: var(--brand); }
.tacc-action .tacc-arrow { font-size: 20px; color: var(--soft); flex: 0 0 auto; }

/* Recent orders / list rows (shared with invoices, payment) -- one rounded
   container, individual rows divided by an internal border only. */
.tacc-rows { background: #fff; border-radius: 18px; overflow: hidden; }
.tacc-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 58px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tacc-row:last-child { border-bottom: 0; }
.tacc-row-main { flex: 1 1 220px; min-width: 0; }
.tacc-row-main .tacc-row-title { display: block; font-size: 15.5px; color: var(--brand); }
.tacc-row-main .tacc-row-sub { display: block; font-size: 13.5px; color: var(--soft); margin-top: 4px; }
.tacc-row-total { font-size: 15.5px; color: var(--brand); min-width: 80px; text-align: right; }

/* Wishlist grid (overview preview + full page) */
.tacc-wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.tacc-wish { background: #fff; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.tacc-wish-img { aspect-ratio: 3 / 4; background: repeating-linear-gradient(135deg, var(--paper) 0 7px, var(--track) 7px 14px); display: flex; align-items: flex-end; padding: 10px; background-size: cover; background-position: center; }
.tacc-wish-img img { max-width: 100%; height: auto; }
.tacc-wish-body { padding: 13px 14px 15px; }
.tacc-wish-name { font-size: 15px; color: var(--brand); line-height: 1.4; }
.tacc-wish-vendor { font-size: 13.5px; color: var(--soft); margin-top: 4px; }
.tacc-wish-price { font-size: 16px; color: var(--brand); margin: 10px 0 12px; }
.tacc-wish-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tacc-wish-actions .tacc-remove { font-size: 14px; color: var(--soft); align-self: center; }

/* ===== Orders list ===== */
.tacc-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tacc-filter { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 21px; font-size: 14px; cursor: pointer; border: 1px solid #e2d9d0; background: #fff; color: var(--brand-hover); }
.tacc-filter.is-active { border-color: var(--brand); background: var(--brand); color: #fff; }
.tacc-order-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tacc-order-card {
  display: block; background: #fff; border-radius: 18px;
  padding: clamp(18px, 2.4vw, 24px); color: inherit;
}
.tacc-order-card:hover { color: inherit; box-shadow: 0 4px 14px rgba(59, 42, 35, 0.08); }
.tacc-order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tacc-order-date { font-size: 13px; color: var(--soft); }
.tacc-order-headline { font-size: 16.5px; color: var(--brand); margin: 12px 0 5px; }
.tacc-order-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
}
.tacc-order-card-foot .tacc-order-total { font-size: 17px; color: var(--brand); }
.tacc-order-card-foot .tacc-order-details { font-size: 14.5px; color: var(--brand-hover); }
.tacc-empty { background: #fff; border-radius: 18px; padding: 30px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tacc-empty p { font-size: 15px; color: var(--body); }

/* ===== Order detail ===== */
.tacc-back { display: inline-block; font-size: 15px; color: var(--soft); margin-bottom: 16px; }
.tacc-order-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.tacc-order-hero h2 { font-size: clamp(24px, 3vw, 30px); color: var(--brand); margin-bottom: 8px; }
.tacc-order-hero .tacc-order-hero-meta { font-size: 15px; color: var(--soft); }
.tacc-panel { background: #fff; border-radius: 18px; padding: clamp(20px, 2.6vw, 26px); margin-bottom: 14px; }
.tacc-panel h3 { font-weight: 600; font-size: 19px; color: var(--brand); margin-bottom: 6px; }
.tacc-panel-intro { font-size: 15px; color: var(--body); margin-bottom: 20px; }
.tacc-parcel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.tacc-parcel { border-radius: 18px; background: var(--faint2); padding: 18px 20px; }
.tacc-parcel-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tacc-parcel-top .tacc-parcel-name { font-size: 16px; color: var(--brand); }
.tacc-parcel-line { font-size: 14.5px; color: var(--soft); margin-bottom: 14px; }
.tacc-parcel-progress { margin-bottom: 16px; }
.tacc-parcel-progress .tacc-progress-track { height: 3px; margin-bottom: 8px; }
.tacc-parcel-progress .tacc-progress-steps span { font-size: 11px; }
.tacc-item-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tacc-item-row:last-child { border-bottom: 0; }
.tacc-item-thumb { width: 62px; height: 78px; flex: 0 0 auto; border-radius: 9px; background: repeating-linear-gradient(135deg, var(--paper) 0 7px, var(--track) 7px 14px); object-fit: cover; }
.tacc-item-main { flex: 1 1 200px; min-width: 0; }
.tacc-item-name { font-size: 15.5px; color: var(--brand); line-height: 1.4; }
.tacc-item-meta { font-size: 14px; color: var(--soft); margin-top: 5px; }
.tacc-item-price { font-size: 16px; color: var(--brand); }
.tacc-totals { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; max-width: 320px; margin-left: auto; }
.tacc-totals-row { display: flex; justify-content: space-between; gap: 14px; font-size: 15px; }
.tacc-totals-row.tacc-totals-grand { font-size: 17px; color: var(--brand); border-top: 1px solid var(--line); padding-top: 10px; }
.tacc-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-bottom: 20px; }
.tacc-info-card { background: #fff; border-radius: 18px; padding: 22px 24px; }
.tacc-info-card h3 { font-weight: 600; font-size: 17px; color: var(--brand); margin-bottom: 12px; }
.tacc-info-card address, .tacc-info-card p { font-style: normal; font-size: 15px; line-height: 1.7; color: var(--body); }
.tacc-order-foot { display: flex; flex-direction: column; padding: 0; border-radius: 18px; overflow: hidden; }
.tacc-order-foot .button, .tacc-order-foot .woocommerce-button, .tacc-order-foot a.button {
  display: flex !important; align-items: center; justify-content: space-between;
  width: 100%; min-height: 58px; padding: 0 20px !important; margin: 0 !important;
  background: transparent !important; color: var(--brand) !important; border: 0 !important;
  border-bottom: 1px solid var(--line); border-radius: 0 !important; font-size: 15.5px;
}
.tacc-order-foot > :last-child { border-bottom: 0; }
.tacc-order-foot .button::after, .tacc-order-foot .woocommerce-button::after, .tacc-order-foot a.button::after {
  content: "\203A"; color: var(--soft); font-size: 20px; line-height: 1;
}
.tacc-order-foot .button:hover, .tacc-order-foot .woocommerce-button:hover { background: var(--faint) !important; }

/* ===== Account details ===== */
.tacc-details { display: flex; flex-direction: column; gap: 30px; max-width: 780px; }
.tacc-details h2 { font-weight: 600; font-size: 24px; color: var(--brand); margin-bottom: 6px; }
.tacc-details .tacc-sub { font-size: 15px; color: var(--soft); margin-bottom: 16px; }
.tacc-addr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.tacc-addr-card { background: #fff; border-radius: 18px; padding: 22px 24px; }
.tacc-addr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.tacc-addr-card-head h3 { font-weight: 600; font-size: 17px; color: var(--brand); margin: 0; }
.tacc-addr-card address { font-style: normal; font-size: 15px; line-height: 1.7; color: var(--body); margin-bottom: 18px; }
.tacc-form-card { background: #fff; border-radius: 18px; padding: clamp(16px, 2.5vw, 24px); display: flex; flex-direction: column; gap: 18px; }
.tacc-form-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.tacc-form-note { font-size: 13.5px; color: var(--soft); }
.tacc-form-card fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.tacc-form-card legend { font-weight: 600; font-size: 20px; color: var(--brand); padding: 0; margin-bottom: 4px; }

/* ===== Sign in / register ===== */
.tacc-auth { padding: 48px 0 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.tacc-auth-card { background: #fff; border-radius: 18px; padding: clamp(24px, 3vw, 34px); }
.tacc-auth-card h1, .tacc-auth-card h2 { font-family: "Poiret One", sans-serif; font-weight: 400; font-size: 26px; color: var(--brand); margin-bottom: 8px; }
.tacc-auth-card .tacc-sub { font-size: 15px; color: var(--soft); margin-bottom: 24px; }
.tacc-auth-card form { display: flex; flex-direction: column; gap: 18px; }
.tacc-checkbox { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--body); }
.tacc-checkbox input { width: auto; }
.tacc-auth-link { font-size: 15px; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

/* ===== Theming for plugin-rendered endpoints (coupons / invoices / returns) ===== */
/* WooCommerce buttons rendered by plugins inside the account content. */
.tacc .button, .tacc .woocommerce-button, .tacc button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; background: var(--brand); color: #fff;
  border: 1px solid var(--brand); font-size: 15px; line-height: 1.2; cursor: pointer;
  border-radius: 14px; text-decoration: none;
}
.tacc .button:hover, .tacc .woocommerce-button:hover, .tacc button[type="submit"]:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }
.tacc .button.alt, .tacc .button.wc-forward { background: var(--brand); color: #fff; }

/* WooCommerce notices inside account content. XStore's own notice styling
   (also keyed off these same bare class names) reserves left padding for a
   decorative icon and floats any .button to the right with
   background/border forced through !important -- override all of it
   explicitly rather than let it show through around our flat design.
   The email-verification notice's own markup puts the <a class="button">
   BEFORE its sentence ('<a ...>Confirm email address</a> Confirm your
   email...'), but the design reads better button-after-text -- flex +
   order:1 on the button re-sequences it visually without touching WC core's
   markup (the trailing sentence becomes one anonymous flex item at the
   default order:0, so it renders first). */
.tacc .woocommerce-message, .tacc .woocommerce-info, .tacc .woocommerce-notice, .tacc .woocommerce-error {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  width: auto; position: static;
  background: var(--faint); border-radius: 12px; border-left: 3px solid var(--brand);
  color: var(--body); padding: 14px 16px; list-style: none; font-size: 15px;
}
.tacc .woocommerce-error { border-left-color: #a02020; }
.tacc .woocommerce-message::before, .tacc .woocommerce-info::before,
.tacc .woocommerce-notice::before, .tacc .woocommerce-error::before {
  content: none !important; display: none !important;
}
.tacc .woocommerce-message .button, .tacc .woocommerce-info .button,
.tacc .woocommerce-notice .button, .tacc .woocommerce-error .button {
  order: 1; float: none !important; display: inline-flex !important; height: auto !important;
  margin: 0 !important; padding: 10px 18px !important; font-size: 14px !important;
  text-decoration: none !important; text-transform: none !important;
  background: var(--brand) !important; color: #fff !important; border: 0 !important;
  border-radius: 11px !important; line-height: 1.2 !important;
}
.tacc .woocommerce-message .button:hover, .tacc .woocommerce-info .button:hover,
.tacc .woocommerce-notice .button:hover, .tacc .woocommerce-error .button:hover {
  opacity: 1 !important; background: var(--brand-hover) !important;
}

/* Generic tables (payment methods fallback, coupons/invoices plugin tables).
   No border-radius here: border-radius + overflow:hidden on a
   border-collapse:collapse table clips unreliably across browsers. */
.tacc table.shop_table, .tacc .woocommerce-MyAccount-content table {
  width: 100%; border-collapse: collapse; background: #fff; margin-bottom: 16px;
}
.tacc table.shop_table th, .tacc table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; color: var(--body); }
.tacc table.shop_table th { color: var(--brand); font-weight: 600; }
.tacc table.shop_table td a.button { padding: 8px 14px; font-size: 14px; }

/* ===== Coupons (our my-account-coupon-view.php override) ===== */
.tacc-coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.tacc-coupon { background: #fff; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tacc-coupon-code {
  align-self: flex-start; padding: 8px 13px; border-radius: 10px; font-size: 16px; letter-spacing: 0.08em;
  border: 1px dashed var(--brand); background: var(--faint); color: var(--brand);
}
.tacc-coupon--used .tacc-coupon-code, .tacc-coupon--expired .tacc-coupon-code {
  border-color: #b8b0a8; background: #f6f4f1; color: var(--soft);
}
.tacc-coupon-value { font-size: 16px; color: var(--brand); }
.tacc-coupon-note, .tacc-coupon-expiry { font-size: 14px; color: var(--soft); }
.tacc-coupon--expired, .tacc-coupon--used { opacity: 0.92; }

/* ===== Returns & Refunds (toile-core history table → design cards) ===== */
.tacc-returns-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
/* Hide the plugin's own duplicate heading; ours (tacc-returns-head) stands in. */
.tacc .toile-refund-history__title { display: none; }
.tacc .toile-refund-history__empty { font-size: 15px; color: var(--soft); }

.tacc .toile-refund-history__table,
.tacc .toile-refund-history__table tbody,
.tacc .toile-refund-history__table tr,
.tacc .toile-refund-history__table td { display: block; width: 100%; }
.tacc .toile-refund-history__table { border: 0; background: transparent; margin: 0; }
.tacc .toile-refund-history__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tacc .toile-refund-history__table tr {
  background: #fff; border-radius: 18px; padding: clamp(18px, 2.4vw, 24px);
  margin-bottom: 14px;
}
.tacc .toile-refund-history__table td {
  border: 0; padding: 4px 0; font-size: 15px; color: var(--body);
  display: flex; gap: 12px; justify-content: space-between; align-items: baseline;
}
.tacc .toile-refund-history__table td::before {
  content: attr(data-label); color: var(--soft); font-size: 13.5px; flex: 0 0 auto;
}
.tacc .toile-refund-history__table td a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Refund status → design chip. */
.tacc .toile-refund-status {
  display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 9px; font-size: 13.5px; line-height: 1.2;
  white-space: nowrap; background: #efeae4; color: #57504a;
}
.tacc .toile-refund-status--approved, .tacc .toile-refund-status--completed, .tacc .toile-refund-status--refunded { background: #e9f0e8; color: #22601f; }
.tacc .toile-refund-status--pending, .tacc .toile-refund-status--processing, .tacc .toile-refund-status--undecided { background: #fdf1e0; color: #7d5306; }
.tacc .toile-refund-status--rejected, .tacc .toile-refund-status--cancelled, .tacc .toile-refund-status--failed { background: #fbeaea; color: #a02020; }
