/* ==========================================================================
   THE BESTOWALS - ACCOUNT, ORDERS & ORDER DETAILS STYLESHEET (css/account.css)
   Pixel-perfect styling for Dashboard, Orders List, and Order Details pages
   ========================================================================== */

:root {
  --acc-orange: #f56600;
  --acc-primary-green: #174d24;
  --acc-primary-green-hover: #123d1c;
  --acc-light-green-bg: #eaf3e7;
  --acc-light-green-pill: #eaf5ea;
  --acc-pill-green-text: #1e7e34;
  
  --acc-pill-blue-bg: #e8f1fd;
  --acc-pill-blue-text: #1971c2;
  
  --acc-pill-peach-bg: #fef3e2;
  --acc-pill-peach-text: #d97706;
  
  --acc-pill-red-bg: #fee2e2;
  --acc-pill-red-text: #dc2626;
  --acc-danger-red: #d92d20;
  
  --acc-text-dark: #111827;
  --acc-text-body: #374151;
  --acc-text-muted: #6b7280;
  --acc-text-subtle: #9ca3af;
  
  --acc-border-light: #e5e7eb;
  --acc-border-card: #eceef0;
  --acc-bg-page: #ffffff;
  --acc-bg-card: #ffffff;
}

body.account-page {
  background-color: var(--acc-bg-page);
  color: var(--acc-text-body);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   1. TOP ANNOUNCEMENT BAR
   ========================================================================== */
.account-page .top-bar {
  background-color: var(--acc-orange);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
  height: 38px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

.account-page .top-bar .top-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.account-page .top-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-page .top-bar-icon {
  width: 16px;
  height: 16px;
  stroke: #ffffff;
  flex-shrink: 0;
}

.account-page .top-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.account-page .top-bar-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 12.5px;
  transition: opacity 0.2s ease;
}

.account-page .top-bar-link:hover {
  opacity: 0.85;
}

.account-page .top-bar .divider {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* ==========================================================================
   2. MAIN WEBSITE HEADER
   ========================================================================== */
.account-page .main-header {
  background-color: #ffffff;
  border-bottom: 1px solid #ededed;
  height: 76px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.25s ease;
}

.account-page .main-header.scrolled {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.account-page .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.account-page .brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.account-page .brand-logo .logo-image {
  height: 40px;
  width: auto;
}

.account-page .main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.account-page .nav-link {
  color: #1a1a1a;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

.account-page .nav-link:hover,
.account-page .nav-link.active {
  color: var(--acc-primary-green);
  font-weight: 600;
}

.account-page .header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.account-page .action-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.account-page .action-btn:hover {
  background-color: #f4f5f6;
}

.account-page .action-icon {
  width: 21px;
  height: 21px;
}

.account-page .cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: var(--acc-orange);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ==========================================================================
   3. BREADCRUMB & PAGE HEADER
   ========================================================================== */
.account-main-wrapper {
  flex: 1 0 auto;
  padding-top: 24px;
  padding-bottom: 64px;
  background-color: #ffffff;
}

.account-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.account-breadcrumb-nav {
  margin-bottom: 14px;
}

.account-breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #6b7280;
}

.account-breadcrumb-list a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.account-breadcrumb-list a:hover {
  color: var(--acc-primary-green);
}

.account-breadcrumb-separator {
  color: #9ca3af;
  font-size: 12px;
}

.account-breadcrumb-list .active {
  color: #374151;
  font-weight: 500;
}

/* Page Title Group */
.account-header-group {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.account-page-title {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 700;
  color: var(--acc-text-dark);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.account-page-subtitle {
  font-size: 14px;
  color: var(--acc-text-muted);
  margin: 0;
}

.account-header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #374151;
  color: #1f2937;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.account-header-action-btn:hover {
  background-color: #f3f4f6;
  border-color: #111827;
  color: #000000;
}

.account-header-action-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   4. TWO-COLUMN DASHBOARD LAYOUT
   ========================================================================== */
.account-layout-grid {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 24px;
  align-items: start;
}

/* --- Left Sidebar Card --- */
.account-sidebar-card {
  background-color: #ffffff;
  border: 1px solid var(--acc-border-light);
  border-radius: 12px;
  overflow: hidden;
  position: sticky;
  top: 96px;
}

.account-sidebar-nav {
  display: flex;
  flex-direction: column;
}

.account-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: #222222;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid #f2f3f4;
}

.account-nav-item:last-child {
  border-bottom: none;
}

.account-nav-item .nav-item-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
}

/* Sidebar Active State */
.account-nav-item.active {
  background-color: var(--acc-light-green-bg);
  color: var(--acc-primary-green);
}

.account-nav-item.active .nav-item-icon {
  stroke: var(--acc-primary-green);
}

.account-nav-item:not(.active):not(.logout-item):hover {
  background-color: #f8faf7;
  color: var(--acc-primary-green);
}

.account-nav-item.logout-item {
  color: var(--acc-danger-red);
}

.account-nav-item.logout-item .nav-item-icon {
  stroke: var(--acc-danger-red);
}

.account-nav-item.logout-item:hover {
  background-color: #fef2f2;
}

/* --- Right Content Sections --- */
.account-content-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Shared Card Styling */
.account-card {
  background-color: #ffffff;
  border: 1px solid var(--acc-border-light);
  border-radius: 12px;
  padding: 24px 28px;
}

.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.account-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--acc-text-dark);
  margin: 0;
  letter-spacing: -0.01em;
}

