/* SarvTheme account.css — built from modules. Edit modules + run npm run build */

/* --- account.css --- */
/**
 * SarvTheme — WooCommerce My Account
 * Light SaaS dashboard layout (structure inspired by admin panels; light theme only).
 */

/* ── Tokens ───────────────────────────────────────────────── */
.st-account {
  --st-account-sidebar-width: 16.5rem;
  --st-account-gap: 1.25rem;
  --st-account-card-pad: 1.25rem;
  --st-account-radius: 1.15rem;
  --st-account-border: #e5e7eb;
  --st-account-shadow: 0 5px 80px rgba(0, 0, 0, 0.05);
  --st-account-bg: #f1f5f9;
  --st-account-surface: #ffffff;
  --st-account-muted: #64748b;
  --st-account-text: #0f172a;
  --st-account-primary: var(
    --sarv-color-primary,
    var(--st-color-primary, #e11d48)
  );
  --st-account-accent-rose: #e11d48;
  --st-account-accent-amber: #f59e0b;
  --st-account-accent-teal: #14b8a6;
  --st-account-accent-violet: #8b5cf6;
}

/* Reset WC floats */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.st-account .woocommerce-MyAccount-navigation,
.st-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
}

.woocommerce-account .woocommerce::after,
.woocommerce-account .woocommerce::before {
  display: none;
}

/* Full-bleed soft workspace */
body.woocommerce-account .site-main > .woocommerce,
body.woocommerce-account .entry-content > .woocommerce {
  max-width: none;
}

/* ── Shell ────────────────────────────────────────────────── */
.st-account {
  --st-account-shell-pad: 1rem;
  position: relative;
  display: grid;
  grid-template-columns: var(--st-account-sidebar-width) minmax(0, 1fr);
  grid-template-areas: "sidebar workspace";
  gap: var(--st-account-gap);
  align-items: stretch;
  width: 100%;
  margin: 0;
  min-height: 70vh;
  color: var(--st-account-text);
  border-radius: calc(var(--st-account-radius) + 0.25rem);
  overflow: visible;
  transition: grid-template-columns 0.25s ease;
}

.st-account.is-collapsed {
  --st-account-sidebar-width: 5.25rem;
  grid-template-columns: 5.25rem minmax(0, 1fr);
}

.st-account.is-collapsed .st-account__brand-name,
.st-account.is-collapsed .st-account__brand-meta,
.st-account.is-collapsed .st-account-menu__text {
  display: none;
}

.st-account.is-collapsed .st-account-menu__link {
  justify-content: center;
  padding-inline: 0.65rem;
}

.st-account.is-collapsed .st-account__brand {
  justify-content: center;
  padding-inline: 0.75rem;
  padding: 0;
}

/* Mobile bar */
.st-account__mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--st-account-surface);
  border: 1px solid var(--st-account-border);
  border-radius: var(--st-account-radius);
  box-shadow: var(--st-account-shadow);
}

.st-account__mobile-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.st-account__mobile-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--st-account-border);
}

