@charset "UTF-8";
/*
 * account.css : the My Account pages (pages/account/).
 *
 * Each part is the styles of one component, scoped under its tag (app-account-layout ...) as Angular scoped them :
 * the selectors start with the tag. Plain CSS, edited here.
 */

/* ════════ <app-account-layout> ════════ */

app-account-layout {
  display: block;
}
/* white under the dark banner, like the other inner pages (the banner's notch already takes --page-inner) */
app-account-layout .acct {
  background: var(--page-inner);
}

app-account-layout .acct__grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

app-account-layout .acct__wait {
  min-height: 420px;
}

/* ── the side: who is signed in, and the pages ─────────────────────────── */
app-account-layout .acct__side {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 40px -28px rgba(23, 19, 18, 0.35);
}

app-account-layout .acct__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  background: radial-gradient(80% 120% at 100% 0%, rgba(215, 26, 33, 0.45), transparent 70%), var(--night);
  color: #fff;
}

app-account-layout .acct__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: var(--red);
  font-size: 19px;
  font-weight: 800;
}

app-account-layout .acct__who {
  min-width: 0;
}
app-account-layout .acct__who strong,
app-account-layout .acct__who small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
app-account-layout .acct__who strong {
  font-size: 16px;
}
app-account-layout .acct__who small {
  margin-top: 2px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

app-account-layout .acct__nav {
  display: grid;
  padding: 10px 0;
}

app-account-layout .acct__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  transition: background-color 0.15s, color 0.15s;
}
app-account-layout .acct__link svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--muted);
  transition: color 0.15s;
}
app-account-layout .acct__link span {
  flex: 1 1 auto;
}
app-account-layout .acct__link:hover {
  background: var(--tint);
  color: var(--ink);
}
app-account-layout .acct__link:hover svg {
  color: var(--red);
}
app-account-layout .acct__link.is-active {
  background: var(--tint);
  color: var(--red);
  font-weight: 600;
}
app-account-layout .acct__link.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
}
app-account-layout .acct__link.is-active svg {
  color: var(--red);
}
app-account-layout .acct__link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

app-account-layout .acct__chev {
  opacity: 0;
}
app-account-layout .is-active .acct__chev {
  opacity: 1;
}

app-account-layout .acct__link--out {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--red);
}
app-account-layout .acct__link--out svg {
  color: var(--red);
}

/* ── signed out ────────────────────────────────────────────────────────── */
app-account-layout .acct__locked {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
  padding: 48px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  text-align: center;
}
app-account-layout .acct__locked h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
}
app-account-layout .acct__locked p {
  margin-bottom: 10px;
  color: var(--muted);
}

app-account-layout .acct__locked-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 6px;
  border: 1.5px dashed var(--tint-edge);
  border-radius: 50%;
  background: var(--tint);
  color: var(--red);
}
app-account-layout .acct__locked-icon svg {
  width: 30px;
  height: 30px;
}