.account-card-action-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--acc-primary-green);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.account-card-action-link:hover {
  color: var(--acc-primary-green-hover);
  text-decoration: underline;
}

/* ==========================================================================
   5. ORDERS LIST (SHARED ON ACCOUNT & ORDERS PAGES)
   ========================================================================== */
.orders-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-row-card {
  border: 1px solid var(--acc-border-light);
  border-radius: 10px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 72px 1.4fr 1.2fr auto;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-row-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.order-thumb-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9fafb;
  flex-shrink: 0;
}

.order-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-id-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.order-placed-date {
  font-size: 12.5px;
  color: var(--acc-text-muted);
}

.order-items-count {
  font-size: 12.5px;
  color: var(--acc-text-body);
}

.order-total-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--acc-text-dark);
  margin-top: 1px;
}

.order-status-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.order-status-pill.status-delivered {
  background-color: var(--acc-light-green-pill);
  color: var(--acc-pill-green-text);
}

.order-status-pill.status-shipped {
  background-color: var(--acc-pill-blue-bg);
  color: var(--acc-pill-blue-text);
}

.order-status-pill.status-processing {
  background-color: var(--acc-pill-peach-bg);
  color: var(--acc-pill-peach-text);
}

.order-status-pill.status-cancelled {
  background-color: var(--acc-pill-red-bg);
  color: var(--acc-pill-red-text);
}

.order-status-note {
  font-size: 12px;
  color: var(--acc-text-muted);
  line-height: 1.35;
  margin: 0;
}

.order-action-col {
  display: flex;
  justify-content: flex-end;
}

.btn-view-order-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #4b5563;
  color: #1f2937;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-view-order-details:hover {
  background-color: #f3f4f6;
  border-color: #1f2937;
  color: #000000;
}

/* ==========================================================================
   6. ADDRESSES & PROFILE SECTIONS
   ========================================================================== */