.st-account__mobile-name {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.st-account__menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--st-account-border);
  border-radius: 0.65rem;
  background: #f8fafc;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.st-account__sidebar {
  grid-area: sidebar;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.15rem 0.85rem;
  border: 8px solid transparent;
  border-radius: 25px;
  background:
    linear-gradient(#fbfbfb, #fbfbfb) padding-box,
    linear-gradient(
        45deg,
        color-mix(in srgb, var(--st-color-primary, #0d6efd) 30%, transparent) 0%,
        rgba(255, 255, 255, 0.9) 20%,
        #fff 40%,
        #fff 60%,
        rgba(255, 255, 255, 0.9) 80%,
        color-mix(in srgb, var(--st-color-primary, #0d6efd) 30%, transparent)
          100%
      )
      border-box;
  box-shadow: var(--st-account-shadow);
  height: fit-content;
  overflow: visible;
  z-index: 1;
}

.st-account__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.25rem;
  min-width: 0;
}

.st-account__brand-avatar {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 3px
      color-mix(
        in srgb,
        var(--st-color-primary, var(--st-account-primary)) 55%,
        transparent
      ),
    0 0 14px
      color-mix(
        in srgb,
        var(--st-color-primary, var(--st-account-primary)) 40%,
        transparent
      );
  flex-shrink: 0;
  background: #111;
}

.st-account__brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  border-radius: 0.65rem;
  background: #f8fafc;
  flex-shrink: 0;
}

.st-account__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: color-mix(
    in srgb,
    var(--st-color-primary, var(--st-account-primary)) 18%,
    #111
  );
  color: var(--st-color-primary, var(--st-account-primary));
  box-shadow:
    0 0 0 3px
      color-mix(
        in srgb,
        var(--st-color-primary, var(--st-account-primary)) 55%,
        transparent
      ),
    0 0 14px
      color-mix(
        in srgb,
        var(--st-color-primary, var(--st-account-primary)) 40%,
        transparent
      );
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.st-account__brand-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.st-account__brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--st-color-primary, var(--st-account-primary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    opacity 0.2s ease,
    width 0.2s ease;
}

.st-account__brand-mobile {
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: isolate;
}

/* On the content-facing edge of the sidebar (between sidebar and workspace). */
.st-account__collapse {
  position: absolute;
  top: 5.25rem;
  inset-inline-end: -0.85rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid var(--st-account-border);
  border-radius: 50%;
  background: var(--st-account-surface) !important;
  box-shadow: var(--st-account-shadow) !important;
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.st-account__collapse-icon {
  width: 0.4rem;
  height: 0.4rem;
  border-inline-start: 2px solid #64748b;
  border-block-end: 2px solid #64748b;
  transform: rotate(135deg);
  margin-inline-start: 0.15rem;
  transition: transform 0.2s ease;
}

.st-account.is-collapsed .st-account__collapse-icon {
  transform: rotate(-45deg);
  margin-inline-start: 0;
  margin-inline-end: 0.1rem;
}

/* Menu */
.st-account-menu {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.st-account-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.st-account-menu__item {
  margin: 0;
}

.woocommerce-MyAccount-navigation .st-account-menu__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  border-radius: 60px;
  color: #747474;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.woocommerce-MyAccount-navigation .st-account-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--st-account-primary);
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  opacity: 0.9;
  transition: color 0.15s ease;
}

.woocommerce-MyAccount-navigation .st-account-menu__link:hover,
.woocommerce-MyAccount-navigation .st-account-menu__link:focus-visible {
  background-color: var(--st-account-primary);
  color: #fff;
  outline: none;
}

.st-account-menu__item.is-active > .st-account-menu__link,
.st-account-menu__link[aria-current="page"] {
  background-color: var(--st-account-primary);
  color: #fff;
  font-weight: 700;
}

.woocommerce-MyAccount-navigation
  .st-account-menu__link:hover
  .st-account-menu__icon,
.woocommerce-MyAccount-navigation
  .st-account-menu__link:focus-visible
  .st-account-menu__icon,
.st-account-menu__item.is-active
  > .st-account-menu__link
  .st-account-menu__icon,
.st-account-menu__link[aria-current="page"] .st-account-menu__icon {
  color: #fff;
}

.woocommerce-MyAccount-navigation .st-account-menu__icon svg,
.woocommerce-MyAccount-navigation
  .st-account-menu__icon
  .st-inline-svg__graphic {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.woocommerce-MyAccount-navigation .st-account-menu__text {
  min-width: 0;
  white-space: nowrap;
  transition:
    opacity 0.2s ease,
    width 0.2s ease;
}

.woocommerce-MyAccount-navigation .st-account-menu__badge {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--st-account-primary, #e11d48);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.st-account.is-collapsed .st-account-menu__badge {
  position: absolute;
  inset-inline-end: 0.35rem;
  top: 0.35rem;
  min-width: 0.85rem;
  height: 0.85rem;
  padding: 0;
  font-size: 0;
}

/* Drawer */
.st-account-menu__portal {
  display: contents;
}

.st-account-menu__drawer {
  z-index: 1045;
  top: var(--st-admin-bar-offset, 0px);
  --bs-offcanvas-width: min(20rem, 100vw);
  border: none;
  background: #fff;
  color: var(--st-account-text);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
}

.st-account-menu__drawer-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--st-account-border);
}

.st-account-menu__drawer-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 750;
}

.st-account-menu__drawer-body {
  padding: 0.75rem;
}

/* ── Workspace ────────────────────────────────────────────── */
.st-account__workspace {
  grid-area: workspace;
  display: flex;
  flex-direction: column;
  gap: var(--st-account-gap);
  min-width: 0;
}

/* Notice strip */
.st-account__notice {
  padding: 0.7rem 1.15rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--st-account-primary) 88%, #0f172a);
  color: #fff;
  box-shadow: var(--st-account-shadow);
}

