/* ========== ACCOUNT DASHBOARD (account/account) ========== */
.acc-page {
  --acc-accent: #73092a;
  --acc-accent-hover: #5c0721;
  --acc-accent-soft: #f7e6ea;
  --acc-dark: #221c20;
  --acc-line: #efe7e9;
  --acc-ink: #141313;
  --acc-muted: #6b6b6b;
  padding: 24px 0 72px;
  background: #f7f7f7;
  font-family: var(--font, "Gilroy", sans-serif);
  color: var(--acc-ink);
}

.acc-page *,
.acc-page *::before,
.acc-page *::after {
  box-sizing: border-box;
}

/* ---- breadcrumbs ---- */
.acc-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  color: #777c82;
  font-size: 13px;
}

.acc-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #b3b7bb;
}

.acc-crumbs a {
  color: inherit;
  text-decoration: none;
}

.acc-crumbs a:hover {
  color: var(--acc-accent);
}

.acc-crumbs span {
  color: var(--acc-ink);
}

/* ---- alert ---- */
.acc-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid #cdebd6;
  border-radius: 14px;
  background: #eefaf2;
  color: #1d7a3e;
  font-size: 14px;
  font-weight: 500;
}

/* ---- layout ---- */
.acc-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* ---- sidebar ---- */
.acc-side {
  position: sticky;
  top: 170px;
  padding: 20px;
  border: 1px solid var(--acc-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(115, 9, 42, 0.05);
}

.acc-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 20px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--acc-line);
}

.acc-profile__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--acc-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.acc-profile__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.acc-profile__name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-profile__email {
  overflow: hidden;
  color: var(--acc-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-nav__item,
.acc-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--acc-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.acc-nav__item svg,
.acc-logout svg {
  flex: 0 0 auto;
  color: #9a9a9a;
  transition: color 0.15s ease;
}

.acc-nav__item:hover {
  background: #f7f7f7;
}

.acc-nav__item:hover svg {
  color: var(--acc-accent);
}

.acc-nav__item.is-active {
  background: var(--acc-accent-soft);
  color: var(--acc-accent);
  font-weight: 600;
}

.acc-nav__item.is-active svg {
  color: var(--acc-accent);
}

.acc-logout {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--acc-line);
  border-radius: 0;
  color: var(--acc-muted);
}

.acc-logout:hover,
.acc-logout:hover svg {
  color: var(--acc-accent);
}

/* ---- main ---- */
.acc-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.acc-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--acc-dark);
  color: #fff;
}

.acc-hero::after {
  content: "";
  position: absolute;
  top: -90px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 58, 0.55), rgba(115, 9, 42, 0) 70%);
  pointer-events: none;
}

.acc-hero__text,
.acc-hero__actions {
  position: relative;
  z-index: 1;
}

.acc-hero__eyebrow {
  margin: 0 0 10px;
  color: #f2a5b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.acc-hero__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.acc-hero__lead {
  margin: 0;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.5;
}

.acc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- buttons ---- */
.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.acc-btn--light {
  background: #fff;
  color: var(--acc-accent);
}

.acc-btn--light:hover {
  background: var(--acc-accent-soft);
}

.acc-btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.acc-btn--ghost:hover {
  border-color: #fff;
}

.acc-btn--accent {
  background: var(--acc-accent);
  color: #fff;
}

/* ---- sections ---- */
.acc-section {
  padding: 24px;
  border: 1px solid var(--acc-line);
  border-radius: 24px;
  background: #fff;
}

.acc-section__title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.acc-tile,
.acc-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  background: #fff;
  color: var(--acc-ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.acc-tile:hover,
.acc-banner:hover {
  border-color: #e3c3cc;
  box-shadow: 0 10px 30px rgba(115, 9, 42, 0.08);
  transform: translateY(-1px);
}

.acc-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--acc-accent-soft);
  color: var(--acc-accent);
}

