.account-dashboard {
  display: grid;
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 28px;
  margin: 28px 0 36px;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: 112px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(113, 135, 166, 0.32);
  border-radius: 24px;
  background: linear-gradient(155deg, #fff, var(--industrial-bg));
  box-shadow: 0 18px 45px rgba(12, 35, 70, 0.1);
}

.account-profile {
  display: grid;
  min-height: 112px;
  padding: 18px 15px;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border-radius: 17px;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(215, 182, 108, 0.2),
      transparent 35%
    ),
    linear-gradient(135deg, var(--industrial-navy), var(--industrial-navy));
  color: #fff;
}

.account-profile-avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--industrial-yellow);
  font-size: 25px;
}

.account-profile > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-profile > div small,
.account-profile > div span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.account-profile strong {
  overflow: hidden;
  margin: 4px 0;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-tabs {
  display: grid;
  gap: 2px;
  margin: 12px 0;
}

.account-tabs a {
  display: grid;
  min-height: 54px;
  padding: 6px 8px;
  grid-template-columns: 36px minmax(0, 1fr) 16px;
  gap: 9px;
  align-items: center;
  border: 1px solid transparent;
  border-bottom-color: #edf1f4;
  border-radius: 10px;
  color: var(--industrial-steel);
  transition: 0.22s ease;
}

.account-tabs a > i:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #f4f6f8;
  color: #64768a;
  font-size: 16px;
}

.account-tabs a > span {
  display: flex;
  min-width: 0;
  align-items: center;
}

.account-tabs a strong {
  color: var(--industrial-navy);
  font-size: 13px;
  font-weight: 650;
}

.account-tabs a small {
  display: none !important;
  color: var(--industrial-steel);
  font-size: 12px;
}

.account-tabs a[href*="Questions"] {
  display: none !important;
}