/* ── what the account pages share ──────────────────────────────────────── */
app-account-layout .acct__main {
  /* the page's heading, with its count or main button on the right */
  /* nothing here yet */
  /* an outlined version of the site's buttons */
  /* ── fields ── */
  /* a password with its show / hide button */
}
app-account-layout .acct__main .ac-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
app-account-layout .acct__main .ac-head__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
app-account-layout .acct__main .ac-head__title svg {
  width: 24px;
  height: 24px;
  color: var(--red);
}
app-account-layout .acct__main .ac-head__sub {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
app-account-layout .acct__main .ac-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--dark-chip);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
app-account-layout .acct__main .ac-badge--soft {
  border: 1px solid var(--tint-edge);
  background: var(--tint);
  color: var(--red);
}
app-account-layout .acct__main .ac-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 40px -30px rgba(23, 19, 18, 0.3);
}
app-account-layout .acct__main .ac-card--pad {
  padding: clamp(20px, 3vw, 30px);
}
app-account-layout .acct__main .ac-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}
app-account-layout .acct__main .ac-card__title svg {
  width: 20px;
  height: 20px;
  color: var(--red);
}
app-account-layout .acct__main .ac-empty {
  display: grid;
  justify-items: center;
  padding: clamp(40px, 6vw, 64px) 24px;
  text-align: center;
}
app-account-layout .acct__main .ac-empty h3 {
  margin: 18px 0 8px;
  font-size: 20px;
  font-weight: 700;
}
app-account-layout .acct__main .ac-empty p {
  max-width: 40ch;
  margin-bottom: 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
app-account-layout .acct__main .ac-empty__icon {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1.5px dashed var(--tint-edge);
  border-radius: 50%;
  background: var(--tint);
  color: var(--red);
  animation: app-account-layout--ac-float 3.2s ease-in-out infinite;
}
app-account-layout .acct__main .ac-empty__icon svg {
  width: 38px;
  height: 38px;
}
app-account-layout .acct__main .ac-empty__dots {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
app-account-layout .acct__main .ac-empty__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--edge-strong);
}
app-account-layout .acct__main .ac-empty__dots i:nth-child(2) {
  background: var(--red);
}
@keyframes app-account-layout--ac-float {
  50% {
    transform: translateY(-5px);
  }
}
app-account-layout .acct__main .btn--outline {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}
app-account-layout .acct__main .btn--outline:hover {
  border-color: var(--ink);
}
app-account-layout .acct__main .btn svg {
  transition: none;
}
app-account-layout .acct__main .btn:hover svg {
  transform: none;
}
app-account-layout .acct__main .ac-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
app-account-layout .acct__main .ac-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
app-account-layout .acct__main .ac-field {
  display: grid;
  align-content: start;
  gap: 7px;
}
app-account-layout .acct__main .ac-field > label,
app-account-layout .acct__main .ac-field .ac-field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
app-account-layout .acct__main .ac-field > label b,
app-account-layout .acct__main .ac-field .ac-field__label b {
  color: var(--red);
}
app-account-layout .acct__main .ac-field input,
app-account-layout .acct__main .ac-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14.5px var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
app-account-layout .acct__main .ac-field input::placeholder,
app-account-layout .acct__main .ac-field select::placeholder {
  color: var(--muted);
}
app-account-layout .acct__main .ac-field input:focus,
app-account-layout .acct__main .ac-field select:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 26, 33, 0.12);
}
app-account-layout .acct__main .ac-field input:disabled,
app-account-layout .acct__main .ac-field select:disabled {
  background: var(--surface-2);
  color: var(--muted);
}
app-account-layout .acct__main .ac-field.has-error input, app-account-layout .acct__main .ac-field.has-error select {
  border-color: var(--red);
}
app-account-layout .acct__main .ac-field .ac-err {
  font-size: 12.5px;
  color: var(--red);
}
app-account-layout .acct__main .ac-wide {
  grid-column: 1/-1;
}
app-account-layout .acct__main .ac-pw {
  position: relative;
}
app-account-layout .acct__main .ac-pw input {
  padding-right: 46px;
}
app-account-layout .acct__main .ac-pw button {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--muted);
  transform: translateY(-50%);
}
app-account-layout .acct__main .ac-pw button:hover {
  background: var(--cream);
  color: var(--ink);
}
app-account-layout .acct__main .ac-pw button svg {
  width: 18px;
  height: 18px;
}
app-account-layout .acct__main .ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
@media (max-width: 640px) {
  app-account-layout .acct__main .ac-grid,
  app-account-layout .acct__main .ac-grid--3 {
    grid-template-columns: 1fr;
  }
  app-account-layout .acct__main .ac-field input,
  app-account-layout .acct__main .ac-field select {
    font-size: 16px;
  }
}

/* ── tablet and phone: the pages become a strip of tabs above ──────────── */
@media (max-width: 960px) {
  app-account-layout .acct__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  app-account-layout .acct__side {
    position: static;
  }
  app-account-layout .acct__nav {
    display: flex;
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  app-account-layout .acct__nav::-webkit-scrollbar {
    display: none;
  }
  app-account-layout .acct__link {
    flex: none;
    width: auto;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13.5px;
  }
  app-account-layout .acct__link.is-active::before,
  app-account-layout .acct__link .acct__chev {
    display: none;
  }
  app-account-layout .acct__link--out {
    margin: 0;
  }
}

/* ════════ <app-account-orders> ════════ */

app-account-orders .tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px auto;
  gap: 12px;
  margin-bottom: 18px;
}

app-account-orders .tools__search {
  position: relative;
}
app-account-orders .tools__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

app-account-orders input,
app-account-orders select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--surface);
  font: 500 14.5px var(--font-body);
  color: var(--ink);
}
app-account-orders input:focus,
app-account-orders select:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 26, 33, 0.12);
}

app-account-orders input {
  padding: 0 14px 0 42px;
}

/* the status filter : the Angular site's dropdown (as the shop's Sort by) — a funnel, the status, a chevron ;
   its list opens under it, each status with the dot of its colour */
app-account-orders .dd {
  position: relative;
}
app-account-orders .dd__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--surface);
  font: 600 14.5px var(--font-body);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
app-account-orders .dd__btn > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
app-account-orders .dd__btn svg {
  flex: none;
  width: 16px;
  height: 16px;
}
app-account-orders .dd__icon {
  color: var(--red);
}
app-account-orders .dd__chev {
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s;
}
app-account-orders .dd__btn:hover {
  border-color: var(--edge-hover);
}
app-account-orders .dd__btn:hover .dd__chev {
  color: var(--ink);
}
app-account-orders .dd__btn.is-open,
app-account-orders .dd__btn:focus-visible {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 26, 33, 0.12);
}
app-account-orders .dd__btn.is-open .dd__chev {
  transform: rotate(180deg);
  color: var(--red);
}
app-account-orders .dd__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 18px 40px -16px rgba(23, 19, 18, 0.3);
  list-style: none;
  outline: none;
  animation: app-account-orders--dd-in 0.18s var(--ease);
}
app-account-orders .dd__list[hidden] {
  display: none;
}
app-account-orders .dd__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  cursor: pointer;
}
app-account-orders .dd__opt > span {
  flex: 1;
}
app-account-orders .dd__opt svg {
  flex: none;
  width: 16px;
  height: 16px;
}
/* the option the arrow keys (or the pointer) are on */
app-account-orders .dd__opt.is-active {
  background: var(--surface-2);
}
app-account-orders .dd__opt.is-on {
  font-weight: 700;
  color: var(--red);
}
app-account-orders .dd__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-soft);
}
app-account-orders .dd__dot--processing {
  background: #f59e0b;
}
app-account-orders .dd__dot--shipped {
  background: #3b82f6;
}
app-account-orders .dd__dot--delivered {
  background: var(--ok);
}
app-account-orders .dd__dot--cancelled {
  background: var(--red);
}
app-account-orders .dd__dot--returned {
  background: var(--faint);
}
@keyframes app-account-orders--dd-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  app-account-orders .dd__list {
    animation: none;
  }
}