.acc-tile__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.acc-tile__body strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.acc-tile__body small {
  color: var(--acc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.acc-tile__arrow {
  flex: 0 0 auto;
  color: #c4c4c4;
  font-size: 24px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.15s ease;
}

.acc-tile:hover .acc-tile__arrow {
  color: var(--acc-accent);
  transform: translateX(2px);
}

.acc-banner {
  background: linear-gradient(90deg, #fff 0%, #fdf5f7 100%);
}

.acc-banner:hover .acc-btn--accent {
  background: var(--acc-accent-hover);
}

/* ---- responsive ---- */
@media (max-width: 991px) {
  .acc-layout {
    grid-template-columns: 1fr;
  }

  .acc-side {
    position: static;
  }

  .acc-nav {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .acc-nav::-webkit-scrollbar {
    display: none;
  }

  .acc-nav__item {
    flex: 0 0 auto;
    border: 1px solid var(--acc-line);
  }

  .acc-logout {
    margin-top: 12px;
    padding-top: 12px;
  }

  .acc-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .acc-page {
    padding: 16px 0 48px;
  }

  .acc-hero {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .acc-hero__title {
    font-size: 26px;
  }

  .acc-hero__actions,
  .acc-hero__actions .acc-btn {
    width: 100%;
  }

  .acc-section {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .acc-grid {
    grid-template-columns: 1fr;
  }

  .acc-banner {
    flex-wrap: wrap;
  }

  .acc-banner .acc-btn {
    width: 100%;
  }
}

/* =====================================================================
   ACCOUNT INNER PAGES (orders, personal data, addresses, password,
   favorites, newsletter) - shared building blocks
   ===================================================================== */

/* ---- page head ---- */
.acc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--acc-line);
}

.acc-head__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--acc-ink);
}

.acc-head__lead {
  margin: 0;
  color: var(--acc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.acc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--acc-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.acc-back:hover {
  text-decoration: underline;
}

.acc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- ajax alerts (#alert, filled by common.js) ---- */
.acc-alerts:empty {
  display: none;
}

.acc-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.acc-alerts .alert {
  position: relative;
  padding: 12px 40px 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.acc-alerts .alert .fa-solid {
  display: none;
}

.acc-alerts .alert-danger {
  background: #fdecec;
  color: #c40000;
}

.acc-alerts .alert-success {
  background: #eefaf2;
  color: #1d7a3e;
}

.acc-alerts .btn-close {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transform: translateY(-50%);
}

.acc-alerts .btn-close::before {
  content: "\00d7";
  font-size: 20px;
  line-height: 1;
}

/* ---- buttons (extra variants) ---- */
.acc-btn {
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
}

.acc-btn--accent:hover {
  background: var(--acc-accent-hover);
  color: #fff;
}

.acc-btn--outline {
  border-color: var(--acc-line);
  background: #fff;
  color: var(--acc-ink);
}

.acc-btn--outline:hover {
  border-color: var(--acc-accent);
  color: var(--acc-accent);
}

.acc-btn--muted {
  background: #f3f3f3;
  color: var(--acc-ink);
}

.acc-btn--muted:hover {
  background: #e9e9e9;
}

.acc-btn--danger {
  border-color: #f3d4d4;
  background: #fff;
  color: #c40000;
}

.acc-btn--danger:hover {
  background: #fdecec;
}

.acc-btn--sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
}

.acc-btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ---- forms ---- */
.acc-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.acc-form--narrow {
  display: grid;
  gap: 18px;
  max-width: 460px;
}

.acc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.acc-field--wide {
  grid-column: 1 / -1;
}

.acc-field__label {
  color: var(--acc-ink);
  font-size: 13px;
  font-weight: 600;
}

.acc-field.required > .acc-field__label::after {
  content: " *";
  color: var(--acc-accent);
}

.acc-input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  background: #fff;
  color: var(--acc-ink);
  font: 400 15px/1.4 var(--font, "Gilroy", sans-serif);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acc-input::placeholder {
  color: #a3a8ae;
}

.acc-input:focus {
  border-color: var(--acc-accent);
  box-shadow: 0 0 0 3px rgba(115, 9, 42, 0.12);
}

.acc-input.is-invalid,
.acc-field:has(.acc-field__error.d-block) .acc-input {
  border-color: #d60000;
}

.acc-input:disabled {
  background: #f7f7f7;
  cursor: wait;
}

.acc-select {
  padding-right: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='m6 9 6 6 6-6' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.acc-textarea {
  min-height: 110px;
  resize: vertical;
}

.acc-field__error {
  display: none;
  color: #d60000;
  font-size: 12px;
  line-height: 1.3;
}

.acc-field__error.d-block {
  display: block;
}

.acc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.acc-input-wrap .acc-input {
  padding-right: 52px;
}

.acc-eye {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f3f4f6;
  color: #8a9199;
  cursor: pointer;
}

.acc-eye:hover,
.acc-eye.is-on {
  color: var(--acc-accent);
}

.acc-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.acc-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--acc-ink);
  font-size: 14px;
  cursor: pointer;
}

.acc-check input[type="checkbox"],
.acc-check input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--acc-accent);
  cursor: pointer;
}

.acc-check--card {
  padding: 14px 16px;
  border: 1px solid var(--acc-line);
  border-radius: 12px;
  background: #fcfafb;
}

.acc-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--acc-line);
}