.account-tabs a > i:last-child {
  color: color-mix(in srgb, var(--industrial-steel) 26%, white);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.account-tabs a:hover {
  border-color: transparent;
  background: #f5f7f9;
  transform: none;
}

.account-tabs a[aria-current] {
  border-color: #e8edf2;
  background: #f7f9fb;
  box-shadow: inset -2px 0 var(--industrial-navy);
}

.account-tabs a[aria-current] > i:first-child {
  background: #eaf0f5;
  color: var(--industrial-navy);
}

.account-tabs a[aria-current] strong {
  color: var(--industrial-navy);
}

.account-tabs a[aria-current] > i:last-child {
  color: #9aa8b6;
  transform: none;
}

.account-sidebar-help {
  display: flex;
  padding: 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(190, 156, 91, 0.27);
  border-radius: 14px;
  background: var(--industrial-bg);
}

.account-sidebar-help > i {
  color: var(--industrial-yellow-dark);
  font-size: 22px;
}

.account-sidebar-help > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-sidebar-help strong,
.account-sidebar-help a {
  font-size: 12px;
}

.account-sidebar-help a {
  color: var(--industrial-yellow-dark);
}

.account-content {
  min-width: 0;
  min-height: 620px;
  padding: 24px;
  border: 1px solid rgba(113, 135, 166, 0.32);
  border-radius: 24px;
  background: linear-gradient(155deg, #fff, var(--industrial-bg));
  box-shadow: 0 18px 45px rgba(12, 35, 70, 0.1);
  font-size: 14px;
}

.account-section[hidden] {
  display: none !important;
}

.account-section:not([hidden]) {
  animation: accountSectionIn 0.28s ease both;
}

.overview-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.overview-heading span {
  display: inline-flex;
  min-height: 25px;
  padding: 3px 10px;
  align-items: center;
  border: 1px solid rgba(181, 138, 39, 0.18);
  border-radius: 999px;
  background: #fbf7e9;
  color: var(--industrial-yellow-dark);
  font-size: 11px;
  font-weight: 700;
}

.overview-heading h2 {
  margin: 8px 0 4px;
  color: var(--industrial-navy);
  font-size: 25px;
  line-height: 1.45;
}

.overview-heading p {
  margin: 0;
  color: var(--industrial-steel);
  font-size: 14px;
}

.overview-heading > i {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(181, 138, 39, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff9e7, #f4e9c8);
  color: #806000;
  font-size: 20px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.account-stats article {
  display: flex;
  min-width: 0;
  padding: 16px 13px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(113, 135, 166, 0.22);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, var(--industrial-bg));
}

.stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  font-size: 17px;
}

.stat-orders {
  background: var(--industrial-bg);
  color: var(--industrial-steel);
}
.stat-addresses {
  background: var(--industrial-bg);
  color: #667544;
}
.stat-favorites {
  background: var(--industrial-bg);
  color: #a05a55;
}
.stat-questions {
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  color: var(--industrial-yellow-dark);
}

.account-stats article > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.account-stats strong {
  color: var(--industrial-navy);
  font-size: 22px;
}

.account-stats small {
  overflow: hidden;
  color: var(--industrial-steel);
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
  gap: 16px;
}

.overview-panels > article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(113, 135, 166, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f9fafb);
  box-shadow: 0 8px 22px rgba(12, 35, 70, 0.035);
}

.overview-panel-title {
  display: flex;
  margin-bottom: 16px;
  align-items: center;
  gap: 9px;
}

.overview-panel-title i {
  color: var(--industrial-yellow-dark);
}
.overview-panel-title h3 {
  margin: 0;
  color: var(--industrial-navy);
  font-size: 17px;
}

.overview-empty {
  min-height: 132px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border: 1px solid rgba(113, 135, 166, 0.12);
  border-radius: 12px;
  background: linear-gradient(145deg, #f5f7f8, #eef2f4);
}

.overview-empty > i {
  margin-bottom: 10px;
  color: var(--industrial-yellow-dark);
  font-size: 25px;
}
.overview-empty strong {
  color: var(--industrial-steel);
  font-size: 14px;
}
.overview-empty p {
  max-width: 360px;
  margin: 7px 0 0;
  color: var(--industrial-steel);
  font-size: 12px;
  line-height: 1.9;
}

.overview-guide > a {
  display: grid;
  min-height: 66px;
  padding: 9px;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  gap: 9px;
  align-items: center;
  border-radius: 13px;
  color: var(--industrial-steel);
}

.overview-guide > a:hover {
  background: var(--industrial-bg);
}
.overview-guide > a > i:first-child {
  color: var(--industrial-yellow-dark);
  font-size: 19px;
}
.overview-guide > a > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.overview-guide > a strong {
  color: var(--industrial-navy);
  font-size: 13px;
}
.overview-guide > a small {
  color: var(--industrial-steel);
  font-size: 11px;
}
.overview-guide > a > i:last-child {
  color: var(--industrial-muted);
  font-size: 13px;
}

.account-section > h2,
.account-section-heading h2 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 15px;
  color: var(--industrial-navy);
  font-size: 24px;
}

.account-section > h2::after,
.account-section-heading h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--industrial-yellow),
    color-mix(in srgb, var(--industrial-yellow) 19%, white)
  );
}

.account-section h2 small {
  margin-right: 8px;
  color: var(--industrial-yellow-dark);
  font-size: 14px;
}

.account-section-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-section-heading h2 {
  margin-bottom: 0;
}

.address-account-card {
  margin-bottom: 16px;
  border-color: rgba(113, 135, 166, 0.24) !important;
  box-shadow: 0 8px 25px rgba(12, 35, 70, 0.06) !important;
}

.address-account-card h3 {
  color: var(--industrial-navy);
  font-size: 18px;
}

.address-account-card h3 small {
  margin-inline-start: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  font-size: 12px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-actions button,
[data-draft-delete] {
  padding: 9px 14px;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-radius: 9px;
  background: var(--industrial-bg);
  color: var(--industrial-navy);
  font: inherit;
  font-size: 13px;
}

.account-actions button:disabled {
  opacity: 0.5;
}

.account-section select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--industrial-bg);
  border-radius: 9px;
  background: #fff;
  color: var(--industrial-navy);
  font: inherit;
}

.account-section .flow-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#favorites.account-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#questionForm.flow-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#favoritesView .flow-cards {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

