/* Account / payment storefront UI */
:root {
  --acc-ink: #142033;
  --acc-muted: #6b7280;
  --acc-line: #e6ebf2;
  --acc-soft: #f5f7fb;
  --acc-card: #ffffff;
  --acc-teal: #003868;
  --acc-teal-dark: #002848;
  --acc-teal-soft: #e6eef6;
  --acc-radius: 16px;
}

.acc-page {
  padding: 28px 0 56px;
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 220px);
  min-height: 70vh;
}

.acc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--acc-muted);
  margin-bottom: 18px;
}
.acc-breadcrumb a {
  color: var(--acc-muted);
  text-decoration: none;
}
.acc-breadcrumb a:hover { color: var(--acc-teal); }

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

.acc-sidebar,
.acc-panel {
  background: var(--acc-card);
  border: 1px solid var(--acc-line);
  border-radius: var(--acc-radius);
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.04);
}

.acc-hello {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--acc-line);
}
.acc-hello img {
  width: 44px;
  height: 44px;
}
.acc-hello span {
  display: block;
  font-size: 12px;
  color: var(--acc-muted);
}
.acc-hello strong {
  font-size: 15px;
  color: var(--acc-ink);
}

.acc-nav {
  padding: 10px;
}
.acc-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--acc-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.acc-nav a:hover,
.acc-nav a.active {
  background: var(--acc-teal-soft);
  color: var(--acc-teal);
}
.acc-nav .acc-nav-label {
  margin: 14px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acc-muted);
}
.acc-nav form { margin: 0; }
.acc-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #be123c;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.acc-logout-btn:hover { background: #fef2f2; }

.acc-mobile-nav {
  display: none;
}

.acc-panel-body { padding: 22px; }
.acc-panel-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.acc-panel-head h1,
.acc-panel-head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--acc-ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}
.acc-count-badge {
  text-transform: none;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0;
}
.acc-panel-head p {
  margin: 4px 0 0;
  color: var(--acc-muted);
  font-size: 13px;
}
.acc-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.acc-panel-actions .acc-btn {
  min-height: 42px;
  white-space: nowrap;
}

.acc-journey-card {
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  background: #fff;
  margin: 16px 0 0;
  overflow: hidden;
}
.acc-journey-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--acc-line);
  background: var(--acc-soft);
}
.acc-journey-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--acc-ink);
  text-align: left;
  letter-spacing: normal;
  display: block;
}
.acc-journey {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 16px 18px;
}
.acc-journey-step {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  z-index: 1;
}
.acc-journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--acc-line);
  z-index: 0;
}
.acc-journey-step.is-done:not(:last-child)::after,
.acc-journey-step.is-current:not(:last-child)::after {
  background: var(--acc-teal);
}
.acc-journey-step.is-current:not(:last-child)::after {
  background: linear-gradient(90deg, var(--acc-teal) 0 50%, var(--acc-line) 50% 100%);
}
.acc-journey-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--acc-line);
  color: var(--acc-muted);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.acc-journey-step.is-done .acc-journey-dot,
.acc-journey-step.is-current .acc-journey-dot {
  background: var(--acc-teal);
  border-color: var(--acc-teal);
  color: #fff;
}
.acc-journey-step.is-canceled .acc-journey-dot {
  background: #be123c;
  border-color: #be123c;
  color: #fff;
}
.acc-journey-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.acc-journey-step strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--acc-ink);
  line-height: 1.3;
}
.acc-journey-step.is-upcoming strong {
  color: var(--acc-muted);
  font-weight: 500;
}
.acc-journey-step.is-canceled strong {
  color: #be123c;
}
.acc-journey-step small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--acc-muted);
  line-height: 1.3;
}
.acc-history {
  padding: 0 16px 16px;
  border-top: 1px dashed var(--acc-line);
}
.acc-history h3 {
  margin: 14px 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--acc-ink);
  text-align: left;
}
.acc-history-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--acc-line);
}
.acc-history-item:last-child { border-bottom: 0; }
.acc-history-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.acc-history-top time {
  font-size: 12px;
  color: var(--acc-muted);
}
.acc-history-item p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--acc-ink);
  line-height: 1.5;
}
.acc-history-empty {
  margin: 0;
  padding: 4px 0 8px;
  font-size: 13px;
  color: var(--acc-muted);
}