.addresses-list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.address-item-card {
  border: 1px solid var(--acc-border-light);
  border-radius: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: flex-start;
  gap: 16px;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-item-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.address-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.address-default-badge {
  background-color: var(--acc-light-green-pill);
  color: var(--acc-pill-green-text);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.address-type-icon {
  width: 24px;
  height: 24px;
  stroke: #1f2937;
  stroke-width: 1.8;
  margin-top: 2px;
}

.address-info-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.address-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.address-user-name {
  font-size: 13.5px;
  color: var(--acc-text-body);
}

.address-full-line {
  font-size: 13.5px;
  color: var(--acc-text-muted);
  line-height: 1.45;
  margin-top: 2px;
}

.address-phone-line {
  font-size: 13.5px;
  color: var(--acc-text-body);
  font-weight: 500;
  margin-top: 2px;
}

.address-actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.address-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.address-action-btn.edit-btn {
  color: var(--acc-primary-green);
}

.address-action-btn.edit-btn:hover {
  color: var(--acc-primary-green-hover);
  text-decoration: underline;
}

.address-action-btn.delete-btn {
  color: var(--acc-danger-red);
}

.address-action-btn.delete-btn:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.address-action-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.btn-add-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #4b5563;
  color: #1f2937;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 18px;
  transition: all 0.2s ease;
}

.btn-add-address:hover {
  background-color: #f3f4f6;
  border-color: #1f2937;
  color: #000000;
}

/* Profile Section */
.profile-card-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-avatar-wrapper {
  position: relative;
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}

.profile-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--acc-light-green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-avatar-icon {
  width: 44px;
  height: 44px;
  stroke: var(--acc-primary-green);
  stroke-width: 1.6;
}

.profile-avatar-custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-camera-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--acc-primary-green);
  border: 2.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, transform 0.15s ease;
  padding: 0;
}

.profile-camera-btn:hover {
  background-color: var(--acc-primary-green-hover);
  transform: scale(1.08);
}

.profile-camera-btn svg {
  width: 14px;
  height: 14px;
  stroke: #ffffff;
  stroke-width: 2;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  flex: 1;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-field-label {
  font-size: 12.5px;
  color: var(--acc-text-muted);
  font-weight: 500;
}

.profile-field-value {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--acc-text-dark);
  word-break: break-word;
}

/* ==========================================================================
   7. ORDER DETAILS PAGE (EXACT MATCH TO REFERENCE SCREENSHOT)
   ========================================================================== */

/* Top Order Summary Card */
.order-details-summary-card {
  border: 1px solid var(--acc-border-light);
  border-radius: 12px;
  padding: 24px 28px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.order-summary-left-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.order-summary-hamper-thumb {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f9fafb;
}

.order-summary-hamper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-summary-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-summary-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-summary-id {
  font-size: 18px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.order-summary-date-line {
  font-size: 13px;
  color: var(--acc-text-muted);
  margin: 0;
}

.order-delivered-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #166534;
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  margin-top: 6px;
}

.order-delivered-banner svg {
  width: 14px;
  height: 14px;
  stroke: #166534;
  flex-shrink: 0;
}

.order-summary-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  min-width: 160px;
}

.order-summary-total-label {
  font-size: 12px;
  color: var(--acc-text-muted);
}

.order-summary-total-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--acc-primary-green);
  line-height: 1;
}

.order-summary-tax-note {
  font-size: 11.5px;
  color: var(--acc-text-muted);
}

.btn-buy-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 1px solid #374151;
  color: #1f2937;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-buy-again:hover {
  background-color: #f3f4f6;
  border-color: #111827;
  color: #000000;
}

/* Order Items Detailed Card */
.order-items-card {
  border: 1px solid var(--acc-border-light);
  border-radius: 12px;
  padding: 24px 28px;
  background-color: #ffffff;
}

.order-items-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--acc-text-dark);
  margin-bottom: 18px;
}

.order-items-table-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-item-detail-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.order-item-detail-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f9fafb;
}

.order-item-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-detail-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-item-detail-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.order-item-detail-desc {
  font-size: 12.5px;
  color: var(--acc-text-muted);
}

.order-item-detail-qty {
  font-size: 12.5px;
  color: var(--acc-text-body);
}

.order-item-detail-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

/* Order Pricing Breakdown Table */
.order-pricing-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  max-width: 100%;
}

.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--acc-text-body);
}

.pricing-row.free-text span:last-child {
  color: var(--acc-pill-green-text);
  font-weight: 600;
}

.pricing-divider {
  height: 1px;
  background-color: var(--acc-border-light);
  margin: 6px 0;
}