#favoritesView .favorite-item-card {
  display: grid;
  grid-template-columns: minmax(190px, 30%) minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 8px 22px;
  align-items: center;
  padding: 14px;
  border-color: rgba(113, 135, 166, 0.22);
  background: #fff;
  box-shadow: 0 10px 26px rgba(12, 35, 70, 0.06);
}

#favoritesView .favorite-item-card > a {
  display: contents;
}

#favoritesView .favorite-item-card .flow-photo {
  grid-column: 1;
  grid-row: 1 / 4;
  display: block;
  width: 100%;
  height: 210px;
  max-height: none;
  border-radius: 14px;
  background: #edf1f3;
  object-fit: cover;
}

#favoritesView .favorite-item-card h2 {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-height: 0;
  margin: 0;
}

#favoritesView .favorite-item-card > p {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
}

#favoritesView .favorite-item-card .list-remove-button {
  grid-column: 2;
  grid-row: 3;
  justify-self: start;
}

.draft-text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.account-empty-note {
  padding: 25px;
  color: var(--industrial-steel);
}

#questionList {
  margin-top: 20px;
}

#accountStatus {
  margin: 16px 0 0;
  color: #587064;
  font-size: 14px;
  line-height: 1.8;
}

@keyframes accountSectionIn {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 991px) {
  .account-dashboard {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 18px;
  }
  .account-content {
    padding: 22px;
  }
  .account-tabs a {
    grid-template-columns: 38px minmax(0, 1fr) 14px;
  }
  .account-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .account-dashboard {
    display: block;
    margin-top: 20px;
  }
  .account-sidebar {
    position: static;
    margin-bottom: 18px;
  }
  .account-profile {
    min-height: 92px;
  }
  .account-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-tabs a {
    min-height: 58px;
    grid-template-columns: 36px minmax(0, 1fr);
  }
  .account-tabs a > i:first-child {
    width: 36px;
    height: 36px;
  }
  .account-tabs a > i:last-child,
  .account-tabs a small {
    display: none;
  }
  .account-sidebar-help {
    display: none;
  }
  .account-content {
    min-height: 480px;
    padding: 19px 15px;
    border-radius: 19px;
  }
  .overview-heading h2 {
    font-size: 22px;
  }
  .overview-heading > i {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }
  .account-section .flow-cards {
    grid-template-columns: 1fr;
  }
  #favorites.account-section {
    padding: 0;
  }
  #favoritesView .favorite-item-card {
    grid-template-columns: minmax(105px, 34%) minmax(0, 1fr);
    gap: 7px 13px;
    padding: 10px;
  }
  #favoritesView .favorite-item-card .flow-photo {
    height: 150px;
  }
  .account-section-heading {
    align-items: center;
  }
  .account-section-heading h2,
  .account-section > h2 {
    font-size: 21px;
  }
}

@media (max-width: 430px) {
  .account-tabs {
    grid-template-columns: 1fr;
  }
  #favorites.account-section {
    padding: 0;
  }
  #favoritesView .favorite-item-card {
    grid-template-columns: minmax(88px, 32%) minmax(0, 1fr);
    gap: 6px 10px;
    padding: 8px;
  }
  #favoritesView .favorite-item-card .flow-photo {
    height: 124px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-section:not([hidden]) {
    animation: none;
  }
}