.acc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--acc-teal);
  color: #fff !important;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none !important;
}
.acc-btn i {
  line-height: 1;
  font-size: 14px;
}
.acc-btn:hover { background: var(--acc-teal-dark); color: #fff !important; }
.acc-btn-outline {
  background: #fff;
  color: var(--acc-ink) !important;
  border: 1px solid var(--acc-line);
}
.acc-btn-outline:hover {
  border-color: var(--acc-teal);
  color: var(--acc-teal) !important;
  background: var(--acc-teal-soft);
}
.acc-btn-danger {
  background: #fff;
  color: #be123c !important;
  border: 1px solid #fecdd3;
}

.acc-form .form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--acc-ink);
}
.acc-form .form-control,
.acc-form .form-select {
  border-radius: 10px;
  border-color: #d7dee8;
  min-height: 44px;
}
.acc-form .form-control:focus,
.acc-form .form-select:focus {
  border-color: var(--acc-teal);
  box-shadow: 0 0 0 0.15rem rgba(15, 118, 110, 0.15);
}

.acc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}
.acc-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.acc-filters .orderstatus.active {
  background: var(--acc-teal) !important;
  color: #fff !important;
  border-color: var(--acc-teal) !important;
}
.acc-filters .form-select {
  width: auto;
  min-width: 160px;
  max-width: 200px;
  min-height: 44px;
  border-radius: 10px;
  border-color: #d7dee8;
  font-size: 14px;
}

.acc-order {
  border: 1px solid var(--acc-line);
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 16px;
  background: #fff;
}
.acc-order-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: var(--acc-soft);
  border-bottom: 1px solid var(--acc-line);
  border-radius: 14px 14px 0 0;
  position: relative;
  z-index: 1;
}
.acc-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.acc-order-meta small {
  display: block;
  color: var(--acc-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.acc-order-meta b { color: var(--acc-ink); font-size: 14px; }
.acc-ship-to {
  position: relative;
}
.acc-ship-toggle {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.acc-ship-toggle:hover { color: var(--acc-teal); }
.acc-ship-toggle .bi {
  font-size: 12px;
  transition: transform .15s ease;
}
.acc-ship-to.open .acc-ship-toggle .bi {
  transform: rotate(180deg);
}
.ship-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  border: 1px solid var(--acc-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 32, 51, 0.14);
  font-size: 13px;
  line-height: 1.5;
  color: var(--acc-ink);
  font-weight: 400;
}
.ship-dropdown.open { display: block; }
.ship-dropdown strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}
.acc-order-body {
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}
.acc-order-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 13px;
}
.acc-order-id strong {
  color: var(--acc-ink);
  font-size: 13px;
}
.acc-order-link-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.acc-order-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--acc-teal);
  background: var(--acc-teal);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  white-space: nowrap;
}
.acc-order-btn i {
  font-size: 14px;
  line-height: 1;
}
.acc-order-btn:hover {
  background: var(--acc-teal-dark);
  border-color: var(--acc-teal-dark);
  color: #fff !important;
}
.acc-order-btn-outline {
  background: #fff;
  color: var(--acc-teal) !important;
  border-color: var(--acc-teal);
}
.acc-order-btn-outline:hover {
  background: var(--acc-teal-soft);
  color: var(--acc-teal) !important;
  border-color: var(--acc-teal);
}
.acc-order-body { padding: 16px; }
.acc-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--acc-line);
}
.acc-item:last-child { border-bottom: 0; padding-bottom: 0; }
.acc-item:first-child { padding-top: 0; }
.acc-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--acc-line);
  background: var(--acc-soft);
  flex-shrink: 0;
}
.acc-item-info {
  flex: 1;
  min-width: 0;
}
.acc-item h6 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--acc-ink);
}
.acc-item-meta {
  color: var(--acc-muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.acc-item-info strong {
  font-size: 14px;
  color: var(--acc-ink);
}
.acc-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 168px;
}
.acc-item-actions .acc-btn {
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}
.acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acc-teal-soft);
  color: var(--acc-teal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.acc-badge.badge-warning {
  background: #fff4de;
  color: #b45309;
}
.acc-badge.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}
.acc-badge.badge-primary {
  background: #e0e7ff;
  color: #3730a3;
}
.acc-badge.badge-success {
  background: #dcfce7;
  color: #15803d;
}
.acc-badge.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.acc-badge.badge-secondary {
  background: #f1f5f9;
  color: #475569;
}
.acc-badge.badge-dark {
  background: #e2e8f0;
  color: #1e293b;
}