.st-account__notice-text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

/* Account promo slider */
.st-account__slider {
  position: relative;
  border-radius: var(--st-account-radius);
  overflow: hidden;
  background: var(--st-account-surface);
  border: 1px solid var(--st-account-border);
  box-shadow: var(--st-account-shadow);
}

.st-account__swiper {
  width: 100%;
}

.st-account__slide {
  display: block;
  min-height: 0;
  background: var(--st-account-surface);
}

.st-account__slide-media {
  display: block;
  width: 100%;
  min-height: 10rem;
  aspect-ratio: 21 / 7;
  background: #f1f5f9;
  overflow: hidden;
}

.st-account__slide-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-account__slider-pagination {
  bottom: 0.75rem !important;
}

.st-account__slider-pagination .swiper-pagination-bullet {
  background: #94a3b8;
  opacity: 0.55;
}

.st-account__slider-pagination .swiper-pagination-bullet-active {
  background: var(--st-account-primary);
  opacity: 1;
}

.st-account__slider-prev,
.st-account__slider-next {
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--st-account-border);
  color: #334155;
  box-shadow: var(--st-account-shadow);
}

.st-account__slider-prev::after,
.st-account__slider-next::after {
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .st-account__slide-media {
    aspect-ratio: 16 / 9;
    min-height: 8rem;
  }
}

/* Content */
.st-account__content {
  display: flex;
  flex-direction: column;
  gap: var(--st-account-gap);
  min-width: 0;
}

.st-account-card {
  background: var(--st-account-surface);
  border-radius: var(--st-account-radius);
  box-shadow: var(--st-account-shadow);
  overflow: hidden;
  padding: 1rem;
}

.st-account-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px dashed var(--st-account-border);
}

.st-account-card__header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.st-account-card__title {
  margin: 0;
  font-size: 0.98rem !important;
  font-weight: 750 !important;
}

.st-account-card__action {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--st-account-primary);
  text-decoration: none;
}

.st-account-card__action:hover {
  text-decoration: underline;
}

.st-account-card__body {
  padding: var(--st-account-card-pad);
}

.st-account__empty {
  margin: 0;
  color: var(--st-account-muted);
  font-size: 0.9rem;
}

/* Dashboard */
.st-account-dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--st-account-gap);
}

.st-account__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--st-account-gap);
}

.st-account__metric {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.15rem;
  background: #fff;
  border-radius: var(--st-account-radius);
  box-shadow: var(--st-account-shadow);
  min-height: 5.5rem;
}

.st-account__metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

.st-account__metric-icon svg,
.st-account__metric-icon .st-inline-svg__graphic,
.st-account__metric-icon .st-account__stat-icon-svg,
.st-account__metric-icon .st-account__stat-icon-svg svg {
  width: 30px;
  height: 30px;
  display: block;
}

.st-account__metric-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.st-account__metric-label {
  font-size: 0.8rem;
  color: var(--st-account-muted);
  line-height: 1.35;
}