.acc-form--narrow .acc-form__actions {
  margin-top: 10px;
}

/* ---- newsletter switch ---- */
.acc-switch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  background: linear-gradient(90deg, #fff 0%, #fdf5f7 100%);
  cursor: pointer;
}

.acc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
}

.acc-switch input[type="checkbox"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.acc-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d9dbdf;
  transition: background-color 0.2s ease;
}

.acc-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.acc-switch input:checked + .acc-switch__track {
  background: var(--acc-accent);
}

.acc-switch input:checked + .acc-switch__track::after {
  transform: translateX(22px);
}

.acc-switch input:focus-visible + .acc-switch__track {
  box-shadow: 0 0 0 3px rgba(115, 9, 42, 0.2);
}

/* ---- orders table ---- */
.acc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
}

.acc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.acc-table th {
  padding: 14px 16px;
  background: #faf7f8;
  color: var(--acc-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.acc-table td {
  padding: 16px;
  border-top: 1px solid var(--acc-line);
  vertical-align: middle;
}

.acc-table tbody tr {
  transition: background-color 0.15s ease;
}

.acc-table tbody tr:hover {
  background: #fdfafb;
}

.acc-table .is-num {
  text-align: right;
  white-space: nowrap;
}

.acc-table__action {
  width: 1px;
  text-align: right;
  white-space: nowrap;
}

.acc-order-id {
  color: var(--acc-accent);
  font-weight: 700;
}

.acc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--acc-accent-soft);
  color: var(--acc-accent);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.acc-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---- pagination (common/pagination output) ---- */
.acc-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.acc-pager .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.acc-pager .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--acc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--acc-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.acc-pager a.page-link:hover {
  border-color: var(--acc-accent);
  color: var(--acc-accent);
}

.acc-pager .active .page-link {
  border-color: var(--acc-accent);
  background: var(--acc-accent);
  color: #fff;
}

.acc-pager__results {
  color: var(--acc-muted);
  font-size: 13px;
}

/* ---- empty state ---- */
.acc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 16px 48px;
  border: 1px dashed #e3d3d8;
  border-radius: 16px;
  background: #fcfafb;
  text-align: center;
}

.acc-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--acc-accent-soft);
  color: var(--acc-accent);
}

.acc-empty__title {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 600;
}

.acc-empty__text {
  margin: 0 0 8px;
  color: var(--acc-muted);
  font-size: 14px;
}

