/* ==========================================================================
   Order tracking — /track/ and the panel above the WooCommerce order table.
   Mobile first: every rule is written for a 375px phone and widened after.
   Nothing here sets a width in pixels wider than the smallest phone, every
   grid child gets min-width:0, and long carrier strings are allowed to break.
   ========================================================================== */

/* ---- page shell ------------------------------------------------------- */
.tt-track__wrap { max-width: 720px; padding-top: 28px; padding-bottom: 48px; }
@media (min-width: 720px) { .tt-track__wrap { padding-top: 48px; padding-bottom: 72px; } }

.tt-track__header { margin: 0 0 22px; }
.tt-track__kicker {
  margin: 0 0 6px; font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tt-muted);
}
.tt-track__heading { font-size: clamp(26px, 6.4vw, 38px); line-height: 1.1; margin: 0 0 8px; overflow-wrap: anywhere; }
.tt-track__meta { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tt-muted); overflow-wrap: anywhere; }
.tt-track__dot { margin: 0 2px; }
.tt-track__eta {
  margin: 14px 0 0; padding: 11px 14px; border-radius: var(--r-md); background: rgba(47,69,54,.07);
  font-size: 14px; color: var(--tt-ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
}
.tt-track__eta-label {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tt-muted);
}
.tt-track__eta strong { font-family: var(--font-head); font-size: 16px; }

.tt-track__footer {
  margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--tt-line);
  font-size: 14px; line-height: 1.55; color: var(--tt-muted); display: grid; gap: 10px;
}
.tt-track__link { font-weight: 600; color: var(--tt-pine); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.tt-track__help { margin: 0; overflow-wrap: anywhere; }
.tt-track__help a { color: var(--tt-clay-dark); font-weight: 600; }

/* ---- lookup form ------------------------------------------------------ */
.tt-track__lookup { max-width: 480px; }
.tt-track__lede { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--tt-muted); }
.tt-track__error {
  margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(198,40,40,.08); color: #8f2626; font-size: 14px; line-height: 1.45;
}
.tt-track__form { display: grid; gap: 14px; }
.tt-track__field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--tt-ink); }
.tt-track__field input {
  width: 100%; min-width: 0; padding: 12px 14px; font: inherit; font-weight: 400; font-size: 16px;
  border: 1px solid var(--tt-line-strong); border-radius: var(--r-sm); background: #fff; color: var(--tt-ink);
}
.tt-track__field input:focus { outline: 2px solid var(--tt-pine); outline-offset: 1px; border-color: var(--tt-pine); }
.tt-track__submit {
  width: 100%; padding: 13px 22px; border: 0; border-radius: var(--r-pill);
  background: var(--tt-pine); color: var(--tt-cream); font: inherit; font-family: var(--font-head);
  font-weight: 600; font-size: 15px; cursor: pointer;
}
.tt-track__submit:hover { background: var(--tt-pine-deep, #243A2D); }
@media (min-width: 560px) { .tt-track__submit { width: auto; justify-self: start; } }

/* ---- the panel -------------------------------------------------------- */
.tt-journey { margin: 0 0 30px; min-width: 0; }
.tt-journey--order { margin-bottom: 34px; }
.tt-journey__title { font-family: var(--font-head); font-size: 20px; color: var(--tt-ink); margin: 0 0 12px; }
.tt-journey__intro { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--tt-muted); max-width: 62ch; }

.tt-journey__card {
  background: #fff; border: 1px solid var(--tt-line); border-radius: 16px;
  padding: 16px 16px 14px; margin: 0 0 14px; min-width: 0;
}
.tt-journey--page .tt-journey__card:last-child { margin-bottom: 0; }
@media (min-width: 640px) { .tt-journey__card { padding: 22px 24px 18px; } }

.tt-journey__head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 12px; margin: 0 0 4px;
}
.tt-journey__label { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--tt-ink); }
.tt-journey__note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--tt-muted); overflow-wrap: anywhere; }