.st-account__metric-value {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

/* Board 30/70 */

.st-account__board-side,
.st-account__board-main {
  display: flex;
  flex-direction: column;
  gap: var(--st-account-gap);
  min-width: 0;
}

/* Summary accent card (wallet-like) */
.st-account__summary--accent .st-account__summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  background: color-mix(in srgb, var(--st-account-accent-amber) 82%, #fff7ed);
  color: #78350f;
}

.st-account__summary-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.st-account__summary-action {
  font-size: 0.8rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.st-account__summary-action:hover {
  opacity: 1;
  text-decoration: underline;
}

.st-account__summary-body {
  padding: 1.15rem;
}

.st-account__summary-hello {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
}

.st-account__summary-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--st-account-muted);
}

.st-account__wallet-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--st-account-border);
}

.st-account__wallet-card-row:first-child {
  padding-top: 0;
}

.st-account__wallet-card-label {
  font-size: 0.88rem;
  color: var(--st-account-muted);
}

.st-account__wallet-card-value {
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.st-account__wallet-card-hint {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--st-account-muted);
}

.st-account__status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.st-account__status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--st-account-border);
  font-size: 0.9rem;
}

.st-account__status-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.st-account__status-item:first-child {
  padding-top: 0;
}

.st-account__status-count {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--st-account-primary);
}

/* Recent orders */
.st-account__order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.st-account__order-link {
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  padding: 0.85rem;
  background: rgba(218, 218, 218, 0.25);
  border-radius: var(--st-account-radius);
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.st-account__order-product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 33%;
}

.st-account__order-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-account__order-media {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--st-account-border);
  flex-shrink: 0;
}

.st-account__order-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-account__order-media-fallback {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.st-account__order-info,
.st-account__order-aside {
  display: flex;
  gap: 0.2rem;
  width: 33%;
}

.st-account__order-info {
  align-items: center;
  border-right: 1px dashed var(--st-account-border);
  padding-right: 0.75rem;
  border-left: 1px dashed var(--st-account-border);
  padding-left: 0.75rem;
}

.st-account__order-aside {
  align-items: center;
  justify-content: center;
}

.st-account__order-title {
  font-weight: 700;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-account__order-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--st-account-muted);
}

.st-account__order-total {
  font-weight: 800;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.st-account__order-status {
  display: inline-flex;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--st-account-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.st-account__order-status--completed,
.st-account__order-status--processing {
  background: color-mix(in srgb, #90c742 14%, white);
  color: #90c742;
}

.st-account__order-status--pending,
.st-account__order-status--on-hold {
  background: color-mix(in srgb, var(--st-account-accent-amber) 18%, white);
  color: #b45309;
}

.st-account__order-status--cancelled,
.st-account__order-status--failed,
.st-account__order-status--refunded {
  background: color-mix(in srgb, var(--st-account-accent-rose) 12%, white);
  color: #be123c;
}

/* Wishlist */
.st-account__wishlist-grid.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--st-gap-lg, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-account__wishlist-grid.products > .sarv-product-card {
  float: none;
  margin: 0;
  padding: 0;
  width: auto;
  height: 100%;
  min-width: 0;
}

/* Endpoint forms/tables */
.st-account__content table.shop_table {
  width: 100%;
  border: 1px solid var(--st-account-border);
  border-radius: var(--st-account-radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--st-account-shadow);
}

.st-account__content table.shop_table th,
.st-account__content table.shop_table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--st-account-border);
  font-size: 0.9rem;
}

.st-account__content table.shop_table thead th {
  background: #f8fafc;
  font-weight: 700;
}

.st-account__content table.shop_table tr:last-child td {
  border-bottom: 0;
}

.st-account__content .woocommerce-Address,
.st-account__content .woocommerce-column {
  background: #fff;
  border: 1px solid var(--st-account-border);
  border-radius: var(--st-account-radius);
  box-shadow: var(--st-account-shadow);
  padding: 1.15rem;
}

/* ── Edit account form ───────────────────────────────────── */
.st-account-edit {
  --st-account-edit-accent: #90c742;
  --st-account-edit-accent-soft: #f4faee;
  --st-account-edit-input-border: #eeeeee;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.st-account-edit__card {
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.04);
  padding: 1.75rem 1.6rem !important;
  margin-top: 0 !important;
}

.st-account-edit__card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.15rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px dotted #e5e7eb;
}