.orders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.orders-heading span {
  color: var(--industrial-yellow-dark);
  font-size: 11px;
  font-weight: 700;
}
.orders-heading h2 {
  margin: 5px 0 0;
  font-size: 24px;
}
.orders-heading h2 small {
  margin-inline-start: 7px;
  color: var(--industrial-steel);
  font-size: 12px;
  font-weight: 500;
}
.orders-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 18%, white);
  border-radius: 10px;
  background: var(--industrial-bg);
  color: var(--industrial-navy);
  font-size: 12px;
  font-weight: 700;
}
.profile-order-list {
  display: grid;
  gap: 14px;
}
.profile-order-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    var(--industrial-bg),
    var(--industrial-bg)
  );
  box-shadow:
    0 12px 25px -22px rgba(10, 35, 64, 0.55),
    inset 0 1px #fff;
}
.profile-order-card header,
.profile-order-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
}
.profile-order-card header {
  border-bottom: 1px solid
    color-mix(in srgb, var(--industrial-yellow) 14%, white);
}
.profile-order-card header > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.profile-order-card header strong {
  color: var(--industrial-navy);
  font-size: 12px;
}
.profile-order-card time {
  color: var(--industrial-steel);
  font-size: 11px;
  white-space: nowrap;
}
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px !important;
  white-space: nowrap;
}
.order-status.is-shipping {
  background: var(--industrial-bg);
  color: var(--industrial-steel);
}
.order-status.is-processing {
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  color: var(--industrial-yellow-dark);
}
.order-status.is-delivered {
  background: var(--industrial-bg);
  color: #35704b;
}
.order-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}
.order-products {
  display: flex;
  align-items: center;
  min-width: 0;
}
.order-products img {
  width: 44px;
  height: 54px;
  margin-inline-end: 10px;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-radius: 9px;
  object-fit: cover;
  background: var(--industrial-bg);
}
.order-products-multiple img + img {
  margin-inline-start: -22px;
}
.order-products > div {
  min-width: 0;
}
.order-products strong,
.order-products small,
.order-total small,
.order-total strong {
  display: block;
}
.order-products strong {
  font-size: 13px;
}
.order-products small,
.order-total small {
  margin-top: 4px;
  color: var(--industrial-steel);
  font-size: 10px;
}
.order-total {
  text-align: left;
}
.order-total strong {
  margin-top: 5px;
  color: var(--industrial-navy);
  font-size: 13px;
  white-space: nowrap;
}
.profile-order-card footer {
  border-top: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  background: rgba(246, 240, 229, 0.62);
  font-size: 11px;
}
.profile-order-card footer > span {
  color: var(--industrial-steel);
}
.profile-order-card footer > span i {
  margin-inline-end: 5px;
  color: var(--industrial-yellow-dark);
}
.profile-order-card footer > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--industrial-yellow-dark);
  font-weight: 700;
}
.profile-order-card footer > a:hover {
  color: var(--industrial-navy);
}
@media (max-width: 640px) {
  .orders-heading {
    align-items: flex-start;
  }
  .orders-heading h2 {
    font-size: 21px;
  }
  .profile-order-card header,
  .profile-order-card header > div,
  .order-body {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-order-card header {
    position: relative;
  }
  .profile-order-card time {
    position: absolute;
    top: 16px;
    left: 14px;
  }
  .order-body {
    gap: 12px;
  }
  .order-total {
    text-align: right;
  }
  .profile-order-card footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.profile-order-card[hidden],
.orders-pagination nav[hidden] {
  display: none;
}
.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
}
.orders-pagination p {
  margin: 0;
  color: var(--industrial-steel);
  font-size: 12px;
}
.orders-pagination nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.orders-pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-radius: 10px;
  background: var(--industrial-bg);
  color: var(--industrial-navy);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.orders-pagination button[aria-current="page"] {
  background: var(--industrial-navy);
  border-color: var(--industrial-navy);
  color: #fff;
}
.orders-pagination button:hover:not(:disabled):not([aria-current]) {
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  border-color: var(--industrial-yellow);
}
.orders-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}
.orders-pagination button:focus-visible {
  outline: 2px solid var(--industrial-yellow-dark);
  outline-offset: 3px;
}
#ordersTitle {
  scroll-margin-top: 120px;
}
@media (max-width: 575px) {
  .orders-pagination {
    justify-content: center;
  }
}

/* Orders typography: clearer hierarchy and calmer reading rhythm. */
#orders .orders-heading > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--industrial-yellow-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.account-profile-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  padding: 7px 9px;
  border: 1px solid var(--industrial-yellow);
  border-radius: 9px;
  background: var(--industrial-yellow);
  box-shadow: none;
  color: var(--industrial-navy);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.account-profile-edit:hover,
.account-profile-edit:focus-visible {
  border-color: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  color: var(--industrial-navy);
  transform: translateY(-1px);
}

dialog.shared-login-modal.profile-edit-dialog {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  max-height: calc(100dvh - 28px);
  min-height: 550px;
  margin: 0;
}