.acc-address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.acc-address-card {
  border: 1px solid var(--acc-line);
  border-radius: 14px;
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.acc-address-card h6 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--acc-ink);
  text-transform: uppercase;
}
.acc-address-card p {
  margin: 0;
  color: var(--acc-ink);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}
.acc-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.acc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.acc-detail-box {
  border: 1px solid var(--acc-line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}
.acc-detail-box strong {
  display: block;
  margin-bottom: 8px;
  color: var(--acc-ink);
}
.acc-detail-box,
.acc-totals {
  font-size: 13px;
  line-height: 1.6;
  color: var(--acc-ink);
}
.acc-totals-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--acc-line);
}
.acc-totals-row:last-child {
  border-bottom: 0;
  font-weight: 700;
  padding-top: 10px;
}

.pay-result {
  max-width: 640px;
  margin: 40px auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--acc-line);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 12px 30px rgba(20, 32, 51, 0.06);
}
.pay-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}
.pay-result-icon.success {
  background: #ecfdf5;
  color: #047857;
}
.pay-result-icon.cancel {
  background: #fff7ed;
  color: #c2410c;
}
.pay-result h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--acc-ink);
  margin-bottom: 8px;
}
.pay-result p {
  color: var(--acc-muted);
  margin-bottom: 8px;
}
.pay-result-meta {
  background: var(--acc-soft);
  border-radius: 12px;
  padding: 14px;
  margin: 18px 0 22px;
  text-align: left;
}
.pay-result-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
}
.pay-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.header-profile-dropdown .dropdown-toggle::after { display: none; }
.header-profile-dropdown .dropdown-menu {
  min-width: 220px;
  border-radius: 12px;
  border-color: var(--acc-line);
  box-shadow: 0 12px 30px rgba(20, 32, 51, 0.12);
  padding: 8px;
}
.header-profile-dropdown .dropdown-item {
  border-radius: 8px;
  font-size: 14px;
  padding: 10px 12px;
}
.header-profile-dropdown .dropdown-item:hover {
  background: var(--acc-teal-soft);
  color: var(--acc-teal);
}
.header-profile-dropdown .dropdown-header {
  font-weight: 700;
  color: var(--acc-ink);
}

.profile-hero {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, var(--acc-teal-soft) 100%);
  margin-bottom: 18px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--acc-teal);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.profile-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.profile-hero-copy h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--acc-ink);
  text-align: left;
  line-height: 1.3;
  letter-spacing: normal;
}
.profile-hero-copy p {
  margin: 4px 0 8px;
  color: var(--acc-muted);
  font-size: 14px;
  text-align: left;
}
.profile-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--acc-muted);
  font-size: 13px;
}
.profile-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex-shrink: 0;
  width: 190px;
}
.profile-hero-actions .acc-btn {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.2;
}
.profile-hero-actions .acc-btn-outline {
  border-color: var(--acc-line);
}
.profile-details-card {
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.profile-details-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--acc-line);
  background: #fff;
}
.profile-details-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--acc-ink);
}
.profile-details-head p {
  margin: 4px 0 0;
  color: var(--acc-muted);
  font-size: 13px;
}
.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-detail-item {
  padding: 16px 18px;
  border-bottom: 1px solid var(--acc-line);
  border-right: 1px solid var(--acc-line);
  background: #fff;
}
.profile-detail-item:nth-child(2n) { border-right: 0; }
.profile-detail-item:nth-last-child(-n + 2) { border-bottom: 0; }
.profile-detail-item span {
  display: block;
  font-size: 12px;
  color: var(--acc-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.profile-detail-item strong {
  font-size: 15px;
  color: var(--acc-ink);
  font-weight: 600;
  word-break: break-word;
}
.profile-edit-panel {
  display: none;
  border: 1px solid var(--acc-line);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  background: #fff;
}
.profile-edit-panel.is-open { display: block; }
.profile-edit-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.profile-edit-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--acc-ink);
}
.profile-edit-head p {
  margin: 4px 0 0;
  color: var(--acc-muted);
  font-size: 13px;
}
.profile-edit-close {
  border: 0;
  background: var(--acc-soft);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  color: var(--acc-muted);
}
.profile-pass-wrap {
  position: relative;
}
.profile-pass-wrap .form-control {
  padding-right: 44px;
}
.profile-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--acc-muted);
}