.st-account-edit__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.st-account-edit__card-title {
  margin: 0;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--st-account-text);
  line-height: 1.4;
}

.st-account-edit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.35rem;
}

.st-account-edit__field,
.st-account-edit .form-row,
.st-account-edit .st-auth-field {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  max-width: none;
}

.st-account-edit__field--full,
.st-account-edit .form-row-wide:not(.st-account-edit__field),
.st-account-edit .st-auth-field--image,
.st-account-edit .st-auth-field--textarea {
  grid-column: 1 / -1;
}

.st-account-edit__field label,
.st-account-edit .st-auth-field__label {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
}

.st-account-edit .required {
  color: #ef4444;
}

.st-account-edit__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--st-account-muted);
  line-height: 1.5;
}

.st-account-edit .woocommerce-Input,
.st-account-edit input.input-text,
.st-account-edit select,
.st-account-edit textarea,
.st-account-edit .st-auth-field__input,
.st-account-edit .st-auth-field__textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--st-account-edit-input-border);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--st-account-text);
  font: inherit;
  font-size: 0.95rem;
  box-shadow: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.st-account-edit .woocommerce-Input::placeholder,
.st-account-edit input.input-text::placeholder,
.st-account-edit .st-auth-field__input::placeholder {
  color: #b0b7c3;
}

.st-account-edit .woocommerce-Input:focus,
.st-account-edit input.input-text:focus,
.st-account-edit select:focus,
.st-account-edit textarea:focus,
.st-account-edit .st-auth-field__input:focus,
.st-account-edit .st-auth-field__textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--st-account-edit-accent) 55%, #ccc);
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--st-account-edit-accent) 18%, transparent);
}

.st-account-edit .clear {
  display: none;
}

.st-account-edit fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.st-account-edit__extra-grid > .st-auth-field,
.st-account-edit__extra-grid > .st-account-edit__field {
  min-width: 0;
}

.st-auth-field__avatar-picker {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  max-width: 100%;
}

.st-auth-field__avatar-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--st-account-edit-accent-soft);
  border: 2px dashed
    color-mix(in srgb, var(--st-account-edit-accent) 40%, #dce7d0);
  color: #78a942;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.st-auth-field__avatar-picker:hover .st-auth-field__avatar-preview,
.st-auth-field__avatar-picker:focus-within .st-auth-field__avatar-preview {
  border-color: color-mix(in srgb, var(--st-account-edit-accent) 65%, #c5d9b5);
  box-shadow: 0 0 0 4px
    color-mix(in srgb, var(--st-account-edit-accent) 16%, transparent);
}

.st-auth-field__avatar-picker.has-preview .st-auth-field__avatar-preview {
  border-style: solid;
  border-color: color-mix(in srgb, var(--st-account-edit-accent) 55%, #fff);
  background: #fff;
}

.st-auth-field__avatar-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-auth-field__avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.st-auth-field__avatar-placeholder svg {
  display: block;
}

.st-auth-field__avatar-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #78a942;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.st-auth-field__avatar-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--st-account-edit-accent) 18%, #fff);
  color: inherit;
}

.st-auth-field__avatar-action-icon svg {
  display: block;
}

.st-auth-field__input--file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.st-account-edit__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.st-account-edit__submit,
.st-account__content .st-account-edit__submit.button,
.st-account__content .st-account-edit__submit.woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--st-account-edit-accent) !important;
  color: #fff !important;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.st-account-edit__submit:hover,
.st-account__content .st-account-edit__submit.button:hover {
  filter: brightness(0.96);
  color: #fff !important;
}

.st-account-edit__submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.st-account-edit__submit-icon svg {
  display: block;
}

@media (max-width: 767.98px) {
  .st-account-edit__card {
    padding: 1.25rem 1rem;
    border-radius: 1.1rem;
  }

  .st-account-edit__grid {
    grid-template-columns: 1fr;
  }

  .st-account-edit__actions {
    justify-content: stretch;
  }

  .st-account-edit__submit {
    width: 100%;
  }
}

.st-account__content .woocommerce-Input,
.st-account__content input.input-text,
.st-account__content select,
.st-account__content textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--st-account-border);
  border-radius: 0.65rem;
  background: #fff;
  color: inherit;
  font: inherit;
}