app-account-orders .btn {
  min-height: 46px;
}

@media (max-width: 640px) {
  app-account-orders .tools {
    grid-template-columns: 1fr 1fr;
  }
  app-account-orders .tools__search {
    grid-column: 1/-1;
  }
  app-account-orders input,
  app-account-orders select {
    font-size: 16px;
  }
}

/* ════════ <app-account-wishlist> ════════ */

/* three across in the account's column (two on tablets, one on phones) : the home page's Best Sellers card */
app-account-wishlist .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: clamp(22px, 3vw, 32px) clamp(14px, 1.8vw, 22px);
}

/* The card (home.css, app-products) : soft, the picture inset in it, the name and price under the picture, and the */
/* bottom right corner cut out for the arrow button (the mask is the card less that corner). */
app-account-wishlist .product {
  --r: 22px;
  --pad: 8px;
  --go: 42px;
  --bay-gap: 8px;
  --bay-r: 14px;
  position: relative;
  display: flex;
  container-type: inline-size;
}
app-account-wishlist .product__link {
  position: relative;
  display: flex;
  width: 100%;
  transition: transform 0.4s var(--ease), filter 0.4s;
}
@media (hover: hover) {
  app-account-wishlist .product__link:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 8px 12px rgba(23, 19, 18, 0.08));
  }
}
app-account-wishlist .product__front {
  --n: calc(var(--go) + var(--bay-gap));
  --nr: calc(var(--go) / 2 + var(--bay-gap));
  --solid: linear-gradient(#000 0 0);
  --end: radial-gradient(circle at 0 0, #000 calc(var(--bay-r) - 0.5px), transparent var(--bay-r));
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: var(--pad) var(--pad) 0;
  border-radius: var(--r);
  background-color: var(--surface-2);
  mask: var(--solid) 0 0/100% calc(100% - var(--n) - var(--bay-r)) no-repeat, var(--solid) 0 0/calc(100% - var(--n) - var(--bay-r)) 100% no-repeat, var(--solid) right var(--bay-r) bottom var(--n)/var(--n) var(--bay-r) no-repeat, var(--end) right 0 bottom var(--n)/var(--bay-r) var(--bay-r) no-repeat, var(--solid) right var(--n) bottom var(--bay-r)/var(--bay-r) calc(var(--n) - var(--bay-r)) no-repeat, var(--end) right var(--n) bottom 0/var(--bay-r) var(--bay-r) no-repeat, radial-gradient(circle at 100% 100%, transparent calc(var(--nr) - 0.5px), #000 var(--nr)) right calc(var(--go) / 2) bottom calc(var(--go) / 2)/var(--nr) var(--nr) no-repeat;
}
app-account-wishlist .product__media {
  position: relative;
  aspect-ratio: 1;
  border-radius: calc(var(--r) - var(--pad));
  overflow: hidden;
  background: var(--sand);
}
app-account-wishlist .product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* the label on the picture's top left corner */
app-account-wishlist .product__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--dark-chip);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px -4px rgba(15, 11, 10, 0.35);
}
app-account-wishlist .product__tag--bestseller {
  background: #e8692e;
}
app-account-wishlist .product__tag--new {
  background: #1f8a5b;
}
app-account-wishlist .product__tag--offer {
  background: var(--red);
}
app-account-wishlist .product__foot {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 8px 0;
}
app-account-wishlist .product__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-soft);
  transition: color 0.2s;
}
app-account-wishlist .product:hover .product__name {
  color: var(--red);
}
/* two lines at most, and room for two (the blurbs line up across a row) */
app-account-wishlist .product__blurb {
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
/* the price keeps to the left of the cut-out corner, and is as tall as it */
app-account-wishlist .product__price {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: min(6px, 2cqi);
  white-space: nowrap;
  margin-top: auto;
  min-height: calc(var(--go) + var(--bay-gap));
  padding-right: calc(var(--go) + var(--bay-gap) + 4px);
}
app-account-wishlist .product__price strong {
  font-size: min(18px, 6.2cqi);
  font-weight: 700;
  letter-spacing: -0.01em;
}
app-account-wishlist .product__price s {
  font-size: min(12px, 4.2cqi);
  color: var(--muted);
}
app-account-wishlist .product__save {
  font-size: min(12px, 4.2cqi);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ok);
}
app-account-wishlist .product__ask {
  font-size: min(13px, 4.6cqi);
  font-weight: 600;
  color: var(--muted);
}
/* the arrow button, in the corner cut out of the card */
app-account-wishlist .product__bay {
  position: absolute;
  right: 0;
  bottom: 0;
}
app-account-wishlist .product__go {
  display: grid;
  place-items: center;
  width: var(--go);
  height: var(--go);
  border-radius: 50%;
  background: var(--dark-chip);
  color: #fff;
  transition: background-color 0.3s;
}
app-account-wishlist .product__go svg {
  width: 17px;
  height: 17px;
  transition: transform 0.4s var(--ease);
}
app-account-wishlist .product:hover .product__go {
  background: var(--red);
}
app-account-wishlist .product:hover .product__go svg {
  transform: rotate(45deg);
}
/* the heart, on the picture's top right corner; it rises with the card */
app-account-wishlist .product > app-like {
  position: absolute;
  top: calc(var(--pad) + 10px);
  right: calc(var(--pad) + 10px);
  transition: transform 0.4s var(--ease);
}
@media (hover: hover) {
  app-account-wishlist .product:hover > app-like {
    transform: translateY(-4px);
  }
}

