.otp-box {
  border: var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  background: var(--color-surface);
}

.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  border-right: var(--border-default);
  padding-right: var(--space-6);
}

@media (max-width: 768px) {
  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: var(--border-default);
    padding-right: 0;
    padding-bottom: var(--space-4);
  }
}

.account-nav__link {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.account-nav__link--active {
  background: var(--color-sand);
  color: var(--color-rust);
}

.account-nav__link--disabled {
  color: var(--color-ink-muted);
  opacity: 0.6;
}

.account-card {
  border: var(--border-default);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  background: var(--color-surface);
}

@media (max-width: 480px) {
  .account-card {
    padding: var(--space-6) var(--space-4);
  }

  .otp-box {
    padding: var(--space-6) var(--space-4);
  }
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 640px) {
  .address-grid { grid-template-columns: 1fr; }
}

.address-card__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.order-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-6);
  align-items: center;
}

/* Below 640px, the 3 columns (thumbs+title / status / price) no longer fit
   on one line — but stacking all 3 as separate full-width rows (the naive
   grid-template-columns: 1fr fallback) left a large --space-6 gap between
   each, reading as sparse/disconnected. Named areas instead put status and
   price on one shared second row, so the card reads as two tight rows
   (image+title, then status+price) rather than three loose ones. */
@media (max-width: 640px) {
  .order-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "top top"
      "status price";
    gap: var(--space-3) var(--space-4);
    text-align: left;
  }

  .order-row > .flex { grid-area: top; }
  .order-row__status { grid-area: status; }
  .order-row > div:last-child { grid-area: price; align-self: end; }
}

/* Two labeled blocks (Payment Status, Order Status), side by side —
   matches the labeled badges on the order detail page, so the list and
   detail views read consistently instead of the list showing an
   unlabeled badge + plain text that don't explain themselves. */
.order-row__status {
  display: flex;
  flex-direction: row;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: flex-start;
}

.order-row__thumbs {
  display: flex;
  flex-shrink: 0;
}

.order-row__thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-sand);
  border: 2px solid var(--color-surface);
  flex-shrink: 0;
}

.order-row__thumb:not(:first-child) {
  margin-left: -14px;
}

.order-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