.st-account__content .woocommerce-Input:focus,
.st-account__content input.input-text:focus,
.st-account__content select:focus,
.st-account__content textarea:focus {
  outline: none;
  border-color: color-mix(
    in srgb,
    var(--st-account-primary) 50%,
    var(--st-account-border)
  );
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--st-account-primary) 14%, transparent);
}

.st-account__content .button,
.st-account__content button[type="submit"],
.st-account__content .woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 0.65rem;
  background: var(--st-account-primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.st-account__content .button:hover,
.st-account__content button[type="submit"]:hover,
.st-account__content .woocommerce-Button:hover {
  filter: brightness(0.96);
  color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .st-account__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-account__board {
    grid-template-columns: minmax(14rem, 1fr) minmax(0, 1.6fr);
  }
}

@media (max-width: 991.98px) {
  .st-account {
    grid-template-columns: 1fr;
    grid-template-areas:
      "mobile"
      "workspace";
    padding: 0.75rem;
  }

  .st-account__mobile-bar {
    display: flex;
    grid-area: mobile;
  }

  .st-account__sidebar,
  .st-account__collapse {
    display: none !important;
  }

  .st-account__board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .st-account__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .st-account__order-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .st-account__order-aside {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: start;
    gap: 0.5rem;
  }

  .st-account__wishlist-grid.products {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 479.98px) {
  .st-account__metrics {
    grid-template-columns: 1fr;
  }
}

/* ── Orders history ──────────────────────────────────────── */
.st-account-orders {
  --st-orders-green: #90c742;
  --st-orders-amber: #e7ac36;
  --st-orders-line: #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.04);
  padding: 1.75rem 1.6rem !important;
}

.st-account-orders__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px dashed var(--st-orders-line);
}

.st-account-orders__header-icon {
  display: inline-flex;
  color: #64748b;
}

.st-account-orders__title {
  margin: 0;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--st-account-text);
}

.st-account-orders__tabs {
  border-bottom: 1px dashed var(--st-orders-line);
}

.st-account-orders__tabs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-account-orders__tab {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.st-account-orders__tab:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  top: 20%;
  bottom: 20%;
  border-inline-end: 1px dashed var(--st-orders-line);
}

.st-account-orders__tab-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem 1rem;
  text-decoration: none;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px dashed transparent;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.st-account-orders__tab.is-active .st-account-orders__tab-link {
  color: var(--st-account-primary);
  border-bottom-color: var(--st-account-primary);
}

.st-account-orders__tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.35rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #eef1f4;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.st-account-orders__tab.is-active .st-account-orders__tab-count {
  background: var(--st-account-primary);
  color: #fff;
}

.st-account-orders__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.st-account-orders__card {
  background: #f7f8f9;
  border-radius: 1.25rem;
  overflow: hidden;
}

.st-account-orders__products {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 1rem 1.15rem;
  border-bottom: 1px dotted var(--st-orders-line);
}

.st-account-orders__product {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-inline-end: 1px dotted var(--st-orders-line);
}

.st-account-orders__product:last-child {
  border-inline-end: 0;
}

.st-account-orders__product img,
.st-account-orders__product-fallback {
  display: block;
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 0.65rem;
  background: #fff;
}

.st-account-orders__product-fallback {
  border: 1px solid #e5e7eb;
}

.st-account-orders__product-qty {
  position: absolute;
  inset-block-start: 0.15rem;
  inset-inline-end: 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
}

.st-account-orders__product-empty {
  padding: 0.5rem 0;
  color: var(--st-account-muted);
  font-size: 0.9rem;
}

.st-account-orders__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
}

.st-account-orders__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.st-account-orders__facts {
  display: flex;
  gap: 1rem;
  min-width: 0;
}

.st-account-orders__fact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.st-account-orders__fact-icon {
  display: inline-flex;
  color: var(--st-account-primary);
  flex-shrink: 0;
}