/* ---- banners: an errand, or a stop --------------------------------------- */
.tt-journey__banner {
  margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(210,170,90,.16); border: 1px solid rgba(138,109,59,.28);
  font-size: 13.5px; line-height: 1.5; color: #5d4a25; overflow-wrap: anywhere;
}
.tt-journey__banner--hold,
.tt-journey__banner--delivery-failed {
  background: rgba(198,40,40,.07); border-color: rgba(198,40,40,.22); color: #7c2a2a;
}
.tt-journey__banner--returning,
.tt-journey__banner--status {
  background: rgba(107,106,99,.1); border-color: rgba(107,106,99,.25); color: #3f413a;
}
.tt-journey__banner--status { margin: 14px 0 0; }
.tt-journey__banner-title { margin: 0 0 4px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: inherit; }
.tt-journey__banner-body { margin: 0; }
.tt-journey__banner a { color: inherit; font-weight: 600; }
.tt-journey__banner--answered {
  background: rgba(47,69,54,.07); border-color: rgba(47,69,54,.24); color: var(--tt-pine);
}

/* ---- the address check, answered in place (tucktrail-order-edit.php) ------ */
.tt-addr { scroll-margin-top: 96px; }
.tt-addr__address {
  margin: 10px 0 0; padding: 10px 12px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid rgba(124,42,42,.16);
  font-size: 14px; line-height: 1.5; color: var(--tt-ink); overflow-wrap: anywhere;
}
.tt-addr__hint { margin: 10px 0 0; font-weight: 600; }
.tt-addr__error {
  margin: 10px 0 0; padding: 8px 10px; border-radius: var(--r-sm);
  background: rgba(198,40,40,.1); color: #8f2626; font-size: 13.5px; line-height: 1.45;
}
.tt-addr__sent {
  margin: 10px 0 0; padding: 8px 10px; border-radius: var(--r-sm);
  background: #fff; border: 1px solid rgba(47,69,54,.22); color: var(--tt-pine); font-size: 13.5px; line-height: 1.45;
}
.tt-addr__form { display: grid; gap: 10px; margin: 12px 0 0; min-width: 0; }
.tt-addr__field { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--tt-ink); }
.tt-addr__field input {
  width: 100%; min-width: 0; padding: 11px 14px; font: inherit; font-weight: 400; font-size: 16px;
  border: 1px solid var(--tt-line-strong); border-radius: var(--r-sm); background: #fff; color: var(--tt-ink);
}
.tt-addr__field input:focus { outline: 2px solid var(--tt-pine); outline-offset: 1px; border-color: var(--tt-pine); }
.tt-addr__submit {
  width: 100%; min-height: 44px; padding: 11px 22px; border: 0; border-radius: var(--r-pill);
  background: var(--tt-pine); color: var(--tt-cream); font: inherit; font-family: var(--font-head);
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
}
.tt-addr__submit:hover { background: var(--tt-pine-deep, #243A2D); }
.tt-addr__to { font-size: 13px; color: var(--tt-muted); overflow-wrap: anywhere; }
.tt-addr__alt { margin: 4px 0 0; }
.tt-addr__link {
  min-height: 44px; padding: 10px 0; border: 0; background: none; color: inherit; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: left;
  text-decoration: underline; text-underline-offset: 3px;
}
.tt-addr__note { margin: 10px 0 0; font-size: 13px; }
@media (min-width: 560px) {
  .tt-addr__form { justify-items: start; }
  /* The box and its button on one line; the label stays above the box. */
  .tt-addr__form--unit { grid-template-columns: minmax(0, 1fr) auto; align-items: end; justify-items: stretch; }
  .tt-addr__form--link { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .tt-addr__submit { width: auto; }
}

/* ---- change the whole address (改地址阶段 3) -------------------------------- */
.tt-track__change { font-weight: 600; color: var(--tt-pine); text-decoration: underline; text-underline-offset: 3px; }
.tt-journey__change { margin: -4px 0 12px; font-size: 13.5px; line-height: 1.5; color: var(--tt-muted); }
.tt-journey__change a { font-weight: 600; color: var(--tt-pine); text-decoration: underline; text-underline-offset: 3px; }
.tt-change {
  margin: 0 0 26px; padding: 16px; border-radius: 16px; min-width: 0; scroll-margin-top: 96px;
  background: #fff; border: 1px solid var(--tt-line);
}
@media (min-width: 640px) { .tt-change { padding: 22px 24px; } }
.tt-change__title { margin: 0 0 10px; font-family: var(--font-head); font-size: 18px; line-height: 1.3; color: var(--tt-ink); }
.tt-change__done { margin: 0; font-size: 14px; line-height: 1.55; color: var(--tt-pine); font-weight: 600; }
.tt-change__note { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--tt-muted); }
.tt-change__note a { font-weight: 600; color: var(--tt-pine); }
.tt-change .tt-addr__address { border-color: var(--tt-line); }
.tt-change .tt-addr__address + .tt-change__note { margin-top: 10px; }
.tt-change__form { display: grid; gap: 12px; margin: 0; min-width: 0; }
.tt-change__fixed { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tt-ink); overflow-wrap: anywhere; }
.tt-change__label {
  display: block; margin: 0 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--tt-muted);
}
.tt-change__aside { display: block; font-size: 12.5px; color: var(--tt-muted); }
.tt-change__field { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--tt-ink); }
.tt-change__field em { font-style: normal; font-weight: 400; color: var(--tt-muted); }
.tt-change__field input,
.tt-change__field select {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px; font: inherit; font-weight: 400; font-size: 16px;
  border: 1px solid var(--tt-line-strong); border-radius: var(--r-sm); background-color: #fff; color: var(--tt-ink);
}
/* iOS draws its own select chrome and ignores padding and radius unless told not to. */
.tt-change__field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%232F4536' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.tt-change__field input:focus,
.tt-change__field select:focus { outline: 2px solid var(--tt-pine); outline-offset: 1px; border-color: var(--tt-pine); }
.tt-change__actions { display: grid; gap: 10px; margin: 4px 0 0; }
.tt-change__cancel {
  justify-self: center; min-height: 44px; display: inline-flex; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--tt-muted); text-decoration: underline; text-underline-offset: 3px;
}
.tt-change .tt-addr__error { margin: 0 0 12px; }
/* ---- cancel before anything is bought (P1) --------------------------------- */
.tt-cancel__submit { background: #8f2626; }
.tt-cancel__submit:hover { background: #742020; }
.tt-track__cancel a { color: var(--tt-muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 560px) {
  /* Street and unit take the full row; city, state and postcode share one. */
  .tt-change__form { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.8fr); column-gap: 12px; }
  .tt-change__field--wide,
  .tt-change__fixed,
  .tt-change__actions { grid-column: 1 / -1; }
  .tt-change__actions { display: flex; align-items: center; gap: 18px; }
  .tt-change__cancel { justify-self: auto; }
}

/* ---- the ladder --------------------------------------------------------- */
.tt-ladder { list-style: none; margin: 14px 0 0; padding: 0; }
.tt-ladder__step {
  position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px; align-items: start; padding: 0 0 16px; min-width: 0;
}
.tt-ladder__step:last-child { padding-bottom: 0; }
/* the rail: from this dot to the next */
.tt-ladder__step::before {
  content: ''; position: absolute; left: 8px; top: 18px; bottom: -1px; width: 2px;
  background: rgba(47,69,54,.16); border-radius: 1px;
}
.tt-ladder__step:last-child::before { display: none; }
.tt-ladder__step.is-done::before { background: var(--tt-pine); }
.tt-ladder__dot {
  position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
  box-sizing: border-box; background: #fff; border: 2px solid rgba(47,69,54,.28);
}
.tt-ladder__step.is-done .tt-ladder__dot { background: var(--tt-pine); border-color: var(--tt-pine); }
.tt-ladder__step.is-done .tt-ladder__dot::after {
  content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tt-ladder__step.is-current .tt-ladder__dot {
  background: var(--tt-pine); border-color: var(--tt-pine); box-shadow: 0 0 0 4px rgba(47,69,54,.16);
}
.tt-ladder__body { min-width: 0; display: grid; gap: 2px; padding-top: 1px; }
.tt-ladder__title { font-size: 14.5px; font-weight: 500; color: #3f413a; line-height: 1.35; overflow-wrap: anywhere; }
.tt-ladder__step.is-current .tt-ladder__title { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--tt-ink); }
.tt-ladder__step.is-future .tt-ladder__title { color: var(--tt-muted); }
.tt-ladder__sub { font-size: 13.5px; line-height: 1.5; color: var(--tt-muted); overflow-wrap: anywhere; }
.tt-ladder__time { font-size: 12px; color: var(--tt-muted); font-variant-numeric: tabular-nums; }

/* ---- the estimate, per box ---------------------------------------------- */
.tt-journey__eta { margin: 14px 0 0; font-size: 13.5px; color: var(--tt-muted); overflow-wrap: anywhere; }
.tt-journey__eta strong { font-family: var(--font-head); font-size: 14.5px; color: var(--tt-ink); margin-left: 4px; }

/* ---- tracking number ---------------------------------------------------- */
.tt-journey__tracking {
  margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--tt-cream);
  display: grid; gap: 4px; min-width: 0;
}
.tt-journey__tracking-label {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tt-muted);
}
.tt-journey__number {
  font-family: Menlo, Consolas, monospace; font-size: 15px; font-weight: 600; letter-spacing: .3px;
  color: var(--tt-ink); overflow-wrap: anywhere; word-break: break-all;
}
.tt-journey__carrier-link {
  font-size: 13px; font-weight: 600; color: var(--tt-clay-dark);
  text-decoration: underline; text-underline-offset: 3px; justify-self: start;
}
.tt-journey__tracking .tt-journey__note { margin: 2px 0 0; }
/* The local carrier's number sits right above 4PX's — two numbers, one box. */
.tt-journey__tracking + .tt-journey__tracking { margin-top: 8px; }

/* ---- what is in the box ------------------------------------------------- */
.tt-journey__items {
  list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(227,220,207,.8);
  display: grid; gap: 8px;
}
.tt-journey__item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 10px;
  align-items: center; font-size: 14px; color: #3f413a; min-width: 0;
}
.tt-journey__thumb {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--tt-line);
  object-fit: cover; display: block; background: var(--tt-cream);
}
.tt-journey__item-name { min-width: 0; display: grid; gap: 1px; line-height: 1.35; overflow-wrap: anywhere; }
.tt-journey__item-variant { font-size: 12px; color: var(--tt-muted); }
.tt-journey__qty { font-size: 13px; color: var(--tt-muted); white-space: nowrap; }