app-account-wishlist .count {
  margin-top: 26px;
  font-size: 14px;
  text-align: center;
  color: var(--muted);
}
app-account-wishlist .count b {
  color: var(--red);
}

/* ════════ <app-account-profile> ════════ */

app-account-profile {
  display: block;
}

app-account-profile .password {
  margin-top: 22px;
}

/* the details: a dark panel with the avatar, and the rows beside it */
app-account-profile .profile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

app-account-profile .profile__side {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 30px 18px;
  background: radial-gradient(90% 70% at 50% 0%, rgba(215, 26, 33, 0.5), transparent 70%), var(--night);
  color: #fff;
  text-align: center;
}
app-account-profile .profile__side strong {
  margin-top: 10px;
  font-size: 17px;
}
app-account-profile .profile__side small {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.7);
}

app-account-profile .profile__avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: var(--red);
  font-family: var(--font-display);
  font-size: 36px;
  box-shadow: 0 12px 28px -10px rgba(215, 26, 33, 0.8);
}

app-account-profile .profile__role {
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 600;
}

app-account-profile .profile__rows {
  padding: 8px 28px;
}
app-account-profile .profile__rows > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
app-account-profile .profile__rows > div:last-child {
  border-bottom: 0;
}
app-account-profile .profile__rows dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
app-account-profile .profile__rows dt svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}
app-account-profile .profile__rows dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
app-account-profile .profile__rows dd.is-unset {
  color: var(--muted);
}

app-account-profile .profile__lock {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

app-account-profile .profile__form {
  padding: 26px 28px;
}

app-account-profile .profile__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Change Password ── */
app-account-profile .password__info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1px solid var(--tint-edge);
  border-radius: 12px;
  background: var(--tint);
  font-size: 13.5px;
  color: var(--ink-soft);
}
app-account-profile .password__info svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--red);
}

app-account-profile .password__btn {
  width: 100%;
  margin-top: 22px;
  border-radius: 12px;
}
app-account-profile .password__btn[aria-busy=true] {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 760px) {
  app-account-profile .profile {
    grid-template-columns: 1fr;
  }
  app-account-profile .profile__rows {
    padding: 4px 20px;
  }
  app-account-profile .profile__rows > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  app-account-profile .profile__form {
    padding: 22px 20px;
  }
}

/* ════════ <app-account-addresses> ════════ */

app-account-addresses {
  display: block;
}

/* ── the form ── */
app-account-addresses .form {
  margin-bottom: 22px;
  scroll-margin-top: calc(var(--header-h) + 20px);
}

app-account-addresses .form__labels {
  margin-bottom: 18px;
}

app-account-addresses .form__row {
  margin-top: 16px;
}

app-account-addresses .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

app-account-addresses .chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
app-account-addresses .chip svg {
  width: 16px;
  height: 16px;
}
app-account-addresses .chip:hover {
  border-color: var(--ink);
}
app-account-addresses .chip[aria-checked=true] {
  border-color: var(--red);
  background: var(--tint);
  color: var(--red);
}
app-account-addresses .chip:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

app-account-addresses .check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
  cursor: pointer;
}
app-account-addresses .check input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
  cursor: pointer;
}

/* ── State: a searchable list box ── */
app-account-addresses .dd {
  position: relative;
}