.pricing-row.total-row {
  font-size: 16px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.pricing-row.total-row span:last-child {
  font-size: 18px;
  color: var(--acc-text-dark);
}

/* Two Column Detailed Grid (Shipping & Payment | Order Tracking) */
.order-two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.order-detail-box-card {
  border: 1px solid var(--acc-border-light);
  border-radius: 12px;
  padding: 24px 28px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.box-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--acc-text-dark);
  margin-bottom: 16px;
}

/* Shipping Address & Payment Block */
.shipping-info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.shipping-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f9fafb;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #374151;
}

.shipping-box-icon svg {
  width: 20px;
  height: 20px;
}

.shipping-text-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.shipping-person-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.shipping-address-text {
  font-size: 13px;
  color: var(--acc-text-muted);
  line-height: 1.45;
}

.shipping-phone-text {
  font-size: 13px;
  color: var(--acc-text-body);
  font-weight: 500;
  margin-top: 2px;
}

.link-view-map {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--acc-primary-green);
  text-decoration: none;
  margin-top: 4px;
}

.link-view-map:hover {
  text-decoration: underline;
}

.link-view-map svg {
  width: 14px;
  height: 14px;
}

.shipping-payment-divider {
  height: 1px;
  background-color: #f3f4f6;
  margin: 14px 0 18px 0;
}

.payment-info-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.payment-left-details {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.payment-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #f9fafb;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #374151;
}

.payment-box-icon svg {
  width: 20px;
  height: 20px;
}

.payment-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.payment-type-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.payment-txn-id {
  font-size: 12px;
  color: var(--acc-text-muted);
}

.payment-date-text {
  font-size: 12px;
  color: var(--acc-text-muted);
}

.payment-amount-display {
  font-size: 15px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

/* Order Tracking Vertical Timeline */
.order-tracking-vertical-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
  gap: 20px;
}

.order-tracking-vertical-timeline::before {
  content: '';
  position: absolute;
  top: 14px;
  bottom: 24px;
  left: 11px;
  width: 2px;
  background-color: var(--acc-primary-green);
}

.tracking-step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tracking-step-node {
  position: absolute;
  left: -28px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--acc-primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-primary-green);
  font-size: 12px;
  font-weight: 700;
}

.tracking-step-item.current .tracking-step-node {
  background-color: var(--acc-primary-green);
  color: #ffffff;
}

.tracking-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--acc-text-dark);
}

.tracking-step-time {
  font-size: 12.5px;
  color: var(--acc-text-muted);
}

.tracking-courier-meta {
  font-size: 12px;
  color: var(--acc-text-body);
  margin-top: 3px;
  background-color: #f9fafb;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #f0f0f0;
}

.link-track-shipment {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--acc-primary-green);
  text-decoration: none;
  margin-top: 4px;
}

.link-track-shipment:hover {
  text-decoration: underline;
}

.tracking-delivery-note {
  font-size: 12px;
  color: var(--acc-text-muted);
}

/* Need Help Support Banner Card */
.order-help-banner-card {
  border: 1px solid var(--acc-border-light);
  border-radius: 12px;
  padding: 20px 24px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.order-help-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.order-help-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--acc-light-green-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-primary-green);
  flex-shrink: 0;
}

.order-help-icon-circle svg {
  width: 24px;
  height: 24px;
}

.order-help-text-group h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--acc-text-dark);
  margin: 0 0 2px 0;
}

.order-help-text-group p {
  font-size: 13px;
  color: var(--acc-text-muted);
  margin: 0;
}

.order-help-buttons-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-help-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  border: 1px solid #374151;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-help-action:hover {
  background-color: #f3f4f6;
  border-color: #111827;
}

.btn-help-action svg {
  width: 15px;
  height: 15px;
}

.back-to-orders-link-wrapper {
  margin-top: 8px;
}

.link-back-to-orders {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--acc-primary-green);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-back-to-orders:hover {
  color: var(--acc-primary-green-hover);
  text-decoration: underline;
}

/* ==========================================================================
   8. MODALS & TOASTS
   ========================================================================== */
.acc-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.acc-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.acc-modal-card {
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.acc-modal-backdrop.active .acc-modal-card {
  transform: scale(1) translateY(0);
}

.acc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--acc-border-light);
}