/* ---- the carrier's own scans, folded ----------------------------------- */
.tt-journey__feed { margin: 14px 0 0; padding-top: 10px; border-top: 1px solid rgba(227,220,207,.8); }
.tt-journey__feed summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--tt-pine);
}
.tt-journey__feed summary::-webkit-details-marker { display: none; }
.tt-journey__feed summary::before {
  content: ''; flex: none; width: 7px; height: 7px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s ease;
}
.tt-journey__feed[open] summary::before { transform: rotate(45deg); }
/* the timeline helper prints its own lead-in line; the summary already said it */
.tt-journey__feed > .tt-shipment__note { display: none; }
.tt-journey__feed .tt-shipment__timeline { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) { .tt-journey__feed summary::before { transition: none; } }

/* ---- after delivery: the return line and the review ask ----------------- */
/* On /track/ both sit between the road and the footer. On the order pages the
   return line follows the order table (inc/returns.php) and the review ask
   follows it (tucktrail-review-invites.php). */
.tt-track__aftercare { margin: 26px 0 0; display: grid; gap: 12px; min-width: 0; }
.tt-track__aftercare > .tt-return-entry,
.tt-track__aftercare > .tt-return-progress,
.tt-track__aftercare > .tt-order-review { margin: 0; }

.tt-order-review {
  margin: 18px 0 0; padding: 14px 16px; min-width: 0;
  background: #fff; border: 1px solid var(--tt-line); border-radius: 12px;
}
.tt-order-review__title {
  margin: 0 0 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--tt-ink);
}
.tt-order-review__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tt-order-review__link {
  font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--tt-pine);
  text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;
}
.tt-order-review__link:hover { color: var(--tt-clay-dark); }