app-account-addresses .dd__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 12px 0 13px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14.5px/1 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
app-account-addresses .dd__btn:hover {
  border-color: var(--ink-soft);
}
app-account-addresses .dd__btn:focus-visible,
app-account-addresses .dd__btn[aria-expanded=true] {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 26, 33, 0.12);
}
app-account-addresses .has-error .dd__btn {
  border-color: var(--red);
}
app-account-addresses .dd__btn > svg:first-child {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
app-account-addresses .dd__btn[aria-expanded=true] > svg:first-child {
  color: var(--red);
}

app-account-addresses .dd__value {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
app-account-addresses .dd__value.is-empty {
  color: var(--muted);
}

app-account-addresses .dd__caret {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s;
}
app-account-addresses .dd__btn[aria-expanded=true] .dd__caret {
  transform: rotate(180deg);
}

app-account-addresses .dd__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--edge-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
  animation: ad-dd-in 0.16s ease-out;
}

@keyframes ad-dd-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

app-account-addresses .dd__search {
  position: relative;
  margin-bottom: 6px;
}
app-account-addresses .dd__search svg {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}
/* (beats the account pages' own field styles) */
app-account-addresses .ac-field .dd .dd__search input {
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 14px;
}
app-account-addresses .ac-field .dd .dd__search input:focus {
  background: var(--surface);
}

app-account-addresses .dd__list {
  max-height: 240px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  outline: 0;
  scrollbar-width: thin;
}

app-account-addresses .dd__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
}
app-account-addresses .dd__opt svg {
  flex: none;
  width: 16px;
  height: 16px;
}
app-account-addresses .dd__opt.is-active {
  background: var(--surface-2);
  color: var(--ink);
}
app-account-addresses .dd__opt[aria-selected=true] {
  background: var(--tint);
  color: var(--red);
  font-weight: 600;
}

app-account-addresses .dd__none {
  padding: 14px 10px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  app-account-addresses .ac-field .dd .dd__search input,
  app-account-addresses .dd__btn {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  app-account-addresses .dd__panel {
    animation: none;
  }
}

/* ── the saved ones ── */
app-account-addresses .list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

app-account-addresses .addr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
app-account-addresses .addr.is-default {
  border-color: var(--tint-edge);
  box-shadow: 0 0 0 3px var(--tint);
}
app-account-addresses .addr.is-editing {
  opacity: 0.55;
}

app-account-addresses .addr__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

app-account-addresses .addr__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--cream);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
app-account-addresses .addr__label svg {
  width: 14px;
  height: 14px;
  color: var(--red);
}

app-account-addresses .addr__default {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}

app-account-addresses .addr__name {
  font-size: 15.5px;
}

app-account-addresses .addr__text,
app-account-addresses .addr__phone {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

app-account-addresses .addr__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

app-account-addresses .addr__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
app-account-addresses .addr__btn svg {
  flex: none;
  width: 15px;
  height: 15px;
}
app-account-addresses .addr__btn:hover {
  border-color: var(--red);
  background: var(--tint);
  color: var(--red);
}
app-account-addresses .addr__btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
app-account-addresses .addr__btn.is-danger {
  border-color: var(--tint-edge);
  color: var(--red);
}
app-account-addresses .addr__btn.is-danger:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

app-account-addresses .addr__make {
  margin-left: auto;
}

/* ── My Orders: the orders placed on this device ── */
app-account-orders .olist {
  display: grid;
  gap: 16px;
}
app-account-orders .olist[hidden] {
  display: none;
}
app-account-orders .order {
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
app-account-orders .order:hover {
  border-color: var(--tint-edge);
  box-shadow: 0 22px 48px -30px rgba(23, 19, 18, 0.38);
}

/* the head : the box icon, the order ID, its status */
app-account-orders .order__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}
app-account-orders .order__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tint-edge);
  border-radius: 14px;
  background: var(--tint);
  color: var(--red);
}
app-account-orders .order__icon svg {
  width: 22px;
  height: 22px;
}
app-account-orders .order__id {
  display: grid;
  gap: 2px;
  min-width: 0;
}
app-account-orders .order__id small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
app-account-orders .order__id strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}

/* the status pill, a dot in its colour : amber processing, blue shipped, green delivered, red cancelled, grey returned */
app-account-orders .order__status {
  --tone: #b45309;
  --tone-bg: #fff4e0;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
app-account-orders .order__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
app-account-orders .order__status--shipped {
  --tone: #1d4ed8;
  --tone-bg: #e8efff;
}
app-account-orders .order__status--delivered {
  --tone: var(--ok);
  --tone-bg: var(--ok-bg);
}
app-account-orders .order__status--cancelled {
  --tone: var(--red);
  --tone-bg: var(--tint);
}
app-account-orders .order__status--returned {
  --tone: var(--muted);
  --tone-bg: var(--surface-2);
}
:root[data-theme=dark] app-account-orders .order__status {
  --tone: #fbbf5c;
  --tone-bg: rgba(251, 191, 92, 0.14);
}
:root[data-theme=dark] app-account-orders .order__status--shipped {
  --tone: #8fb2ff;
  --tone-bg: rgba(96, 140, 255, 0.16);
}
:root[data-theme=dark] app-account-orders .order__status--delivered {
  --tone: var(--ok);
  --tone-bg: var(--ok-bg);
}
:root[data-theme=dark] app-account-orders .order__status--cancelled {
  --tone: var(--tint-ink);
  --tone-bg: var(--tint);
}
:root[data-theme=dark] app-account-orders .order__status--returned {
  --tone: var(--muted);
  --tone-bg: var(--surface-2);
}

/* the facts : placed on, items, payment, total — each with its icon, on a soft band */
app-account-orders .order__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
app-account-orders .order__fact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 22px;
}
app-account-orders .order__fact + .order__fact {
  border-left: 1px solid var(--line);
}
app-account-orders .order__fact > svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
app-account-orders .order__fact > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
app-account-orders .order__fact small {
  font-size: 11.5px;
  color: var(--muted);
}
app-account-orders .order__fact strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
app-account-orders .order__fact--total > svg,
app-account-orders .order__fact--total strong {
  color: var(--red);
}
app-account-orders .order__fact--total strong {
  font-size: 15.5px;
  font-weight: 800;
}