@media (max-width: 767px) {
  .profile-details-grid { grid-template-columns: 1fr; }
  .profile-detail-item {
    border-right: 0 !important;
  }
  .profile-detail-item:last-child { border-bottom: 0; }
  .profile-detail-item:nth-last-child(2) { border-bottom: 1px solid var(--acc-line); }
  .profile-hero {
    flex-wrap: wrap;
  }
  .profile-hero-copy { flex: 1 1 calc(100% - 92px); }
  .profile-hero-actions {
    width: 100%;
    flex-direction: row;
  }
  .profile-hero-actions .acc-btn { flex: 1; justify-content: center; }

  .acc-page {
    padding: 14px 0 28px;
  }
  .acc-breadcrumb {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .acc-panel-body {
    padding: 14px 12px;
  }
  .acc-panel-head {
    margin-bottom: 12px;
    align-items: flex-start;
  }
  .acc-panel-head h1 {
    font-size: 1.2rem;
  }
  .acc-panel-head p {
    font-size: 13px;
  }
  .acc-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }
  .acc-filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .acc-filter-tabs .acc-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 4px;
    font-size: 12px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
  .acc-filters .form-select {
    width: 100%;
    max-width: none;
    min-height: 40px;
  }
  .acc-order {
    margin-bottom: 14px;
  }
  .acc-order-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .acc-order-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }
  .acc-order-meta > div {
    min-width: 0;
  }
  .acc-order-meta small {
    margin-bottom: 4px;
  }
  .acc-order-meta b {
    font-size: 13px;
    word-break: break-word;
  }
  .acc-ship-toggle {
    max-width: 100%;
    align-items: center;
  }
  .acc-order-links {
    width: 100%;
    align-items: stretch;
  }
  .acc-order-id {
    text-align: left;
  }
  .acc-order-link-btns {
    width: 100%;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .acc-order-btn {
    flex: 1;
    min-height: 38px;
    padding: 8px 10px;
  }
  .acc-order-body {
    padding: 12px;
  }
  .acc-item {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }
  .acc-item img {
    width: 64px;
    height: 64px;
  }
  .acc-item-info {
    flex: 1 1 calc(100% - 74px);
  }
  .acc-item-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .acc-item-actions .acc-btn {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 12px;
  }
  .ship-dropdown {
    max-width: min(280px, calc(100vw - 40px));
  }
  .acc-journey {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 8px;
  }
  .acc-journey-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 0 0 16px;
  }
  .acc-journey-step:not(:last-child)::after {
    top: 34px;
    left: 16px;
    width: 2px;
    height: calc(100% - 18px);
    background: var(--acc-line);
  }
  .acc-journey-step.is-done:not(:last-child)::after,
  .acc-journey-step.is-current:not(:last-child)::after {
    background: var(--acc-teal);
  }
  .acc-journey-dot {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .acc-journey-copy {
    align-items: flex-start;
  }
  .acc-journey-step strong {
    display: block;
  }
}

@media (max-width: 991px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-detail-grid { grid-template-columns: 1fr; }
  .acc-order-head { flex-direction: column; }
  .acc-sidebar { display: none; }
  body.has-acc-mobile-nav {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  body.has-acc-mobile-nav footer {
    padding-bottom: 24px;
  }
  .acc-mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--acc-line);
    box-shadow: 0 -8px 24px rgba(20, 32, 51, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .acc-mobile-nav a,
  .acc-mobile-nav .acc-mobile-logout {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 8px 2px;
    border: 0;
    background: transparent;
    color: #6b7280;
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
  }
  .acc-mobile-nav a i,
  .acc-mobile-nav .acc-mobile-logout i {
    font-size: 20px;
    line-height: 1;
  }
  .acc-mobile-nav a span,
  .acc-mobile-nav .acc-mobile-logout span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .acc-mobile-nav a.active {
    color: var(--acc-teal);
  }
  .acc-mobile-nav .acc-mobile-logout {
    color: #be123c;
  }
  .acc-mobile-nav form {
    flex: 1;
    margin: 0;
    display: flex;
  }
}

@media (max-width: 575px) {
  .acc-page { padding: 12px 0 24px; }
  .acc-panel-body { padding: 12px 10px; }
  .acc-panel-actions {
    width: 100%;
  }
  .acc-panel-actions .acc-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
  .pay-result { margin: 24px 12px; padding: 28px 18px; }
}
