body { margin: 0; font-family: system-ui, sans-serif; }
.account-heading, .account-list li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.account-heading { margin-bottom: 1rem; }
.account-heading h1, .account-heading p { margin: 0; }
.account-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 1rem; }
.account-nav { display: flex; flex-direction: column; gap: .3rem; padding: .5rem; }
.account-nav button { min-height: 44px; padding: .55rem; border: 0; border-radius: .4rem; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.account-nav [aria-current] { background: #eaf4ff; color: var(--blue); font-weight: 650; }
.account-content h2 { font-size: 1.2rem; margin-top: .35rem; }
.account-content h3 { font-size: 1rem; }
.account-list, .account-addresses { list-style: none; margin: 0; padding: 0; }
.account-list li { padding: .8rem 0; border-top: 1px solid var(--border); }
.account-list small, .account-facts dt { display: block; color: #47596c; }
.account-list li > :first-child, .account-content h2, .account-facts dd { overflow-wrap: anywhere; }
.account-list li button, .account-list li > strong { flex-shrink: 0; }
.account-addresses, .account-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .7rem; }
.account-addresses li, .account-facts div { background: #f5f8fb; padding: .75rem; border-radius: .45rem; }
.account-facts dd { margin: 0; }
.account-content address { font-style: normal; }
.account-status { color: #174d81; background: #e8f2ff; border-radius: .4rem; padding: .3rem .55rem; font-weight: 650; }
.account-page :focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 650px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
  .account-nav button { flex: 1 1 auto; text-align: center; font-size: .875rem; }
}

.account-order-detail { display: grid; gap: .85rem; margin-top: .8rem; }
.account-order-heading { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.account-order-heading h2, .account-order-card h3 { margin: 0; }
.account-order-card { min-width: 0; border: 1px solid var(--border); padding: .9rem; border-radius: .65rem; }
.account-order-card p { margin-block: .45rem; }
.account-order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.account-demo { margin: 0; color: #49576b; font-size: .875rem; }
.account-examples { margin-bottom: 1rem; background: #f7faff; }
.account-tracking-mode { font-weight: 650; color: var(--blue); }
.account-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 1rem 0; }
.account-timeline li { position: relative; text-align: center; padding-inline: .2rem; font-size: .875rem; }
.account-timeline li + li::before { content: ""; position: absolute; top: .85rem; right: 50%; width: 100%; height: 2px; background: #c8d0da; }
.account-timeline li > span { position: relative; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; margin: 0 auto .35rem; border-radius: 50%; background: #dce2e9; color: #fff; }
.account-timeline li.done::before { background: #216349; }
.account-timeline li.done > span { background: #216349; }
.account-timeline [aria-current] { color: var(--blue); font-weight: 700; }
.account-timeline li[aria-current]:not(.done)::before { background: #17355b; }
.account-timeline [aria-current]:not(.done) > span { background: #17355b; border: 4px solid #17355b; box-shadow: inset 0 0 0 2px #fff; }
.account-order-estimate { background: #edf3fa; color: #17355b; padding: .75rem; border-radius: .45rem; }
.account-order-estimate p { margin: .25rem 0 0; }
.account-order-action summary { min-height: 44px; box-sizing: border-box; padding: .6rem .75rem; background: var(--blue); color: white; border-radius: .45rem; cursor: pointer; font-weight: 600; }
.account-order-item { display: flex; align-items: center; gap: .55rem; }
.account-order-item img { object-fit: contain; flex-shrink: 0; }
@media (max-width: 540px) {
  .account-order-grid { grid-template-columns: minmax(0, 1fr); }
  .account-timeline { grid-template-columns: minmax(0, 1fr); gap: .65rem; }
  .account-timeline li { display: flex; align-items: center; text-align: left; gap: .5rem; }
  .account-timeline li > span { margin: 0; flex: 0 0 1.75rem; }
  .account-timeline li + li::before { top: -.7rem; bottom: auto; right: auto; left: calc(.2rem + .85rem); width: 2px; height: .8rem; }
}
.account-order-photo { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid var(--border); border-radius: .4rem; background: #f7f9fb; color: #47596c; font-size: .7rem; }
.account-order-photo img { display: block; width: 100%; height: 100%; }

.account-orders { display: grid; gap: .65rem; margin: 1rem 0; padding: 0; list-style: none; }
.account-order { min-width: 0; border: 1px solid var(--border); border-radius: .65rem; }
.account-order-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: .85rem; padding: .85rem 1rem; cursor: pointer; list-style: none; border-radius: .65rem; }
.account-order-summary::-webkit-details-marker { display: none; }
.account-order-summary:hover { background: #f4f8fc; }
.account-order-summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.account-order-summary::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.account-order details[open] > summary::after { transform: rotate(225deg); }
.account-order-identity { display: grid; gap: .2rem; overflow-wrap: anywhere; }
.account-order-identity small { font-size: .875rem; color: #49576b; }
.account-order-amount { text-align: right; white-space: nowrap; }
.account-order-status { justify-self: start; border-radius: 1rem; padding: .2rem .6rem; font-size: .8125rem; font-weight: 700; background: #e9eef4; color: #36465a; }
.account-order-status[data-status="received"] { background: #e8f2ff; color: #174d81; }
.account-order-status[data-status="processed"] { background: #e5f5ed; color: #185e3d; }
.account-order-status[data-status="rejected"] { background: #fcebee; color: #922c3c; }
.account-loading-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.account-order-skeleton, .account-order-skeleton:hover { cursor: default; background: #fff; }
.account-order-skeleton::after { border: 0; border-radius: 50%; background: #e6edf4; transform: none; }
.account-skeleton-bar { display: block; height: .85rem; border-radius: .4rem; background: #e6edf4; }
.account-skeleton-number { width: min(6.5rem, 100%); height: 1rem; }
.account-skeleton-date { width: min(9rem, 100%); margin-top: .2rem; }
.account-skeleton-status { width: 5.5rem; height: 1.4rem; border-radius: 1rem; }
.account-skeleton-amount { width: 4rem; justify-self: end; }
.account-name-skeleton { width: 9.5rem; max-width: 100%; height: 1rem; margin-top: .35rem; }
.account-addresses-skeleton li { display: grid; gap: .5rem; min-height: 5.5rem; align-content: center; }
.account-addresses-skeleton .account-skeleton-bar:nth-child(1) { width: 43%; }
.account-addresses-skeleton .account-skeleton-bar:nth-child(2) { width: 82%; }
.account-addresses-skeleton .account-skeleton-bar:nth-child(3) { width: 62%; }
@media (prefers-reduced-motion: no-preference) {
  .account-name-skeleton, .account-order-skeleton .account-skeleton-bar, .account-addresses-skeleton .account-skeleton-bar { animation: account-skeleton-pulse 1.5s ease-in-out infinite alternate; }
}
@keyframes account-skeleton-pulse { to { opacity: .55; } }

.account-order-info { padding: 1rem; border-top: 1px solid var(--border); background: #f7f9fc; border-radius: 0 0 .65rem .65rem; }
.account-order-info dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin: 0; }
.account-order-info dt { color: #49576b; font-size: .875rem; }
.account-order-info dd { margin: .2rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.account-order-info button { margin-top: .85rem; }
@media (max-width: 600px) {
  .account-order-summary { grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem; }
  .account-order-identity { grid-column: 1 / -1; }
}


.account-order-detail > .rey-payment-confirmed { margin: 0; }
.account-order-card .rey-checkout-totals { margin-top: .45rem; }
.account-order-card .rey-checkout-totals div:last-child {
  border: 0;
  border-radius: .4rem;
  background: #e8f2ff;
  color: #174d81;
  padding: .6rem .7rem;
}
.account-order-item a { color: #174d81; text-underline-offset: .15em; }

.account-layout { grid-template-columns: 225px minmax(0, 1fr); }
.account-nav button {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-inline: .7rem;
  border-inline-start: 3px solid transparent;
}
.account-nav button:hover { background: #f3f6f8; }
.account-nav [aria-current] { background: #eaf5ee; color: #216349; border-inline-start-color: #216349; }
.account-nav svg, .account-reorder svg, .account-shortcuts svg { flex: none; }
.account-nav .account-logout { margin-top: .35rem; border-top: 1px solid var(--border); }
.account-shortcuts { display: flex; flex-wrap: wrap; gap: .7rem; }
.account-shortcuts button { display: flex; align-items: center; gap: .5rem; }
.account-status-completed { background: #eaf5ee; color: #216349; }
.account-reorder { display: grid; gap: .3rem; margin-inline-start: auto; }
.account-reorder-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid #216349;
  border-radius: .45rem;
  background: #216349;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.account-reorder-button:hover { background: #184d38; }
.account-reorder-button:disabled { opacity: .75; cursor: wait; }
.account-reorder small { color: #47596c; text-align: center; }
.account-reorder-error { background: #fdf3e8; color: #743a13; padding: .8rem; border-radius: .45rem; }
@media (max-width: 740px) {
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  .account-nav { flex-flow: row wrap; }
  .account-nav button { flex: 1 1 auto; font-size: .875rem; }
  .account-nav .account-logout { margin-top: 0; border-top: 0; }
  .account-reorder { width: 100%; margin: .35rem 0 0; }
}