/* the chairs ordered */
app-account-orders .order__lines {
  display: grid;
  gap: 14px;
  padding: 18px 22px;
}
app-account-orders .order__lines li {
  display: flex;
  align-items: center;
  gap: 16px;
}
app-account-orders .order__lines li + li {
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
app-account-orders .order__lines img {
  flex: none;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--photo-well);
  object-fit: cover;
}
app-account-orders .order__item {
  display: grid;
  flex: 1;
  gap: 7px;
  min-width: 0;
}
app-account-orders .order__item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s;
}
app-account-orders .order__item a:hover strong {
  color: var(--red);
}
app-account-orders .order__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
app-account-orders .order__specs em {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}
app-account-orders .order__price {
  display: grid;
  flex: none;
  gap: 3px;
  justify-items: end;
  text-align: right;
}
app-account-orders .order__price b {
  font-size: 16px;
  font-weight: 800;
}
app-account-orders .order__price small {
  font-size: 12.5px;
  color: var(--muted);
}

/* the foot : where it goes, and what can be done with it */
app-account-orders .order__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
app-account-orders .order__ship {
  display: flex;
  flex: 1 1 300px;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
app-account-orders .order__ship-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--red);
}
app-account-orders .order__ship-icon svg {
  width: 18px;
  height: 18px;
}
app-account-orders .order__ship-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
app-account-orders .order__ship-text small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
app-account-orders .order__ship-text strong {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-transform: capitalize;
}
app-account-orders .order__ship-text strong em {
  padding: 1px 8px;
  border: 1px solid var(--tint-edge);
  border-radius: 999px;
  background: var(--tint);
  color: var(--red);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-transform: none;
}
app-account-orders .order__ship-text > span {
  overflow-wrap: anywhere;
}

/* Track Order, Invoice : outlined ; View Details : the dark one */
app-account-orders .order__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
app-account-orders .order__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border: 1.5px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
app-account-orders .order__btn svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--red);
  transition: color 0.2s, transform 0.2s;
}
app-account-orders .order__btn:hover {
  border-color: var(--red);
  color: var(--red);
}
app-account-orders .order__btn--main {
  border-color: var(--dark-chip);
  background: var(--dark-chip);
  color: #fff;
}
app-account-orders .order__btn--main svg {
  color: currentColor;
}
app-account-orders .order__btn--main:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
app-account-orders .order__btn--main:hover svg {
  transform: translateX(3px);
}
app-account-orders .order__btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  app-account-orders .order__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  app-account-orders .order__fact:nth-child(3) {
    border-left: 0;
  }
  app-account-orders .order__fact:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  app-account-orders .order__head,
  app-account-orders .order__lines,
  app-account-orders .order__foot {
    padding-inline: 16px;
  }
  app-account-orders .order__fact {
    padding: 12px 16px;
  }
  app-account-orders .order__icon {
    width: 40px;
    height: 40px;
  }
  app-account-orders .order__lines img {
    width: 60px;
    height: 60px;
  }
  app-account-orders .order__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  app-account-orders .order__btn {
    justify-content: center;
  }
  app-account-orders .order__btn--main {
    grid-column: 1/-1;
  }
}
app-account-orders [data-orders-empty][hidden] {
  display: none;
}

/* ════════ <app-account-returns> ════════ */

app-account-returns {
  display: block;
}
app-account-returns .rlist {
  display: grid;
  gap: 16px;
}
app-account-returns .ret {
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
app-account-returns .ret:hover {
  border-color: var(--tint-edge);
  box-shadow: 0 22px 48px -30px rgba(23, 19, 18, 0.38);
}

/* the head : the return icon, the return ID, its status */
app-account-returns .ret__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
}
app-account-returns .ret__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--tint-edge);
  border-radius: 14px;
  background: var(--tint);
  color: var(--red);
}
app-account-returns .ret__icon svg {
  width: 22px;
  height: 22px;
}
app-account-returns .ret__id {
  display: grid;
  gap: 2px;
  min-width: 0;
}
app-account-returns .ret__id small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
app-account-returns .ret__id strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  overflow-wrap: anywhere;
}
app-account-returns .ret__status {
  --tone: #b45309;
  --tone-bg: #fff4e0;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
app-account-returns .ret__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}
:root[data-theme=dark] app-account-returns .ret__status {
  --tone: #fbbf5c;
  --tone-bg: rgba(251, 191, 92, 0.14);
}