.st-account-orders__fact-text strong {
  color: var(--st-account-text);
  font-weight: 700;
}

.st-account-orders__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.st-account-orders__status--amber {
  color: var(--st-orders-amber);
}

.st-account-orders__status--green {
  color: var(--st-orders-green);
}

.st-account-orders__status--violet {
  color: #7c3aed;
}

.st-account-orders__status--muted {
  color: #94a3b8;
}

.st-account-orders__status-icon {
  display: inline-flex;
}

.st-account-orders__details,
.st-account__content .st-account-orders__details,
.st-account-orders__invoice,
.st-account__content .st-account-orders__invoice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.85rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  box-shadow: none;
}

.st-account-orders__details,
.st-account__content .st-account-orders__details {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  flex: 0 0 2.75rem;
  background: transparent !important;
  color: var(--st-account-primary) !important;
  border: none;
}

.st-account-orders__details:hover {
  color: var(--st-account-primary) !important;
}

.st-account-orders__invoice,
.st-account__content .st-account-orders__invoice {
  background: var(--st-account-primary) !important;
  color: #fff !important;
}

.st-account-orders__invoice:hover {
  filter: brightness(0.96);
  color: #fff !important;
}

.st-account-orders__details-icon,
.st-account-orders__invoice-icon {
  display: inline-flex;
}

.st-account-orders__empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #f7f8f9;
  border-radius: 1.25rem;
}

.st-account-orders__empty-text {
  margin: 0 0 1rem;
  color: var(--st-account-muted);
}

.st-account-orders__empty-link {
  display: inline-flex;
}

.st-account-orders__pagination {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .st-account-orders__meta {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .st-account-orders__status,
  .st-account-orders__actions {
    justify-self: start;
  }
}

@media (max-width: 767.98px) {
  .st-account-orders__tabs-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .st-account-orders__tab:nth-child(2n)::after {
    display: none;
  }

  .st-account-orders__tab-link {
    justify-content: flex-start;
    padding-inline: 0.35rem;
    font-size: 0.85rem;
  }

  .st-account-orders__actions {
    width: 100%;
  }

  .st-account-orders__invoice {
    flex: 1 1 auto;
  }

  .st-account-orders__details,
  .st-account__content .st-account-orders__details {
    flex: 0 0 2.75rem;
  }
}

/* ── Downloads accordion ─────────────────────────────────── */
.st-account-downloads {
  --st-downloads-green: #90c742;
  --st-downloads-line: #e8e8e8;
  --st-downloads-surface: #f7f8f9;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.04);
  padding: 1.75rem 1.6rem !important;
}

.st-account-downloads__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px dashed var(--st-downloads-line);
}

.st-account-downloads__header-icon {
  display: inline-flex;
  color: #64748b;
}

.st-account-downloads__title {
  margin: 0;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--st-account-text);
}

.st-account-downloads__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.st-account-downloads__item {
  margin: 0;
}

.st-account-downloads__details {
  background: var(--st-downloads-surface);
  border-radius: 1.15rem;
  overflow: hidden;
}

.st-account-downloads__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.st-account-downloads__summary::-webkit-details-marker {
  display: none;
}

.st-account-downloads__summary::marker {
  content: "";
}

.st-account-downloads__product {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.st-account-downloads__product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--st-account-primary);
  border: 1px solid color-mix(in srgb, var(--st-account-primary) 18%, transparent);
}

.st-account-downloads__product-name {
  color: var(--st-account-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.st-account-downloads__product-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--st-account-primary) 12%, #fff);
  color: var(--st-account-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.st-account-downloads__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
  border: 1px solid var(--st-downloads-line);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.st-account-downloads__details[open] .st-account-downloads__chevron {
  transform: rotate(180deg);
  color: var(--st-account-primary);
  border-color: color-mix(in srgb, var(--st-account-primary) 28%, transparent);
}

.st-account-downloads__panel {
  padding: 0 0.85rem 0.85rem;
}

.st-account-downloads__files {
  list-style: none;
  margin: 0;
  padding: 0.35rem 1rem;
  background: #fff;
  border-radius: 0.95rem;
}

.st-account-downloads__file {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.15rem;
}

.st-account-downloads__file + .st-account-downloads__file {
  border-top: 1px dashed var(--st-downloads-line);
}

.st-account-downloads__file-name {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--st-account-text);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
}

.st-account-downloads__file-bullet {
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.5rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--st-account-primary);
}

