.topc-account-shell {
  max-width: 1240px;
  padding-top: 64px;
  padding-bottom: 92px;
}

.topc-account-nav {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.topc-account-nav > strong {
  padding: 10px 13px 8px;
  color: #101828;
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.topc-account-nav a {
  position: relative;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topc-account-nav a:hover,
.topc-account-nav a:focus-visible {
  transform: translateX(2px);
}

.topc-account-nav a.is-active::before {
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: #ff5b36;
  content: "";
}

.topc-account-nav .topc-account-signout {
  margin-top: 8px;
  border-top: 1px solid #eaecf0;
  border-radius: 0 0 8px 8px;
  color: #667085;
}

.topc-account-content > header,
.topc-account-welcome {
  margin-bottom: 28px;
}

.topc-account-content > header h1,
.topc-account-welcome h1 {
  margin: 7px 0 9px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.topc-account-content > header p,
.topc-account-welcome p {
  max-width: 720px;
  margin: 0;
}

.topc-account-task-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 30px;
}

.topc-account-task-card {
  display: grid;
  min-width: 0;
  min-height: 140px;
  align-content: space-between;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topc-account-task-card:hover,
.topc-account-task-card:focus-visible {
  border-color: #ff5b36;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .1);
  transform: translateY(-3px);
}

.topc-account-task-card span {
  color: #475467;
  font-size: 13px;
  font-weight: 750;
}

.topc-account-task-card strong {
  margin: 10px 0 5px;
  color: #101828;
  font-size: 34px;
  line-height: 1;
}

.topc-account-task-card small {
  color: #98a2b3;
  line-height: 1.35;
}

.topc-account-section {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fff;
}

.topc-account-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.topc-account-section h2 {
  margin: 4px 0 0;
  font-size: 27px;
}

.topc-account-section .account-link {
  margin: 3px 0 0;
  color: #475467;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topc-account-recent-list {
  display: grid;
  gap: 11px;
}

.topc-account-recent-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topc-account-recent-card:hover,
.topc-account-recent-card:focus-within {
  border-color: #ffb39e;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .07);
  transform: translateY(-2px);
}

.topc-account-recent-media img {
  display: block;
  width: 76px;
  height: 64px;
  object-fit: contain;
  border-radius: 9px;
  background: #f2f4f7;
}

.topc-account-recent-card h3 {
  margin: 3px 0 0;
  font-size: 16px;
}

.topc-account-recent-card > div > span {
  color: #667085;
  font-size: 12px;
  font-weight: 750;
}

.topc-account-recent-card > strong {
  white-space: nowrap;
  font-size: 17px;
}

.topc-account-recent-card .btn {
  margin: 0;
  white-space: nowrap;
}

.topc-account-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.topc-account-quick-links a {
  display: grid;
  gap: 4px;
  padding: 17px;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topc-account-quick-links a:hover,
.topc-account-quick-links a:focus-visible {
  border-color: #ffb39e;
  background: #fff8f5;
  transform: translateY(-2px);
}

.topc-account-quick-links span {
  color: #667085;
  font-size: 13px;
}

.topc-account-order-card,
.topc-return-card,
.topc-account-empty,
.topc-account-detail-grid > section,
.topc-account-addresses > section {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topc-account-order-card:hover,
.topc-return-card:hover {
  border-color: #ffb39e;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .08);
  transform: translateY(-2px);
}

.topc-account-orders {
  transition: opacity 160ms ease, transform 160ms ease;
}

.topc-account-orders.is-switching {
  opacity: .45;
  transform: translateY(5px);
}

.topc-account-order-card .btn,
.topc-account-shell .btn,
.topc-account-wishlist-grid .btn {
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 100ms ease, box-shadow 160ms ease;
}

.topc-account-shell .btn:hover,
.topc-account-shell .btn:focus-visible,
.topc-account-wishlist-grid .btn:hover,
.topc-account-wishlist-grid .btn:focus-visible {
  box-shadow: 0 7px 16px rgba(16, 24, 40, .14);
  transform: translateY(-1px);
}

.topc-account-shell .btn.is-pressed,
.topc-account-wishlist-grid .btn.is-pressed {
  transform: translateY(0) scale(.98);
}

.topc-account-form {
  padding: 26px;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #fff;
}

.topc-account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topc-account-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 750;
}

.topc-account-form label.is-wide {
  grid-column: 1 / -1;
}

.topc-account-form input:not([type="checkbox"]),
.topc-account-form select,
.topc-account-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 9px;
  background: #fff;
  color: #101828;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.topc-account-form input:focus,
.topc-account-form select:focus,
.topc-account-form textarea:focus {
  outline: none;
  border-color: #ff5b36;
  box-shadow: 0 0 0 3px rgba(255, 91, 54, .16);
}

.topc-account-form input.is-invalid,
.topc-account-form select.is-invalid {
  border-color: #d92d20;
  background: #fff7f6;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .11);
}

.topc-account-form input:disabled {
  background: #f2f4f7;
  color: #667085;
}

.topc-account-form label small,
.topc-account-field-error {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.topc-account-field-error {
  color: #b42318 !important;
  font-weight: 700 !important;
}

.topc-account-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.topc-account-form-actions .btn {
  margin: 0;
}

.topc-account-address-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.topc-account-address-form {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
}

.topc-account-address-form legend {
  padding: 0 7px;
  font-size: 21px;
  font-weight: 800;
}

.topc-account-address-form > p {
  margin: 0 0 18px;
}

.topc-account-clear-address {
  margin: 18px 0 0;
  color: #b42318;
}

.topc-account-pending-email {
  margin: 0 0 18px;
}

.topc-account-pending-email p {
  margin: 4px 0 0;
}

.topc-account-address-form .topc-account-copy-address {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f2f4f7;
}

.topc-account-copy-address input,
.topc-account-check input {
  width: 18px;
  height: 18px;
  accent-color: #ff5b36;
}

.topc-account-notification-list {
  display: grid;
  gap: 10px;
}

.topc-account-notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topc-account-notification-card:hover,
.topc-account-notification-card:focus-visible {
  border-color: #ffb39e;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .07);
  transform: translateY(-2px);
}

.topc-account-notification-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5b36;
  box-shadow: 0 0 0 5px #fff0ec;
}

.topc-account-notification-card b,
.topc-account-notification-card small {
  display: block;
}

.topc-account-notification-card small {
  margin-top: 3px;
  color: #667085;
}

.topc-account-preferences {
  margin-top: 26px;
}

.topc-account-preferences h2 {
  margin-top: 0;
}

.topc-account-check {
  display: flex !important;
  align-items: flex-start;
  gap: 11px !important;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
}

.topc-account-check span,
.topc-account-check b,
.topc-account-check small {
  display: block;
}

.topc-account-check small {
  margin-top: 3px;
}

.topc-account-wishlist-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topc-account-wishlist-grid .card {
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topc-account-wishlist-grid .card:hover,
.topc-account-wishlist-grid .card:focus-within {
  border-color: #ffb39e;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .1);
  transform: translateY(-3px);
}

.topc-account-feedback {
  width: min(520px, calc(100vw - 32px));
  max-width: none;
  padding: 26px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #101828;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .28);
}

.topc-account-feedback::backdrop {
  background: rgba(16, 24, 40, .62);
  backdrop-filter: blur(3px);
}

.topc-account-feedback[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  animation: topc-account-dialog-in 180ms cubic-bezier(.2, .8, .2, 1);
}

.topc-account-feedback h2 {
  margin: 4px 0 7px;
  font-size: 25px;
}

.topc-account-feedback p {
  margin: 5px 0;
}

.topc-account-feedback > .btn {
  grid-column: 1 / -1;
  justify-self: end;
  margin: 5px 0 0;
}

.topc-account-confirm-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 9px;
}

.topc-account-confirm-actions .btn {
  margin: 5px 0 0;
}

.topc-account-feedback-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ecfdf3;
  color: #067647;
  font-size: 21px;
  font-weight: 900;
}

.topc-account-feedback.is-error .topc-account-feedback-icon {
  background: #fef3f2;
  color: #b42318;
}

.topc-account-shell.topc-account-motion-ready [data-account-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.16, 1, .3, 1);
}

.topc-account-shell.topc-account-motion-ready [data-account-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes topc-account-dialog-in {
  from { opacity: 0; transform: scale(.98) translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .topc-account-task-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topc-account-address-editor { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .topc-account-shell { padding-top: 42px; }
  .topc-account-nav { grid-template-columns: repeat(10, max-content); scroll-snap-type: x proximity; }
  .topc-account-nav > strong { display: none; }
  .topc-account-nav a { scroll-snap-align: start; white-space: nowrap; }
  .topc-account-nav a:hover,
  .topc-account-nav a:focus-visible { transform: translateY(-1px); }
  .topc-account-nav .topc-account-signout { margin: 0; border-top: 0; border-left: 1px solid #eaecf0; }
  .topc-account-nav a.is-active::before { left: 10px; right: 10px; top: auto; bottom: 2px; width: auto; height: 3px; }
  .topc-account-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topc-account-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topc-account-task-card { min-height: 124px; padding: 15px; }
  .topc-account-section { padding: 19px; }
  .topc-account-section > header { display: grid; }
  .topc-account-recent-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .topc-account-recent-media img { width: 64px; height: 56px; }
  .topc-account-recent-card > strong,
  .topc-account-recent-card > .btn { grid-column: 2; justify-self: start; }
  .topc-account-quick-links,
  .topc-account-form-grid,
  .topc-account-wishlist-grid { grid-template-columns: 1fr; }
  .topc-account-form label.is-wide { grid-column: auto; }
  .topc-account-form { padding: 19px; }
  .topc-account-address-form { padding: 17px; }
  .topc-account-form-actions { display: grid; }
  .topc-account-form-actions .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .topc-account-shell *,
  .topc-account-feedback,
  .topc-account-wishlist-grid * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .topc-account-shell.topc-account-motion-ready [data-account-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