/* the facts : requested on, order, reason, refund — each with its icon, on a soft band */
app-account-returns .ret__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}
app-account-returns .ret__fact {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 22px;
}
app-account-returns .ret__fact + .ret__fact {
  border-left: 1px solid var(--line);
}
app-account-returns .ret__fact > svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
}
app-account-returns .ret__fact > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
app-account-returns .ret__fact small {
  font-size: 11.5px;
  color: var(--muted);
}
app-account-returns .ret__fact strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
app-account-returns .ret__fact--total > svg,
app-account-returns .ret__fact--total strong {
  color: var(--red);
}
app-account-returns .ret__fact--total strong {
  font-size: 15.5px;
  font-weight: 800;
}

/* the chair sent back */
app-account-returns .ret__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
app-account-returns .ret__item img {
  flex: none;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--photo-well);
  object-fit: cover;
}
app-account-returns .ret__name {
  display: grid;
  flex: 1;
  gap: 7px;
  min-width: 0;
}
app-account-returns .ret__name strong {
  font-size: 15px;
  font-weight: 700;
}
app-account-returns .ret__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
app-account-returns .ret__specs em {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  color: var(--ink-soft);
}
app-account-returns .ret__price {
  display: grid;
  flex: none;
  gap: 3px;
  justify-items: end;
  text-align: right;
}
app-account-returns .ret__price b {
  font-size: 16px;
  font-weight: 800;
}
app-account-returns .ret__price small {
  font-size: 12.5px;
  color: var(--muted);
}

/* the steps : requested, picked up, quality check, refunded — a red line up to the step under way */
app-account-returns .ret__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 22px;
  padding: 20px 0 18px;
  border-top: 1px dashed var(--line);
  list-style: none;
}
app-account-returns .ret__step {
  /* --dot : the circle's size ; the line stops --gap short of each circle */
  --dot: 32px;
  --gap: 8px;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 0 4px;
  text-align: center;
}
app-account-returns .ret__step::before {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  right: calc(50% + var(--dot) / 2 + var(--gap));
  left: calc(-50% + var(--dot) / 2 + var(--gap));
  height: 2px;
  border-radius: 2px;
  background: var(--edge-strong);
}
app-account-returns .ret__step:first-child::before {
  display: none;
}
app-account-returns .ret__step.is-done::before,
app-account-returns .ret__step.is-now::before {
  background: var(--red);
}
app-account-returns .ret__dot {
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: var(--dot);
  height: var(--dot);
  margin-bottom: 8px;
  border: 2px solid var(--edge-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}
app-account-returns .ret__dot svg {
  display: block;
  width: 18px;
  height: 18px;
}
app-account-returns .ret__dot i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}
app-account-returns .is-done .ret__dot {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
app-account-returns .is-now .ret__dot {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 4px var(--tint);
}
app-account-returns .is-now .ret__dot i {
  animation: app-account-returns--pulse 1.6s ease-in-out infinite;
}
app-account-returns .ret__step b {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
app-account-returns .ret__step.is-next b {
  color: var(--muted);
}
app-account-returns .ret__step small {
  font-size: 12px;
  color: var(--muted);
}
app-account-returns .ret__step.is-now small {
  font-weight: 600;
  color: var(--red);
}
@keyframes app-account-returns--pulse {
  50% {
    transform: scale(0.55);
    opacity: 0.6;
  }
}
@media (prefers-reduced-motion: reduce) {
  app-account-returns .is-now .ret__dot i {
    animation: none;
  }
}

/* the foot : where the money goes, and what can be done */
app-account-returns .ret__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}
app-account-returns .ret__to {
  display: flex;
  flex: 1 1 300px;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
app-account-returns .ret__to-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--red);
}
app-account-returns .ret__to-icon svg {
  width: 18px;
  height: 18px;
}
app-account-returns .ret__to-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
app-account-returns .ret__to-text small {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
app-account-returns .ret__to-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
app-account-returns .ret__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
app-account-returns .ret__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border: 1.5px solid var(--edge-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
app-account-returns .ret__btn svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--red);
  transition: color 0.2s;
}
app-account-returns .ret__btn:hover {
  border-color: var(--red);
  color: var(--red);
}
app-account-returns .ret__btn--main {
  border-color: var(--dark-chip);
  background: var(--dark-chip);
  color: #fff;
}
app-account-returns .ret__btn--main svg {
  color: currentColor;
}
app-account-returns .ret__btn--main:hover {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
app-account-returns .ret__btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  app-account-returns .ret__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  app-account-returns .ret__fact:nth-child(3) {
    border-left: 0;
  }
  app-account-returns .ret__fact:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  app-account-returns .ret__head,
  app-account-returns .ret__item,
  app-account-returns .ret__foot {
    padding-inline: 16px;
  }
  app-account-returns .ret__steps {
    margin-inline: 16px;
  }
  app-account-returns .ret__fact {
    padding: 12px 16px;
  }
  app-account-returns .ret__head {
    flex-wrap: wrap;
  }
  app-account-returns .ret__status {
    margin-left: 0;
  }
  app-account-returns .ret__icon {
    width: 40px;
    height: 40px;
  }
  app-account-returns .ret__item img {
    width: 60px;
    height: 60px;
  }
  app-account-returns .ret__step {
    --dot: 28px;
    --gap: 5px;
  }
  app-account-returns .ret__dot svg {
    width: 16px;
    height: 16px;
  }
  app-account-returns .ret__step b {
    font-size: 12px;
  }
  app-account-returns .ret__step small {
    font-size: 11px;
  }
  app-account-returns .ret__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  app-account-returns .ret__btn {
    justify-content: center;
  }
}