dialog.shared-login-modal.profile-edit-dialog[open] {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
dialog.shared-login-modal.profile-edit-dialog::backdrop {
  background: rgba(3, 13, 35, 0.48);
  backdrop-filter: blur(5px);
}
.profile-edit-dialog .login-step {
  padding-top: 24px;
}
.profile-edit-dialog .profile-edit-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--industrial-yellow-dark);
  font-size: 11px;
  font-weight: 700;
}
.profile-edit-dialog .login-step h2 {
  margin-bottom: 6px;
  font-size: 23px;
}
.profile-edit-dialog .login-step > p {
  margin-bottom: 20px;
  font-size: 13px;
}
.profile-edit-dialog .profile-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 12px;
}
.profile-edit-dialog .profile-edit-form > label {
  margin: 0;
  font-size: 13px;
}
.profile-edit-dialog .profile-edit-form .login-input {
  margin-top: 7px;
}
.profile-edit-dialog .profile-edit-form .login-input input {
  text-align: right;
}
.profile-edit-dialog .profile-edit-form input[name="firstName"],
.profile-edit-dialog .profile-edit-form input[name="lastName"] {
  direction: rtl;
}
.profile-edit-dialog .profile-edit-full,
.profile-edit-dialog .profile-edit-status {
  grid-column: 1 / -1;
}
.profile-edit-dialog .profile-edit-gender {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.profile-edit-dialog .profile-edit-gender legend {
  margin-bottom: 7px;
  color: var(--industrial-navy);
  font-size: 13px;
  font-weight: 600;
}
.profile-edit-dialog .profile-edit-gender > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-edit-dialog .profile-edit-gender label {
  display: flex;
  min-height: 58px;
  margin: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--industrial-line);
  border-radius: 9px;
  background: #fff;
  color: var(--industrial-steel);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.profile-edit-dialog .profile-edit-gender input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--industrial-navy);
  cursor: pointer;
}
.profile-edit-dialog .profile-edit-gender label:has(input:checked) {
  border-color: var(--industrial-yellow-dark);
  background: var(--industrial-bg);
  color: var(--industrial-navy);
  box-shadow: 0 0 0 3px rgba(185, 137, 68, 0.12);
}
.profile-edit-dialog .profile-edit-form label small {
  margin-inline-start: 5px;
  color: var(--industrial-yellow-dark);
  font-size: 10px;
  font-weight: 500;
}
.profile-edit-dialog .profile-edit-form input[readonly] {
  color: var(--industrial-steel);
  cursor: not-allowed;
}
.profile-edit-dialog .profile-edit-form .login-input:has(input[readonly]) {
  background: var(--industrial-bg);
  border-style: dashed;
}
.profile-edit-dialog .profile-edit-form .login-input:has(input[readonly]) i {
  color: var(--industrial-yellow-dark);
}
.profile-edit-dialog .profile-edit-form .profile-edit-validation {
  display: block;
  min-height: 17px;
  margin: 2px 0 0;
  color: #a34343;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  visibility: hidden;
}
.profile-edit-dialog .profile-edit-validation.field-validation-error {
  visibility: visible;
}
.profile-edit-dialog .login-input:has(.input-validation-error),
.profile-edit-dialog .profile-edit-gender.is-invalid > div {
  border-color: #b75959;
  background: var(--industrial-bg);
  box-shadow: 0 0 0 3px rgba(183, 89, 89, 0.1);
}
.profile-edit-dialog .profile-edit-form button[type="submit"] {
  width: 100%;
  margin-top: 5px;
}
.profile-edit-dialog .profile-edit-cancel {
  width: 100%;
  padding: 4px 0 0;
  border: 0;
  background: transparent;
  color: var(--industrial-steel);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.profile-edit-dialog .profile-edit-cancel:hover {
  color: var(--industrial-navy);
}
.profile-edit-dialog .profile-edit-status {
  display: block;
  min-height: 18px;
  color: #39704b;
  font-size: 11px;
  text-align: center;
}

@media (max-width: 560px) {
  dialog.shared-login-modal.profile-edit-dialog {
    min-height: 0;
  }
  .profile-edit-dialog .profile-edit-form {
    grid-template-columns: 1fr;
  }
  .profile-edit-dialog .profile-edit-full,
  .profile-edit-dialog .profile-edit-status {
    grid-column: auto;
  }
}

@media (max-width: 575px) {
  .account-profile-edit {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    margin: 8px 0 0;
    padding: 8px 12px;
  }
}

#orders .orders-heading h2 {
  color: var(--industrial-navy);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

#orders .orders-heading h2 small {
  margin-inline-start: 10px;
  color: var(--industrial-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: middle;
}

#orders .profile-order-card header strong,
#orders .order-products strong {
  color: var(--industrial-navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

#orders .profile-order-card time,
#orders .order-products small,
#orders .order-total small,
#orders .profile-order-card footer,
#orders .orders-pagination p {
  font-size: 11px;
  line-height: 1.8;
}

#orders .order-total strong {
  color: var(--industrial-navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

#orders .order-status {
  padding: 6px 10px;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 640px) {
  #orders .orders-heading h2 {
    font-size: 20px;
  }
  #orders .orders-heading h2 small {
    font-size: 12px;
  }
}