.st-account-downloads__file-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
}

.st-account-downloads__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.85rem;
  white-space: nowrap;
}

.st-account-downloads__meta-icon {
  display: inline-flex;
  color: var(--st-color-primary, #0d6efd);
  flex-shrink: 0;
}

.st-account-downloads__meta-icon--remaining {
  color: var(--st-color-primary, #0d6efd);
}

.st-account-downloads__meta-text strong {
  color: var(--st-account-text);
  font-weight: 700;
}

.st-account-downloads__btn,
.st-account__content .st-account-downloads__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.6rem 1.1rem;
  border-radius: 60px;
  background: var(--st-color-primary, #0d6efd) !important;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
  box-shadow: none;
}

.st-account-downloads__btn:hover {
  filter: brightness(0.96);
  color: #fff !important;
}

.st-account-downloads__btn-icon {
  display: inline-flex;
}

.st-account-downloads__empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--st-downloads-surface);
  border-radius: 1.25rem;
}

.st-account-downloads__empty-text {
  margin: 0 0 1rem;
  color: var(--st-account-muted);
}

.st-account-downloads__empty-link {
  display: inline-flex;
}

@media (max-width: 991.98px) {
  .st-account-downloads__file {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .st-account-downloads__btn {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .st-account-downloads {
    padding: 1.25rem 1rem !important;
  }

  .st-account-downloads__summary {
    padding: 0.9rem 0.95rem;
  }

  .st-account-downloads__product-name {
    font-size: 0.88rem;
  }

  .st-account-downloads__file-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
}

/* ── Addresses ───────────────────────────────────────────── */
.st-account-addresses {
  --st-addresses-line: #e8e8e8;
  --st-addresses-soft: #f7f8f9;
  --st-addresses-accent: #90c742;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  background: #fff;
  border-radius: 1.35rem;
  box-shadow: 0 8px 40px rgba(15, 23, 42, 0.04);
  padding: 1.75rem 1.6rem !important;
}

.st-account-addresses__header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0 0.95rem;
  border-bottom: 1px dashed var(--st-addresses-line);
}

.st-account-addresses__header-icon {
  display: inline-flex;
  color: #64748b;
}

.st-account-addresses__title {
  margin: 0;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--st-account-text);
}

.st-account-addresses__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.st-account-addresses__card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 1.15rem;
  background: var(--st-addresses-soft);
}

.st-account-addresses__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.st-account-addresses__card-type {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--st-account-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.st-account-addresses__card-type-icon {
  display: inline-flex;
  color: var(--st-account-primary);
  flex-shrink: 0;
}

.st-account-addresses__edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--st-addresses-accent) !important;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.st-account-addresses__edit:hover {
  filter: brightness(0.92);
  color: var(--st-addresses-accent) !important;
}

.st-account-addresses__edit-icon {
  display: inline-flex;
}

.st-account-addresses__body {
  padding: 0.35rem 1rem;
  border-radius: 0.95rem;
  background: #fff;
}

.st-account-addresses__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.st-account-addresses__line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 0;
  border-bottom: 1px dashed var(--st-addresses-line);
  color: var(--st-account-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.st-account-addresses__line:last-child {
  border-bottom: 0;
}

.st-account-addresses__bullet {
  width: 0.4rem;
  height: 0.4rem;
  margin-top: 0.45rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--st-account-primary);
}

.st-account-addresses__empty {
  margin: 0;
  padding: 1.15rem 0.15rem;
  color: var(--st-account-muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 767.98px) {
  .st-account-addresses {
    padding: 1.25rem 1rem !important;
  }

  .st-account-addresses__grid {
    grid-template-columns: 1fr;
  }

  .st-account-addresses__card-head {
    flex-wrap: wrap;
  }
}