/* ---- your orders: the emailed-code sign-in and the list (tucktrail-your-orders.php) ---- */
.tt-signin__notice {
  margin: 0 0 14px; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(47,69,54,.07); color: var(--tt-pine); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere;
}
.tt-signin__again { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin: 8px 0 0; }
.tt-signin__again form { margin: 0; }
/* A button that reads as a link: the secondary action beside a filled one. */
.tt-signin__link {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--tt-pine); text-decoration: underline; text-underline-offset: 3px;
}
.tt-signin__have { margin: 12px 0 0; }
.tt-signin__have > summary,
.tt-orders__other > summary {
  padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tt-pine);
}
.tt-signin__have[open] > summary { margin-bottom: 6px; }
.tt-signin__help { margin-top: 28px; }
.tt-track__lookup--secondary { margin: 32px 0 0; padding-top: 24px; border-top: 1px solid var(--tt-line); }
.tt-track__subheading { margin: 0 0 6px; font-family: var(--font-head); font-size: 18px; line-height: 1.3; color: var(--tt-ink); }

.tt-track__back {
  display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 4px;
  font-size: 14px; font-weight: 600; color: var(--tt-pine); text-decoration: none;
}
.tt-track__back:hover { text-decoration: underline; text-underline-offset: 3px; }