.account-welcome {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  min-height: 270px;
  margin: 24px 0 28px;
  padding: 34px 46px;
  border: 1px solid var(--industrial-navy);
  border-radius: 26px;
  background:
    radial-gradient(
      ellipse at 12% 40%,
      var(--industrial-navy) 0,
      transparent 55%
    ),
    linear-gradient(115deg, var(--industrial-navy), var(--industrial-navy) 75%);
  box-shadow: 0 18px 40px rgba(12, 30, 49, 0.1);
  color: #fff;
}
.account-welcome-copy {
  position: relative;
  z-index: 1;
}
.account-welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--industrial-yellow);
  font-size: 12px;
}
.account-welcome-brand::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--industrial-yellow);
}
.account-welcome h1 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.5;
}
.account-welcome p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 2;
}
.account-welcome-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}
.account-welcome-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--industrial-steel);
  border-radius: 11px;
  color: var(--industrial-bg);
  font-size: 12px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.account-welcome-links a:first-child {
  border-color: var(--industrial-yellow);
  background: var(--industrial-yellow);
  color: var(--industrial-navy);
  font-weight: 700;
}
.account-welcome-links a:hover {
  border-color: color-mix(in srgb, var(--industrial-yellow) 14%, white);
  background: var(--industrial-navy);
}
.account-welcome-links a:first-child:hover {
  background: color-mix(in srgb, var(--industrial-yellow) 14%, white);
}
.account-welcome-links a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--industrial-yellow) 14%, white);
  outline-offset: 4px;
}
.account-welcome-art {
  display: flex;
  flex: 0 0 150px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin: 0 20px;
  color: var(--industrial-yellow);
  pointer-events: none;
}
.account-welcome-art .account-welcome-tool-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.account-welcome-tool-icon i {
  font-size: 42px;
  line-height: 1;
}
.account-welcome-art > span:last-child {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 767px) {
  .account-welcome {
    min-height: 250px;
    padding: 28px;
    border-radius: 20px;
  }
  .account-welcome-art {
    position: absolute;
    left: 18px;
    top: 22px;
    margin: 0;
    opacity: 0.2;
  }
  .account-welcome-art > span:last-child {
    display: none;
  }
  .account-welcome p {
    max-width: 310px;
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .account-welcome {
    padding: 24px 18px;
  }
  .account-welcome-links a {
    padding: 10px 12px;
  }
}

.account-welcome {
  background:
    linear-gradient(
      270deg,
      rgba(16, 42, 86, 0.97) 0%,
      rgba(16, 42, 86, 0.88) 43%,
      rgba(16, 42, 86, 0.28) 100%
    ),
    url("../../images/heroes/hero-electrical-service.png") center 42% / cover
      no-repeat;
}

.account-welcome-art {
  filter: drop-shadow(0 8px 20px rgba(4, 14, 28, 0.24));
}

.profile-breadcrumb-parent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa4ad;
}

.profile-breadcrumb-parent > a {
  color: #536474;
  text-decoration: none;
}

.profile-breadcrumb-parent > a:hover {
  color: var(--industrial-navy);
}