/* ---- address cards ---- */
.acc-addr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.acc-addr {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acc-addr:hover {
  border-color: #e3c3cc;
  box-shadow: 0 10px 30px rgba(115, 9, 42, 0.06);
}

.acc-addr.is-default {
  border-color: var(--acc-accent);
  box-shadow: inset 0 0 0 1px var(--acc-accent);
}

.acc-addr__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.acc-addr__text {
  flex: 1 1 auto;
  margin: 0;
  color: var(--acc-ink);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

.acc-addr__actions {
  display: flex;
  gap: 8px;
}

.acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acc-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- favorites inside the account layout ---- */
.acc-fav .fav-page__head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--acc-line);
}

.acc-fav .cat-page__title {
  margin: 0;
  font-size: 28px;
}

.acc-fav .cat-products {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.acc-fav .fav-page__empty {
  border-color: #e3d3d8;
  background: #fcfafb;
  color: #e3c3cc;
}

/* ---- inner pages responsive ---- */
@media (max-width: 767px) {
  .acc-form__grid {
    grid-template-columns: 1fr;
  }

  .acc-head__title,
  .acc-fav .cat-page__title {
    font-size: 24px;
  }

  .acc-head > .acc-btn {
    width: 100%;
  }

  /* orders table -> stacked cards */
  .acc-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .acc-table thead {
    display: none;
  }

  .acc-table,
  .acc-table tbody,
  .acc-table tr,
  .acc-table td {
    display: block;
    width: 100%;
  }

  .acc-table tbody {
    display: grid;
    gap: 12px;
  }

  .acc-table tr {
    padding: 6px 16px;
    border: 1px solid var(--acc-line);
    border-radius: 16px;
  }

  .acc-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 0;
    border-bottom: 1px solid #f4eff1;
    text-align: right;
  }

  .acc-table td::before {
    content: attr(data-label);
    color: var(--acc-muted);
    font-size: 13px;
    text-align: left;
  }

  .acc-table td.acc-table__action {
    width: 100%;
    border-bottom: 0;
  }

  .acc-table td.acc-table__action::before {
    content: none;
  }

  .acc-table__action .acc-btn {
    width: 100%;
  }
}

@media (max-width: 575px) {
  .acc-form__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .acc-form__actions .acc-btn {
    width: 100%;
  }

  .acc-switch-card {
    align-items: flex-start;
  }

  .acc-addr-grid {
    grid-template-columns: 1fr;
  }

  .acc-addr__actions .acc-btn {
    flex: 1 1 0;
  }

  .acc-fav .cat-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================================
   ACCOUNT PAGES, PART 3 (order details, returns, payment methods,
   transactions, downloads, reward points)
   ===================================================================== */

/* guest view (e.g. return form without login): no sidebar */
.acc-layout--solo {
  grid-template-columns: minmax(0, 1fr);
}

/* sidebar group label */
.acc-nav__group {
  margin: 14px 12px 4px;
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.acc-link {
  color: var(--acc-accent);
  font-weight: 500;
  text-decoration: none;
}

.acc-link:hover {
  text-decoration: underline;
}

.acc-note {
  margin: 0;
  color: var(--acc-muted);
  font-size: 14px;
  line-height: 1.6;
}

.acc-status--lg {
  padding: 8px 16px;
  font-size: 13px;
}

/* ---- info boxes (order / return summary) ---- */
.acc-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.acc-info-grid + .acc-info-grid {
  margin-top: 12px;
}

.acc-info-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.acc-info-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 16px;
}

.acc-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--acc-line);
  border-radius: 14px;
  background: #fcfafb;
}

.acc-info--spaced {
  margin-top: 12px;
}