.tt-orders__who { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.tt-orders__signout { display: inline; margin: 0; }
.tt-orders__who .tt-signin__link { min-height: 36px; }
.tt-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tt-orders__item { margin: 0; min-width: 0; }
.tt-orders__row {
  display: grid; gap: 8px; padding: 16px; border-radius: 16px; min-width: 0;
  background: #fff; border: 1px solid var(--tt-line); color: var(--tt-ink); text-decoration: none;
}
.tt-orders__row:hover { border-color: var(--tt-line-strong); }
.tt-orders__row:focus-visible { outline: 2px solid var(--tt-pine); outline-offset: 2px; }
@media (min-width: 640px) { .tt-orders__row { padding: 18px 22px; } }
.tt-orders__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.tt-orders__num { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.tt-orders__status {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .02em;
  background: rgba(47,69,54,.1); color: var(--tt-pine); border: 1px solid transparent;
}
.tt-orders__status--done { background: var(--tt-pine); color: var(--tt-cream); }
.tt-orders__status--wait { background: rgba(210,170,90,.2); color: #5d4a25; }
/* Over and done with: an outline, so it never reads like an order still moving. */
.tt-orders__status--quiet { background: transparent; border-color: var(--tt-line-strong); color: var(--tt-muted); }
.tt-orders__meta { font-size: 13.5px; line-height: 1.5; color: var(--tt-muted); overflow-wrap: anywhere; }
.tt-orders__thumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tt-orders__thumb {
  display: block; width: 48px; height: 48px; border-radius: 10px; object-fit: cover;
  background: var(--tt-cream); border: 1px solid var(--tt-line);
}
.tt-orders__more { font-size: 13px; font-weight: 600; color: var(--tt-muted); }
.tt-orders__hint { font-size: 13.5px; line-height: 1.5; font-weight: 600; color: var(--tt-pine); }
.tt-orders__empty {
  margin: 0; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--tt-line);
  font-size: 14px; line-height: 1.55; color: var(--tt-ink);
}
.tt-orders__other { margin: 22px 0 0; }
.tt-orders__other .tt-track__lookup--secondary { margin-top: 8px; padding-top: 0; border-top: 0; }

/* ---- 「Problem with this order?」 (tucktrail-order-help.php) ------------------ */
.tt-track__help-entry a { color: var(--tt-pine); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tt-help__topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tt-line); }
.tt-help__topics li { margin: 0; border-bottom: 1px solid var(--tt-line); }
.tt-help__topic {
  display: grid; gap: 2px; min-height: 52px; align-content: center; padding: 10px 28px 10px 0; position: relative;
  color: var(--tt-ink); text-decoration: none; font-size: 15px; font-weight: 600;
}
.tt-help__topic small { font-size: 13px; font-weight: 400; color: var(--tt-muted); }
/* A chevron, so each row reads as a way in rather than a line of text. */
.tt-help__topic::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -5px;
  border-right: 2px solid var(--tt-pine); border-bottom: 2px solid var(--tt-pine); transform: rotate(-45deg);
}
.tt-help__topic:hover span { text-decoration: underline; text-underline-offset: 3px; }
.tt-help__topic:focus-visible { outline: 2px solid var(--tt-pine); outline-offset: 2px; }
.tt-help__picked { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--tt-ink); overflow-wrap: anywhere; }
.tt-help__picked a { color: var(--tt-pine); font-weight: 600; white-space: nowrap; }
.tt-help .tt-change__note a { text-decoration: underline; text-underline-offset: 3px; }
.tt-help .tt-change__done + .tt-change__note { margin: 12px 0 0; }
.tt-change__note.tt-help__answer { color: var(--tt-ink); font-size: 14px; }
.tt-help__do { margin: 4px 0 14px; }
a.tt-help__action { display: block; text-align: center; text-decoration: none; }
@media (min-width: 560px) { a.tt-help__action { display: inline-block; } }
.tt-help__more { margin: 6px 0 0; }
.tt-help__more > summary { padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tt-pine); }
.tt-help__more[open] > summary { margin-bottom: 8px; }
/* One column at every width: a message box, the note, the button. */
.tt-change__form.tt-help__form { grid-template-columns: minmax(0, 1fr); }
.tt-help__form textarea {
  width: 100%; min-width: 0; min-height: 120px; padding: 11px 14px; font: inherit; font-weight: 400; font-size: 16px;
  line-height: 1.5; resize: vertical;
  border: 1px solid var(--tt-line-strong); border-radius: var(--r-sm); background-color: #fff; color: var(--tt-ink);
}
.tt-help__form textarea:focus { outline: 2px solid var(--tt-pine); outline-offset: 1px; border-color: var(--tt-pine); }
.tt-change__form.tt-help__form .tt-help__reply { margin: 0; }