/* Profile readability: increase compact supporting text by one visual step. */
.account-profile > div :is(small, span),
.account-tabs a small,
.account-sidebar-help :is(strong, a),
.overview-empty p,
.address-account-card h3 small,
#orders .orders-heading > div > span,
.orders-pagination :is(p, button),
.account-welcome-brand,
.account-welcome-links a,
.profile-edit-dialog .profile-edit-cancel {
  font-size: 13px;
}

.account-stats small {
  font-size: 12.5px;
}

.overview-guide > a small,
#orders .profile-order-card time,
#orders .order-products small,
#orders .order-total small,
#orders .profile-order-card footer,
#orders .order-status,
.profile-edit-dialog .profile-edit-kicker,
.profile-edit-dialog .profile-edit-form .profile-edit-validation,
.profile-edit-dialog .profile-edit-status {
  font-size: 12px !important;
}

.account-profile-edit,
.account-welcome-art span,
.profile-edit-dialog .profile-edit-form label small {
  font-size: 11px;
}

@media (max-width: 767px) {
  .account-welcome {
    min-height: 0;
    margin: 12px 0 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background-image:
      linear-gradient(
        270deg,
        rgba(16, 42, 86, 0.98) 0%,
        rgba(16, 42, 86, 0.92) 58%,
        rgba(16, 42, 86, 0.78) 100%
      ),
      url("../../images/heroes/hero-electrical-service.png");
    background-position:
      center,
      62% center;
    background-size: cover;
  }

  .account-welcome-copy {
    width: 100%;
    max-width: 100%;
  }

  .account-welcome-brand,
  .account-welcome p,
  .account-welcome-art {
    display: none;
  }

  .account-welcome h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.45;
  }
  .account-welcome-links {
    gap: 8px;
    margin-top: 10px;
  }
  .account-welcome-links a {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .account-welcome-art {
    display: none;
  }

  .account-dashboard,
  .account-sidebar,
  .account-content,
  .account-section {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .account-sidebar {
    padding: 10px;
    border-radius: 18px;
  }

  .account-content {
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .account-content :is(img, video) {
    max-width: 100%;
  }

  .cart-breadcrumb ol {
    max-width: 100%;
  }

  .inner-page .cart-breadcrumb.profile-breadcrumb {
    width: 100%;
    min-width: 0;
  }

  .inner-page .cart-breadcrumb.profile-breadcrumb ol {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .inner-page .cart-breadcrumb.profile-breadcrumb ol::-webkit-scrollbar {
    display: none;
  }

  .inner-page .cart-breadcrumb.profile-breadcrumb ol > li {
    flex: 0 0 auto;
    gap: 4px;
    white-space: nowrap;
  }

  .inner-page .cart-breadcrumb.profile-breadcrumb ol a {
    gap: 4px;
    padding-inline: 5px;
    white-space: nowrap;
  }

  .inner-page .cart-breadcrumb.profile-breadcrumb ol [aria-current] {
    gap: 4px;
    padding-inline: 7px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .account-welcome {
    margin: 10px 0 14px;
    padding: 14px 15px;
    border-radius: 16px;
  }

  .account-welcome-links {
    margin-top: 8px;
  }

  .account-content {
    padding: 14px 12px;
  }
}

#orders .orders-heading h2 small {
  font-size: 14px;
}

#orders.account-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#orders .profile-order-card {
  border-color: #e1e7ec;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.045);
}

#orders .profile-order-card header {
  border-bottom-color: #edf0f3;
  background: #fafbfc;
}

#orders .profile-order-card footer {
  border-top: 2px solid var(--industrial-yellow) !important;
  background: #f8fafb !important;
  color: var(--industrial-muted) !important;
}

#orders .profile-order-card footer > span {
  color: var(--industrial-muted) !important;
}

#orders .profile-order-card footer > span i {
  color: var(--industrial-yellow-dark) !important;
}

#orders .profile-order-card footer > a {
  color: var(--industrial-navy) !important;
}

#orders .profile-order-card footer > a:hover {
  color: var(--industrial-yellow-dark) !important;
}

#orders .order-status.is-shipping {
  background: #eaf3fb;
  color: #315f84;
}

#orders .order-status.is-processing {
  background: #fff4d9;
  color: #856300;
}

