/* Account navigation */
.nd-account-nav { min-width: 0; }
.nd-account-nav .nd-account-nav__group {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nd-account-nav__more {
  margin-top: 5px;
}
.nd-account-nav__more > summary:hover { color: #111; }
.nd-account-nav__more > .nd-account-nav__group { margin-left: 12px; }
.nd-account-nav__group li { margin: 0; padding: 0; }
.nd-account-nav .nd-account-nav__group a {
  display: block;
  padding: 2px 0;
  color: #707070;
  font-size: 20px;
  font-weight: 450;
  line-height: 26px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.nd-account-nav .nd-account-nav__group a:hover { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.nd-account-nav .nd-account-nav__group a[aria-current="page"] {
  color: #111;
  font-weight: 550;
}
.nd-account-nav__mobile { display: none; }
.nd-account-nav__mobile > summary,
.nd-account-nav__more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  min-height: 46px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
}
.nd-account-nav__more > summary { justify-content: flex-start; gap: 10px; padding: 2px 0; min-height: 30px; color: #707070; font-size: 16px; }
.nd-account-nav summary::-webkit-details-marker { display: none; }
.nd-account-nav summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.nd-account-nav__mobile[open] > summary { border-bottom: 1px solid #e4e1df; }
.nd-account-nav details[open] > summary::after { transform: rotate(225deg); }
.nd-account-nav a:focus-visible,
.nd-account-nav summary:focus-visible,
.nd-account .nd-order-preview:focus-visible,
.nd-account .nd-account-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Customer profile */
.nd-profile { display: grid; gap: 16px; }
.nd-account .nd-profile__heading {
  display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 14px;
}
.nd-account #content .nd-profile__heading h1,
.nd-account #content .nd-profile__heading h2 {
  min-width: 0; margin: 0; color: #121212; font-family: inherit;
  font-size: 16px; font-weight: 550; letter-spacing: normal; line-height: 1.45; text-transform: none;
}
.nd-profile > section { margin-top: 7px; }
.nd-profile > section > .nd-profile__heading { margin-bottom: 15px; }
.nd-profile .nd-profile__button {
  display: inline-flex; flex: none; min-height: 38px; align-items: center; justify-content: center;
  padding: 7px 11px; border: 1px solid #d7d7d7; border-radius: 12px; background: #fff;
  color: #151515; text-decoration: none; font: inherit; font-size: 14px; line-height: 1.4;
}
.nd-profile .nd-profile__button:hover { background: #f7f7f7; }
.nd-profile .nd-profile__card {
  margin: 0; padding: 16px; border: 1px solid #e1e1e1; border-radius: 16px;
  box-shadow: 0 3px 14px rgba(0,0,0,.065); background: #fff; color: #171717;
  font-size: 15px; line-height: 1.48;
}
.nd-profile__email, .nd-profile__empty, .nd-profile__addresses li { display: flex; align-items: center; gap: 16px; }
.nd-profile__email { justify-content: space-between; flex-wrap: wrap; }
.nd-profile__email dt, .nd-profile__empty { margin: 0; color: #676767; font-weight: 400; }
.nd-profile__email dd, .nd-profile__addresses address { margin: 0; overflow-wrap: anywhere; }
.nd-profile__pin {
  display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center;
  border-radius: 10px; background: #f5f5f5; color: #171717; font-size: 18px;
}
.nd-profile__addresses { margin: 0; padding: 0; list-style: none; }
.nd-profile__addresses li + li { padding-top: 14px; margin-top: 14px; border-top: 1px solid #e5e5e5; }
.nd-profile__addresses address { flex: 1 1 auto; font-style: normal; }
.nd-profile .nd-profile__switch {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px;
  padding: 0; border: 0; background: #fff; color: inherit; text-align: left; font: inherit; cursor: pointer;
}
.nd-profile__switch .fa { color: #656565; }
.nd-profile__toggle {
  display: inline-flex; align-items: center; flex: 0 0 40px; height: 24px; margin-left: auto;
  padding: 3px; border-radius: 20px; background: #858585; color: #111;
}
.nd-profile__toggle::after {
  content: ''; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: white;
}
.nd-profile__switch[aria-checked="true"] .nd-profile__toggle { justify-content: flex-end; background: #121212; }
.nd-profile__switch[aria-checked="true"] .nd-profile__toggle::after { content: '✓'; font-size: 12px; }
.nd-profile .nd-profile__logout { justify-self: start; min-height: 44px; margin-top: 14px; padding-inline: 14px; }
.nd-profile__payment-links { list-style: none; }
@media (max-width: 480px) {
  .nd-profile__addresses li { flex-wrap: wrap; align-items: flex-start; }
  .nd-profile__addresses address { flex-basis: calc(100% - 56px); }
  .nd-profile__addresses li .nd-profile__button { margin-left: 56px; }
}

/* Account overview and orders */
.nd-account .nd-account-overview,
.nd-account .nd-order-detail,
.nd-account .nd-order-list {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nd-account .nd-account-card {
  min-width: 0;
  margin: 0;
  padding: clamp(18px, 2.7vw, 32px);
  border: 1px solid #dfdddb;
  border-radius: 14px;
  background: #fff;
  overflow-wrap: anywhere;
}
.nd-account .nd-account-card__heading,
.nd-account .nd-order-line-total,
.nd-account .nd-order-history li > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 18px;
  flex-wrap: wrap;
}
.nd-account .nd-account-card h2,
.nd-account .nd-account-card h3 {
  margin: 0;
  padding: 0;
  font-family: inherit;
  text-transform: none;
  letter-spacing: -.025em;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.3;
}
.nd-account .nd-account-card h3 { font-size: 16px; font-weight: 600; }
.nd-account .nd-account-card h2 a { color: inherit; text-decoration: none; }
.nd-account .nd-account-card h2 a:hover { text-decoration: underline; }
.nd-account .nd-account-card p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
}
.nd-account .nd-account-link {
  display: inline-block;
  width: fit-content;
  color: #191817;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nd-account .nd-account-link:hover { text-decoration-thickness: 2px; }
.nd-account .nd-account-muted,
.nd-account .nd-account-identity span,
.nd-account .nd-order-preview small,
.nd-account .nd-order-history small { color: #615d59; }
.nd-account .nd-account-identity,
.nd-account .nd-order-preview {
  display: flex;
  gap: 4px;
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
}
.nd-account .nd-account-identity { flex-direction: column; align-items: start; }
.nd-account .nd-order-preview {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 22px;
  color: #171615;
  text-decoration: none;
}
.nd-account .nd-order-preview strong,
.nd-account .nd-order-preview small { display: block; }
.nd-account .nd-order-preview small { margin-top: 4px; font-size: 14px; }
.nd-account .nd-order-preview:hover strong { text-decoration: underline; }
.nd-account .nd-order-status {
  display: inline-block;
  max-width: 100%;
  border-radius: 100px;
  padding: 5px 12px;
  color: #2d2a28;
  background: #f2f0ee;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.nd-account .nd-order-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem),1fr));
  gap: 15px;
  margin: 22px 0 0;
}
.nd-account .nd-order-facts dt,
.nd-account .nd-order-history small {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
  color: #615d59;
}
.nd-account .nd-order-facts dd { margin: 4px 0 0; font-size: 15px; }
.nd-account .nd-account-actions,
.nd-account .nd-account-inline-links {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.nd-account .nd-account-empty p { margin: 0 0 12px; }
.nd-account .nd-order-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
}
.nd-account .nd-order-shipping {
  font-size: 15px;
  line-height: 1.6;
}
.nd-account .nd-order-shipping b { font-weight: 500; }
.nd-account .nd-order-facts + .nd-order-shipping:not(:empty) { margin-top: 12px; }
.nd-account .nd-order-products,
.nd-account .nd-order-history {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.nd-account .nd-order-products > li,
.nd-account .nd-order-history > li { padding: 14px 0; border-top: 1px solid #e4e1df; }
.nd-account .nd-order-products > li:last-child,
.nd-account .nd-order-history > li:last-child { padding-bottom: 0; }
.nd-account .nd-order-products p,
.nd-account .nd-order-history p { margin: 4px 0 0; }
.nd-account .nd-order-line-total { margin-top: 10px; font-size: 15px; }
.nd-account .nd-order-products .nd-account-actions { margin-top: 8px; }
.nd-account .nd-order-totals {
  margin: 18px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #e4e1df;
}
.nd-account .nd-order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
  font-size: 15px;
}
.nd-account .nd-order-totals dt { font-weight: 400; }
.nd-account .nd-order-totals dd { margin: 0; text-align: right; }
.nd-account .nd-order-totals > div:last-child { font-weight: 600; }
.nd-account .nd-order-totals > div:last-child dt { font-weight: inherit; }
.nd-account .nd-order-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr));
  gap: 16px;
}
@media (max-width: 767px) {
  .nd-account-nav__desktop { display: none; }
  .nd-account-nav__mobile {
    display: block;
    border: 1px solid #dfdddb;
    border-radius: 11px;
    background: #fff;
  }
  .nd-account-nav__mobile .nd-account-nav__group { margin: 0 10px; }
  .nd-account-nav__mobile .nd-account-nav__more { margin: 0 10px; }
  .nd-account-nav__mobile .nd-account-nav__more > summary { min-height: 44px; }
  .nd-account-nav__mobile .nd-account-nav__group a { min-height: 44px; padding: 10px 4px; font-size: 17px; line-height: 24px; }
  .nd-account .nd-order-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Signed-in order history */
.nd-account .nd-order-visually-hidden,
.nd-account .nd-order-welcome__pause {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.nd-account .nd-order-reward,
.nd-account .nd-order-welcome {
  border: 1px solid #e4e4e4;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 2px 15px rgba(0,0,0,.075);
}
.nd-account .nd-order-reward {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 0 0 22px;
  color: #101010;
}
.nd-order-reward__icon { align-self: start; margin-top: 3px; }
.nd-order-reward__copy { display: grid; gap: 5px; font-size: 14px; line-height: 1.4; }
.nd-order-reward__copy strong { font-size: 16px; font-weight: 550; }
.nd-account .nd-order-reward__link,
.nd-account .nd-order-welcome__shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  color: #111;
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.nd-account .nd-order-reward__link { min-height: 46px; }
.nd-account .nd-order-reward__link:hover { background: #f6f6f6; }
.nd-account .nd-order-welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  min-height: 292px;
  overflow: hidden;
}
.nd-account .nd-order-welcome--text { min-height: 0; }
.nd-order-welcome__intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 31px 32px 0;
}
.nd-order-welcome--text .nd-order-welcome__intro { padding-bottom: 31px; }
.nd-account .nd-order-welcome__intro h2,
.nd-account .nd-order-welcome__intro p {
  margin: 0;
  padding: 0;
  color: #111;
  font-family: inherit;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-transform: none;
}
.nd-account .nd-order-welcome__intro p { color: #686868; font-weight: 400; }
.nd-account .nd-order-welcome__shop {
  border-color: #000;
  color: #fff;
  background: #000;
  font-weight: 600;
}
.nd-account .nd-order-welcome__shop:hover { background: #353535; border-color: #353535; }
.nd-order-welcome__window { align-self: stretch; height: 160px; overflow: hidden; }
.nd-order-welcome__track,
.nd-order-welcome__group {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
}
.nd-order-welcome__track--moving { animation: nd-order-photos 42s linear infinite; }
.nd-order-welcome__item {
  --angle: -12deg;
  --lift: 1px;
  display: grid;
  place-items: center;
  width: 142px;
  height: 140px;
}
.nd-order-welcome__item:nth-child(3n) { --angle: 5deg; --lift: -9px; }
.nd-order-welcome__item:nth-child(4n) { --angle: 11deg; --lift: 7px; }
.nd-order-welcome__item:nth-child(5n) { --angle: 16deg; --lift: 28px; }
.nd-order-welcome__item img {
  display: block;
  width: 126px;
  height: 126px;
  max-width: 100%;
  object-fit: contain;
  transform: translateY(var(--lift)) rotate(var(--angle));
}
.nd-order-welcome__track--moving img { animation: nd-order-tilt 7s ease-in-out infinite alternate; }
.nd-order-welcome__item:nth-child(even) img { animation-delay: -4s; }
@keyframes nd-order-photos { to { transform: translateX(-50%); } }
@keyframes nd-order-tilt {
  to { transform: translateY(calc(var(--lift) + 5px)) rotate(calc(var(--angle) + 7deg)); }
}
.nd-order-welcome__pause-icon {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 50%;
  background: #fff;
  color: #181818;
  opacity: 0;
  cursor: pointer;
}
.nd-order-welcome:hover .nd-order-welcome__pause-icon,
.nd-order-welcome__pause:focus-visible + label,
.nd-order-welcome__pause:checked + label { opacity: 1; }
.nd-order-welcome__pause:focus-visible + label { outline: 2px solid currentColor; outline-offset: 2px; }
.nd-order-welcome__pause-icon::before {
  content: "";
  box-sizing: border-box;
  width: 8px;
  height: 10px;
  border-inline: 3px solid currentColor;
}
.nd-order-welcome__pause:checked + label::before {
  width: 0; height: 0;
  border: solid transparent;
  border-width: 5px 0 5px 8px;
  border-left-color: currentColor;
}
.nd-order-welcome__pause:checked ~ .nd-order-welcome__window :is(.nd-order-welcome__track,img) { animation-play-state: paused; }
@media (hover: none) {
  .nd-order-welcome__pause-icon { opacity: 1; }
}
@media (max-width: 600px) {
  .nd-account .nd-order-reward { grid-template-columns: 18px minmax(0,1fr); }
  .nd-account .nd-order-reward__link { grid-column: 2; min-height: 40px; }
  .nd-account .nd-order-welcome { min-height: 265px; gap: 12px; }
  .nd-account .nd-order-welcome--text { min-height: 0; }
  .nd-order-welcome__intro { padding: 20px 18px 0; }
  .nd-order-welcome--text .nd-order-welcome__intro { padding-bottom: 20px; }
  .nd-order-welcome__window { height: 140px; }
  .nd-order-welcome__item { width: 116px; height: 116px; }
  .nd-order-welcome__item img { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .nd-order-welcome__track--moving,
  .nd-order-welcome__track--moving img { animation: none; }
  .nd-order-welcome__pause,
  .nd-order-welcome__pause-icon { display: none; }
}