/* ---- 「Your pets」 and 「Sizes you’ve bought」 (tucktrail-pets.php) ------------ */
.tt-pets, .tt-sizes { margin: 30px 0 0; scroll-margin-top: 96px; }
.tt-pets__title { margin: 0 0 6px; font-family: var(--font-head); font-size: 20px; line-height: 1.25; color: var(--tt-ink); }
.tt-pets__lede { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--tt-muted); max-width: 62ch; }
.tt-pets__list, .tt-sizes__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.tt-pets__pet {
  margin: 0; padding: 16px; border-radius: 16px; min-width: 0; background: #fff; border: 1px solid var(--tt-line);
}
@media (min-width: 640px) { .tt-pets__pet { padding: 18px 22px; } }
.tt-pets__name { margin: 0 0 10px; font-size: 16px; color: var(--tt-ink); overflow-wrap: anywhere; }
.tt-pets__name strong { font-family: var(--font-head); }
.tt-pets__name span { font-size: 13px; color: var(--tt-muted); margin-left: 6px; }
.tt-pets__measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
@media (min-width: 560px) { .tt-pets__measures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tt-pets__measures div { min-width: 0; }
.tt-pets__measures dt { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tt-muted); }
.tt-pets__measures dd { margin: 2px 0 0; font-size: 14px; color: var(--tt-ink); }
.tt-pets__edit, .tt-pets__add { margin: 10px 0 0; }
.tt-pets__edit > summary, .tt-pets__add > summary { padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tt-pine); }
.tt-pets__add { padding: 4px 16px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--tt-line); }
.tt-pets__hint { display: block; font-size: 12.5px; font-weight: 400; color: var(--tt-muted); }
.tt-pets__choice { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; border: 0; min-width: 0; grid-column: 1 / -1; }
.tt-pets__choice legend { width: 100%; padding: 0; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--tt-ink); }
.tt-pets__choice label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; color: var(--tt-ink); }
/* Two measurements a row from 560px; each field carries its own hint. */
.tt-change__form.tt-pets__form { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .tt-change__form.tt-pets__form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tt-pets__form input[type="text"] {
  width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px; font: inherit; font-weight: 400; font-size: 16px;
  border: 1px solid var(--tt-line-strong); border-radius: var(--r-sm); background: #fff; color: var(--tt-ink);
}
.tt-pets__form input[type="text"]:focus { outline: 2px solid var(--tt-pine); outline-offset: 1px; border-color: var(--tt-pine); }
.tt-pets__remove { margin: 6px 0 0; }
.tt-sizes__item {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0;
  padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--tt-line);
}
.tt-sizes__body { min-width: 0; }
.tt-sizes__name { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.tt-sizes__name a { color: var(--tt-ink); text-decoration: none; }
.tt-sizes__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tt-sizes__meta { margin: 2px 0 0; font-size: 13px; color: var(--tt-muted); }
.tt-sizes__exchange { display: inline-block; margin: 6px 0 0; padding: 2px 8px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: rgba(210,170,90,.2); color: #5d4a25; }
.tt-sizes__fits { margin: 6px 0 0; font-size: 13.5px; font-weight: 600; color: var(--tt-pine); overflow-wrap: anywhere; }

/* ---- 「Your coupons」 (tucktrail-wallet.php) --------------------------------- */
.tt-coupons { margin: 30px 0 0; scroll-margin-top: 96px; }
.tt-coupons__scratch {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin: 0 0 12px; padding: 14px 16px; border-radius: 16px;
  background: rgba(210,170,90,.14); border: 1px solid rgba(138,109,59,.28);
}
.tt-coupons__scratch p { margin: 0; font-size: 14px; line-height: 1.5; color: #5d4a25; font-weight: 600; min-width: 0; }
.tt-coupons__scratch-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: var(--r-pill);
  background: var(--tt-clay-dark); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; text-decoration: none;
}
.tt-coupons__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.tt-coupons__item {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 16px; border-radius: 16px;
  background: #fff; border: 1px dashed var(--tt-line-strong); min-width: 0;
}
@media (min-width: 560px) {
  .tt-coupons__item { grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
}
.tt-coupons__item--soon { border-color: #a23b2a; }
.tt-coupons__value { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.15; color: var(--tt-pine); }
.tt-coupons__body { min-width: 0; }
.tt-coupons__source { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--tt-ink); }
.tt-coupons__terms { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--tt-muted); }
.tt-coupons__item--soon .tt-coupons__terms { color: #a23b2a; font-weight: 600; }
.tt-coupons__code { margin: 6px 0 0; }
.tt-coupons__code code {
  display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--tt-cream);
  font-size: 13px; letter-spacing: .04em; color: var(--tt-ink); user-select: all; overflow-wrap: anywhere;
}
a.tt-coupons__use { display: block; text-align: center; text-decoration: none; }
@media (min-width: 560px) { a.tt-coupons__use { display: inline-block; } }
.tt-coupons__how { margin: 0; font-size: 13px; color: var(--tt-muted); }
.tt-coupons__none { margin: 0 0 12px; font-size: 14px; color: var(--tt-muted); }
.tt-coupons__used > summary { padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tt-pine); }
.tt-coupons__used ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tt-coupons__used li { font-size: 13.5px; color: var(--tt-muted); overflow-wrap: anywhere; }
.tt-coupons__used code { font-size: 13px; color: var(--tt-ink); margin-right: 6px; }

/* ---- 「Email preferences」 (tucktrail-mail-prefs.php) — on Your orders and on /email-preferences/ */
.tt-mailprefs { margin: 30px 0 0; scroll-margin-top: 96px; }
.tt-mailprefs__list { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.tt-mailprefs__legend {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tt-mailprefs__item {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0;
  padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--tt-line); cursor: pointer;
}
.tt-mailprefs__item input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tt-pine); cursor: pointer; }
.tt-mailprefs__item strong { display: block; font-size: 15px; line-height: 1.35; color: var(--tt-ink); }
.tt-mailprefs__item small { display: block; margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--tt-muted); }
.tt-mailprefs__always { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--tt-muted); }
.tt-mailprefs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin: 16px 0 0; }
.tt-mailprefs__ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 0 0 16px; padding: 14px 16px; border-radius: 16px;
  background: rgba(47,69,54,.07); border: 1px solid rgba(47,69,54,.24);
}
.tt-mailprefs__ask p { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--tt-ink); min-width: 0; }