#orders .order-status.is-delivered {
  background: #eaf5ee;
  color: #34704b;
}

#orders .profile-order-card {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#orders .profile-order-card:hover {
  border-color: #d7e0e8;
  box-shadow: 0 14px 28px rgba(16, 42, 67, 0.09);
  transform: translateY(-2px);
}

#orders .order-body {
  min-height: 88px;
  background: linear-gradient(105deg, #fff 0%, #f8fafc 100%);
}

#orders .order-products {
  gap: 12px;
}

#orders .order-product-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #e5eaf0;
  border-radius: 14px;
  background: #f3f6f8;
  color: var(--industrial-navy);
  font-size: 20px;
}

#orders .order-total {
  min-width: 164px;
  padding: 9px 12px;
  border: 1px solid #e8edf1;
  border-radius: 12px;
  background: #fff;
}

#orders .order-total small {
  margin-top: 0;
}

#orders .profile-order-card footer {
  min-height: 42px;
  border-top-width: 1px !important;
}

@media (max-width: 640px) {
  #orders .order-total {
    width: 100%;
  }
}

#orders .order-products img {
  border-color: #e5eaee;
  background: #f3f6f8;
}

#orders .order-total {
  padding: 10px 13px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: #f8fafb;
}

#orders .orders-heading > a {
  border-color: #dfe6eb;
  background: #fff;
  color: var(--industrial-navy);
}

#orders .orders-heading > a:hover {
  border-color: #cbd6de;
  background: #eef3f6;
}

@media (max-width: 767px) {
  #orders.account-section {
    padding: 0;
  }
}

.account-stats .stat-icon {
  border: 1px solid color-mix(in srgb, var(--color-gold) 34%, white);
  background: color-mix(in srgb, var(--color-gold) 17%, white);
  color: var(--color-navy);
}

.account-tabs a > i:first-child,
.overview-guide > a > i:first-child,
.overview-panel-title i,
.account-sidebar-help > i {
  color: var(--color-navy);
}

.account-tabs a[aria-current] > i:first-child {
  border-color: #e3eaf0;
  background: #eaf0f5;
  color: var(--color-navy);
}

.account-tabs a[aria-current] > i:last-child {
  color: #9aa8b6;
}

.overview-panel-title i,
.overview-guide > a > i:first-child {
  color: #b98d00;
}

#addresses .account-section-heading {
  margin-bottom: 30px;
  align-items: center;
}

#addresses #addressList {
  padding: 0;
}

#addresses #addressList > .flow-empty {
  min-height: 220px;
  margin: 0;
  padding: 36px 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 575px) {
  #addresses .account-section-heading {
    margin-bottom: 22px;
  }

  #addresses #addressList {
    padding: 0;
  }

  #addresses #addressList > .flow-empty {
    min-height: 190px;
    padding: 28px 12px;
  }
}

#favoritesView .flow-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#favoritesView .favorite-item-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border-color: #e1e7ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.06);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#favoritesView .favorite-item-card:hover {
  border-color: #cbd7e1;
  box-shadow: 0 14px 30px rgba(16, 42, 67, 0.1);
  transform: translateY(-3px);
}

#favoritesView .favorite-item-card > a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  color: inherit;
  text-decoration: none;
}

#favoritesView .favorite-item-card .flow-photo {
  display: block;
  width: 100%;
  height: clamp(210px, 22vw, 270px);
  flex: 0 0 auto;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #edf1f4;
  object-fit: cover;
  object-position: center;
}

#favoritesView .favorite-item-card h2 {
  min-height: 58px;
  margin: 12px 16px 4px;
  text-align: right;
  font-size: 16px;
  line-height: 1.8;
}

#favoritesView .favorite-item-card > p {
  margin: 5px 16px 14px;
  text-align: right;
  font-size: 15px;
}

#favoritesView .favorite-item-card .list-remove-button {
  width: calc(100% - 28px);
  min-height: 40px;
  margin: auto 14px 14px;
  border-radius: 11px;
}

@media (max-width: 991px) {
  #favoritesView .flow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  #favoritesView .flow-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #favoritesView .favorite-item-card .flow-photo {
    height: 200px;
  }
}