.acc-info__label {
  color: var(--acc-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acc-info__value {
  color: var(--acc-ink);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.acc-info__text {
  margin: 0;
  color: var(--acc-ink);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

/* ---- order items ---- */
.acc-items {
  display: grid;
  gap: 12px;
}

.acc-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  background: #fff;
}

.acc-item__main {
  min-width: 0;
}

.acc-item__name {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--acc-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

a.acc-item__name:hover {
  color: var(--acc-accent);
}

.acc-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--acc-muted);
  font-size: 13px;
}

.acc-item__meta a {
  color: var(--acc-accent);
}

.acc-item__nums {
  display: flex;
  gap: 24px;
  margin: 0;
}

.acc-item__nums > div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.acc-item__nums dt {
  color: var(--acc-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acc-item__nums dd {
  margin: 0;
  font-size: 14px;
  white-space: nowrap;
}

.acc-item__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acc-item__actions form {
  margin: 0;
}

.acc-item__actions .acc-btn {
  width: 100%;
}

/* ---- totals ---- */
.acc-totals {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  margin: 20px 0 0 auto;
  padding: 16px 18px;
  border-radius: 16px;
  background: #faf7f8;
}

.acc-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.acc-totals__row dt {
  color: var(--acc-muted);
}

.acc-totals__row dd {
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}

.acc-totals__row.is-grand {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--acc-line);
  font-size: 16px;
}

.acc-totals__row.is-grand dt,
.acc-totals__row.is-grand dd {
  color: var(--acc-ink);
  font-weight: 700;
}

/* ---- status history timeline ---- */
.acc-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
}

.acc-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 2px;
  background: var(--acc-line);
}

.acc-timeline__item {
  position: relative;
}

.acc-timeline__item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -22px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d5c3c8;
  box-shadow: 0 0 0 1px #d5c3c8;
}

.acc-timeline__item:first-child::before {
  background: var(--acc-accent);
  box-shadow: 0 0 0 1px var(--acc-accent);
}

.acc-timeline__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.acc-timeline__date {
  color: var(--acc-muted);
  font-size: 13px;
}

.acc-timeline__text {
  margin: 8px 0 0;
  color: var(--acc-ink);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- stat card (balance / points) ---- */
.acc-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(90deg, #fff 0%, #fdf5f7 100%);
  border: 1px solid var(--acc-line);
}

.acc-stat__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-stat__body small {
  color: var(--acc-muted);
  font-size: 13px;
}

.acc-stat__body strong {
  color: var(--acc-accent);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

/* ---- payment methods (markup comes from payment extensions) ---- */
.acc-payments__list {
  display: grid;
  gap: 12px;
}

.acc-payments__item {
  padding: 16px 18px;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  background: #fff;
  font-size: 14px;
}

.acc-payments__item .btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--acc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--acc-ink);
  font: 600 13px/1 var(--font, "Gilroy", sans-serif);
  cursor: pointer;
}

.acc-payments__item .btn-danger {
  border-color: #f3d4d4;
  color: #c40000;
}

/* ---- return form ---- */
.acc-fieldset {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.acc-fieldset__title {
  margin-bottom: 14px;
  padding: 0;
  color: var(--acc-ink);
  font-size: 16px;
  font-weight: 700;
}

.acc-checks--pill {
  min-height: 50px;
  align-items: center;
}

.acc-checks--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.acc-check--card:has(input:checked) {
  border-color: var(--acc-accent);
  background: var(--acc-accent-soft);
}

.acc-agree {
  display: flex;
  margin-top: 4px;
}

.acc-agree a {
  color: var(--acc-accent);
}

.acc-captcha {
  margin-top: 18px;
}

/* ---- part 3 responsive ---- */
@media (max-width: 991px) {
  .acc-nav__group {
    display: none;
  }
}

@media (max-width: 767px) {
  .acc-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .acc-item__nums {
    justify-content: space-between;
    padding: 12px 0;
    border-top: 1px solid #f4eff1;
    border-bottom: 1px solid #f4eff1;
  }

  .acc-item__nums > div {
    align-items: flex-start;
  }

  .acc-item__actions {
    flex-direction: row;
  }

  .acc-item__actions > * {
    flex: 1 1 0;
  }

  .acc-totals {
    width: 100%;
  }

  .acc-head > .acc-status {
    align-self: flex-start;
  }
}