.acc-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--acc-text-dark);
  margin: 0;
}

.acc-modal-close-btn {
  background: none;
  border: none;
  color: var(--acc-text-muted);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.acc-modal-close-btn:hover {
  color: var(--acc-text-dark);
}

.acc-modal-body {
  padding: 24px;
}

.acc-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--acc-border-light);
  background-color: #fafbfc;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.acc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.acc-form-group.full-width {
  grid-column: span 2;
}

.acc-form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--acc-text-dark);
  margin-bottom: 6px;
}

.acc-form-input,
.acc-form-select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--acc-border-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: var(--acc-text-dark);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acc-form-input:focus,
.acc-form-select:focus {
  border-color: var(--acc-primary-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 77, 36, 0.12);
}

.acc-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  cursor: pointer;
}

.acc-checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--acc-primary-green);
  cursor: pointer;
}

.acc-checkbox-label {
  font-size: 13.5px;
  color: var(--acc-text-body);
  user-select: none;
  cursor: pointer;
}

.btn-modal-cancel {
  background-color: #ffffff;
  border: 1px solid var(--acc-border-light);
  color: var(--acc-text-body);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-modal-cancel:hover {
  background-color: #f3f4f6;
}

.btn-modal-submit {
  background-color: var(--acc-primary-green);
  border: 1px solid var(--acc-primary-green);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-modal-submit:hover {
  background-color: var(--acc-primary-green-hover);
}

.btn-modal-danger {
  background-color: var(--acc-danger-red);
  border: 1px solid var(--acc-danger-red);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-modal-danger:hover {
  opacity: 0.9;
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  background-color: #111827;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media screen and (max-width: 1024px) {
  .account-layout-grid {
    grid-template-columns: 195px 1fr;
    gap: 20px;
  }

  .account-card,
  .order-details-summary-card,
  .order-items-card,
  .order-detail-box-card {
    padding: 20px 22px;
  }

  .order-row-card {
    grid-template-columns: 64px 1.3fr 1.1fr auto;
    gap: 16px;
    padding: 14px 16px;
  }

  .order-two-col-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 768px) {
  .account-main-wrapper {
    padding-top: 18px;
    padding-bottom: 48px;
  }

  .account-container {
    padding: 0 16px;
  }

  .account-page-title {
    font-size: 26px;
  }

  .account-header-group {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .account-layout-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-sidebar-card {
    position: static;
  }

  .account-sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .account-nav-item {
    padding: 12px 16px;
    white-space: nowrap;
    border-bottom: none;
    border-right: 1px solid #f2f3f4;
  }

  .account-nav-item:last-child {
    border-right: none;
  }

  .order-details-summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .order-summary-right-group {
    align-items: flex-start;
    width: 100%;
    border-top: 1px solid #f3f4f6;
    padding-top: 14px;
  }

  .order-help-banner-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .order-help-buttons-group {
    flex-wrap: wrap;
    width: 100%;
  }

  .profile-card-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
  }

  .address-item-card {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "icon info"
      "actions actions";
    gap: 14px;
  }

  .address-icon-box {
    grid-area: icon;
  }

  .address-info-col {
    grid-area: info;
  }

  .address-actions-col {
    grid-area: actions;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px dashed #f0f0f0;
  }
}

@media screen and (max-width: 480px) {
  .account-page-title {
    font-size: 23px;
  }

  .account-page-subtitle {
    font-size: 13px;
  }

  .account-card,
  .order-details-summary-card,
  .order-items-card,
  .order-detail-box-card,
  .order-help-banner-card {
    padding: 16px 14px;
    border-radius: 10px;
  }

  .order-row-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .order-status-col {
    width: 100%;
    padding-top: 8px;
    border-top: 1px dashed #f3f4f6;
  }

  .order-action-col {
    width: 100%;
  }

  .btn-view-order-details {
    width: 100%;
    justify-content: center;
  }

  .btn-help-action {
    width: 100%;
    justify-content: center;
  }

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

  .acc-form-group.full-width {
    grid-column: span 1;
  }
}