/* ════════ My Profile : the way to the service requests ════════ */
app-account-layout .acct__main .profile-service {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border-color: var(--tint-edge);
  background: linear-gradient(120deg, var(--tint) 0%, var(--surface) 60%);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
app-account-layout .acct__main .profile-service:hover {
  border-color: var(--red);
}
app-account-layout .acct__main .profile-service__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--red);
  box-shadow: 0 0 0 1px var(--tint-edge);
}
app-account-layout .acct__main .profile-service__icon svg {
  width: 22px;
  height: 22px;
}
app-account-layout .acct__main .profile-service__text {
  display: grid;
  flex: 1;
  gap: 3px;
}
app-account-layout .acct__main .profile-service__text strong {
  font-size: 15.5px;
}
app-account-layout .acct__main .profile-service__text small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
app-account-layout .acct__main .profile-service__btn {
  flex: none;
}
@media (max-width: 640px) {
  app-account-layout .acct__main .profile-service {
    flex-wrap: wrap;
  }
  app-account-layout .acct__main .profile-service__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ════════ <app-account-service> : raise a service request, and follow them ════════ */
app-account-service {
  display: grid;
  gap: 18px;
}
app-account-service .svc-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
app-account-service .svc-types legend {
  margin-bottom: 10px;
  padding: 0;
}
app-account-service .svc-type {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
app-account-service .svc-type:hover {
  border-color: var(--edge-strong);
}
app-account-service .svc-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
app-account-service .svc-type:has(input:checked) {
  border-color: var(--red);
  background: var(--tint);
  box-shadow: 0 0 0 1px var(--red) inset;
}
app-account-service .svc-type:has(input:focus-visible) {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
app-account-service .svc-type__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tint);
  color: var(--red);
}
app-account-service .svc-type__icon svg {
  width: 18px;
  height: 18px;
}
app-account-service .svc-type__text {
  display: grid;
  gap: 2px;
}
app-account-service .svc-type__text strong {
  font-size: 14px;
}
app-account-service .svc-type__text small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
app-account-service .ac-field textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 500 14.5px/1.55 var(--font-body);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
app-account-service .ac-field textarea:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 26, 33, 0.12);
}
app-account-service .ac-field.has-error textarea {
  border-color: var(--red);
}
app-account-service .svc-note {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
app-account-service .svc-note svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--red);
}
app-account-service .svc-note a {
  color: var(--red);
  font-weight: 600;
}
app-account-service .svc-fail {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--red);
  font-size: 13.5px;
  font-weight: 600;
}
app-account-service [data-svc-send] svg {
  width: 16px;
  height: 16px;
}
app-account-service [data-svc-send][aria-busy=true] {
  opacity: 0.7;
  pointer-events: none;
}
app-account-service .svc-done {
  display: flex;
  align-items: center;
  gap: 16px;
  border-color: var(--ok);
}
app-account-service .svc-done[hidden] {
  display: none;
}
app-account-service .svc-done__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}
app-account-service .svc-done__icon svg {
  width: 22px;
  height: 22px;
}
app-account-service .svc-done h3 {
  font-size: 17px;
  font-weight: 700;
}
app-account-service .svc-done p {
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
app-account-service .svc-done .btn {
  margin-left: auto;
  flex: none;
}
app-account-service .svc-list__title {
  margin: 8px 0 12px;
  font-size: 17px;
  font-weight: 700;
}
app-account-service .svc-reqs {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
app-account-service .svc-req {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
}
app-account-service .svc-req__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--red);
}
app-account-service .svc-req__icon svg {
  width: 20px;
  height: 20px;
}
app-account-service .svc-req__body {
  display: grid;
  flex: 1;
  gap: 4px;
  min-width: 0;
}
app-account-service .svc-req__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
app-account-service .svc-req__top strong {
  font-size: 15px;
}
app-account-service .svc-req__meta {
  font-size: 12.5px;
  color: var(--muted);
}
app-account-service .svc-req__text {
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
app-account-service .svc-req__resolution {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 13px;
}
app-account-service .svc-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
app-account-service .svc-chip--new {
  background: var(--tint);
  color: var(--red);
}
app-account-service .svc-chip--busy {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
app-account-service .svc-chip--wait {
  background: var(--surface-2);
  color: var(--muted);
}
app-account-service .svc-chip--done {
  background: var(--ok-bg);
  color: var(--ok);
}
app-account-service .svc-none {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  app-account-service .svc-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  app-account-service .svc-types {
    grid-template-columns: minmax(0, 1fr);
  }
  app-account-service .svc-done {
    flex-wrap: wrap;
  }
  app-account-service .svc-done .btn {
    margin-left: 0;
  }
}
