/* ==========================================================
   ROYAL HELMET — ORDERS & ELECTRONIC WARRANTY STYLES
   Endpoint: /tai-khoan/orders
   ========================================================== */

/* Variables */
:root {
  --rha-red: #ED1C24;
  --rha-red-dark: #B3121A;
  --rha-red-soft: #FFECEC;
  --rha-ink: #14171B;
  --rha-ink-2: #1E2229;
  --rha-ink-3: #2A2F37;
  --rha-line: #E3E6EB;
  --rha-bg-light: #F6F7F9;
  --rha-gold: #C9A227;
  --rha-green: #059669;
  --rha-green-bg: #ECFDF5;
  --rha-green-border: #A7F3D0;
  --rha-amber: #D97706;
  --rha-amber-bg: #FFFBEB;
  --rha-amber-border: #FDE68A;
}

/* Page wrapper container adjustments */
.woocommerce-account .woocommerce-MyAccount-content {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--rha-ink);
}

/* Orders Wrap */
.rha-orders-wrap {
  margin-bottom: 24px;
}

/* Hero Header Card */
.rha-orders-hero {
  background: linear-gradient(135deg, #14171B 0%, #1E2229 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.rha-orders-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.25) 0%, rgba(237, 28, 36, 0) 70%);
  pointer-events: none;
}

.rha-orders-hero-main {
  flex: 1;
  z-index: 1;
}

.rha-orders-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(237, 28, 36, 0.15);
  border: 1px solid rgba(237, 28, 36, 0.35);
  color: #FF6B70;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.rha-orders-hero h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rha-orders-hero p {
  font-size: 13.5px;
  color: #B9C0C8;
  margin: 0;
  line-height: 1.5;
  max-width: 580px;
}

.rha-orders-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  z-index: 1;
  flex-shrink: 0;
}

.rha-orders-stat-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 12px;
  text-align: right;
  backdrop-filter: blur(4px);
}

.rha-orders-stat-tile .rha-stat-number {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
}

.rha-orders-stat-tile .rha-stat-label {
  font-size: 11.5px;
  color: #8B929B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rha-orders-hero-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rha-btn-hero-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.rha-btn-hero-profile:hover {
  background: var(--rha-red);
  border-color: var(--rha-red);
  color: #fff !important;
  transform: translateY(-1px);
}

.rha-btn-hero-hotline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rha-red);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.rha-btn-hero-hotline:hover {
  background: var(--rha-red-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Section: Active Warranties Block */
.rha-active-warranties-block {
  background: #fff;
  border: 1px solid var(--rha-line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.rha-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rha-line);
}

.rha-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rha-block-title h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rha-ink);
  margin: 0;
}

.rha-count-tag {
  background: var(--rha-red-soft);
  color: var(--rha-red);
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  width: 100px;
  min-width: max-content;
}

.rha-block-note {
  font-size: 12px;
  color: #8B929B;
}

/* Reg Grid (Reusable in orders page) */
.rha-orders-wrap .reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.rha-orders-wrap .reg {
  background: #fff;
  border: 1px solid var(--rha-line);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rha-orders-wrap .reg:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #CBD0D7;
}

.rha-orders-wrap .reg-top {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.rha-orders-wrap .thumb {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--rha-bg-light);
  display: grid;
  place-items: center;
  color: #B6BCC4;
  overflow: hidden;
  border: 1px solid #ECEEF2;
}

.rha-orders-wrap .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rha-orders-wrap .thumb svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.rha-orders-wrap .reg-top b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rha-ink);
  margin-bottom: 4px;
}

.rha-orders-wrap .reg-meta {
  font-size: 11.5px;
  color: #8B929B;
  line-height: 1.45;
}

.rha-orders-wrap .warranty {
  margin-top: auto;
  padding: 8px 10px;
  background: var(--rha-bg-light);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11.5px;
}

.rha-orders-wrap .warranty svg {
  width: 16px;
  height: 16px;
  fill: var(--rha-red);
  flex-shrink: 0;
}

.rha-orders-wrap .warranty small {
  display: block;
  color: #8B929B;
  font-size: 10.5px;
}

.rha-orders-wrap .warranty b {
  font-weight: 700;
  color: var(--rha-ink);
}

.rha-orders-wrap .warranty .left {
  color: var(--rha-green);
  font-weight: 600;
}

.rha-orders-wrap .btn-line {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1.5px solid var(--rha-line);
  background: #fff !important;
  color: var(--rha-ink) !important;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  text-transform: uppercase;
}

.rha-orders-wrap .btn-line:hover {
  border-color: var(--rha-red);
  color: var(--rha-red) !important;
  background: var(--rha-red-soft) !important;
}

/* Section Header for Table */
.rha-table-header-bar {
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rha-table-header-bar h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--rha-ink);
  margin: 0;
  text-transform: uppercase;
}

/* ==========================================================
   WOOCOMMERCE ORDERS TABLE ENHANCEMENTS
   ========================================================== */
.woocommerce-orders-table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
  border: 1px solid var(--rha-line) !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.woocommerce-orders-table thead th {
  background: #1E2229 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 16px !important;
  border: none !important;
  vertical-align: middle;
}

.woocommerce-orders-table tbody tr {
  transition: background 0.15s;
}

.woocommerce-orders-table tbody tr:hover {
  background: #FAFBFD !important;
}

.woocommerce-orders-table tbody td,
.woocommerce-orders-table tbody th {
  padding: 16px !important;
  border-top: 1px solid var(--rha-line) !important;
  border-bottom: none !important;
  vertical-align: middle;
  font-size: 13.5px;
}

/* Cell: Order Number */
.woocommerce-orders-table__cell-order-number a {
  font-weight: 700 !important;
  color: var(--rha-red) !important;
  text-decoration: none !important;
  font-size: 14px;
}

.woocommerce-orders-table__cell-order-number a:hover {
  color: var(--rha-red-dark) !important;
  text-decoration: underline !important;
}

/* Cell: Date */
.woocommerce-orders-table__cell-order-date time {
  color: #5A626E;
  font-size: 13px;
}

/* Cell: Products list */
.rha-table-products-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 180px;
}

.rha-table-product-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rha-table-product-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--rha-bg-light);
  border: 1px solid #ECEEF2;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.rha-table-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rha-table-product-thumb svg {
  width: 22px;
  height: 22px;
  fill: #A4ACB6;
}

.rha-table-product-info {
  flex: 1;
  min-width: 0;
}

.rha-table-product-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rha-ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.rha-table-product-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 11px;
}

.rha-meta-qty {
  font-weight: 700;
  color: var(--rha-ink);
  background: #ECEEF2;
  padding: 1px 5px;
  border-radius: 4px;
}

.rha-meta-sku {
  color: #8B929B;
  font-family: monospace;
}

/* Cell: Electronic Warranty */
.rha-warranty-cell-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

.rha-warranty-item-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.rha-warranty-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Warranty Badges */
.rha-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.25;
}

.rha-badge-warranty-active {
  background: var(--rha-green-bg);
  color: var(--rha-green);
  border: 1px solid var(--rha-green-border);
}

.rha-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rha-green);
  display: inline-block;
  animation: rha-pulse 2s infinite ease-in-out;
}

@keyframes rha-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.rha-badge-warranty-waiting {
  background: var(--rha-amber-bg);
  color: var(--rha-amber);
  border: 1px solid var(--rha-amber-border);
}

.rha-badge-warranty-expired {
  background: #F3F4F6;
  color: #6B7280;
  border: 1px solid #E5E7EB;
}

.rha-badge-warranty-na {
  background: #F3F4F6;
  color: #9CA3AF;
  border: 1px solid #E5E7EB;
}

.rha-warranty-exp {
  font-size: 11px;
  color: #717A88;
}

.rha-warranty-subnote {
  font-size: 11px;
  color: #949EA8;
  line-height: 1.3;
}

/* Button: Table Warranty Detail */
.rha-btn-table-warranty {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rha-red) !important;
  background: transparent !important;
  border: 1px solid var(--rha-red) !important;
  padding: 4px 9px !important;
  border-radius: 6px !important;
  cursor: pointer;
  margin-top: 2px;
  line-height: 1.2;
  transition: all 0.15s ease;
  text-transform: none !important;
}

.rha-btn-table-warranty:hover {
  background: var(--rha-red) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(237, 28, 36, 0.25);
}

/* Status Pills */
.rha-status-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1.3;
  text-transform: capitalize;
}

.rha-status--completed {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.rha-status--processing {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #BFDBFE;
}

.rha-status--on-hold {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.rha-status--cancelled,
.rha-status--failed {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}

.rha-status--refunded {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}

/* Actions Column (WooCommerce View button) */
.woocommerce-orders-table__cell-order-actions a.view {
  background: #fff !important;
  color: #14171B !important;
  border: 1.5px solid var(--rha-line) !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  transition: all 0.15s ease;
}

.woocommerce-orders-table__cell-order-actions a.view:hover {
  background: #14171B !important;
  color: #fff !important;
  border-color: #14171B !important;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .rha-orders-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .rha-orders-hero-aside {
    align-items: flex-start;
    width: 100%;
  }

  .rha-orders-hero-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .rha-block-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .rha-active-warranties-block {
    padding: 16px;
  }

  .rha-orders-wrap .reg-grid {
    grid-template-columns: 1fr;
  }

  .woocommerce-orders-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================
   ROYAL HELMET — VIEW ORDER REDESIGN STYLES
   Endpoint: /tai-khoan/view-order/{id}
   ========================================================== */

.rha-view-order-wrap {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--rha-ink);
  margin-bottom: 40px;
}

/* Hero Header Card */
.rha-vo-hero {
  background: linear-gradient(135deg, #14171B 0%, #1E2229 100%);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.rha-vo-hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 28, 36, 0.28) 0%, rgba(237, 28, 36, 0) 70%);
  pointer-events: none;
}

.rha-vo-hero-main {
  flex: 1;
  z-index: 1;
}

.rha-vo-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(237, 28, 36, 0.15);
  border: 1px solid rgba(237, 28, 36, 0.35);
  color: #FF6B70;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.rha-vo-hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.rha-vo-hero-title-row h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.rha-vo-hero-meta {
  /* display: flex; */
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #B9C0C8;
  margin: 0;
}

.rha-vo-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rha-vo-hero-meta svg {
  color: #8B929B;
}

.rha-vo-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 1;
  flex-shrink: 0;
}

.rha-vo-hero-total {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: 12px;
  text-align: right;
  backdrop-filter: blur(4px);
}

.rha-vo-total-label {
  display: block;
  font-size: 11px;
  color: #8B929B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.rha-vo-total-amount {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.rha-vo-hero-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rha-btn-vo-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.rha-btn-vo-back:hover {
  background: var(--rha-red);
  border-color: var(--rha-red);
  color: #fff !important;
  transform: translateY(-1px);
}

.rha-btn-vo-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rha-red);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.rha-btn-vo-profile:hover {
  background: var(--rha-red-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

/* Order Progress Tracker Card */
.rha-vo-tracker-card {
  background: #fff;
  border: 1px solid var(--rha-line);
  border-radius: 16px;
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.rha-vo-tracker-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.rha-vo-tracker-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 8px;
}

.rha-vo-step-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F3F4F6;
  border: 2px solid #D1D5DB;
  display: grid;
  place-items: center;
  color: #9CA3AF;
  z-index: 2;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.rha-vo-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9CA3AF;
}

.rha-vo-tracker-step.is-done .rha-vo-step-marker {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.rha-vo-tracker-step.is-active:not(.is-done) .rha-vo-step-marker {
  background: #2563EB;
  border-color: #2563EB;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.rha-vo-step-connector {
  position: absolute;
  top: 17px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #E5E7EB;
  z-index: 1;
}

.rha-vo-tracker-step.is-done .rha-vo-step-connector {
  background: #059669;
}

.rha-vo-step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rha-vo-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #14171B;
  line-height: 1.3;
}

.rha-vo-step-desc {
  font-size: 11.5px;
  color: #8B929B;
  line-height: 1.25;
}

/* Alert Card for Cancelled / Refunded */
.rha-vo-alert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 14px;
  margin-bottom: 24px;
}

.rha-vo-alert-cancelled {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.rha-vo-alert-cancelled strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 2px;
}

.rha-vo-alert-cancelled p {
  font-size: 13px;
  margin: 0;
  color: #B91C1C;
}

/* Warranty Highlight Banner */
.rha-vo-warranty-banner {
  background: linear-gradient(135deg, #F0FDF4 0%, #FFFFFF 100%);
  border: 1.5px solid #A7F3D0;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.05);
}

.rha-vo-wb-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #DCFCE7;
  display: grid;
  place-items: center;
  color: #059669;
  flex-shrink: 0;
}

.rha-vo-wb-info {
  flex: 1;
  min-width: 0;
}

.rha-vo-wb-info h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: #065F46;
  margin: 0 0 4px;
  letter-spacing: 0.03em;
}

.rha-vo-wb-info p {
  font-size: 13px;
  color: #374151;
  margin: 0;
  line-height: 1.45;
}

.rha-vo-wb-info strong {
  color: #065F46;
}

.rha-vo-wb-badge {
  flex-shrink: 0;
}

/* 2-Column Grid Layout */
.rha-vo-layout-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Reusable Card */
.rha-vo-card {
  background: #fff;
  border: 1px solid var(--rha-line);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.rha-vo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--rha-line);
}

.rha-vo-card-header h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--rha-ink);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.rha-vo-card-header h3 svg {
  color: var(--rha-red);
}

.rha-vo-total-amount span.amount {
  color: #fff;
}

span.rha-vo-attr-pill {
    display: flex;
    align-items: center;
    padding: 5px;
    gap: 5px;
}

.rha-vo-attr-pill p {
    margin-bottom: 0;
}

.rha-vo-item-counter {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rha-red);
  background: var(--rha-red-soft);
  padding: 2px 10px;
  border-radius: 12px;
  min-width: max-content;
}

/* Products List */
.rha-vo-products-list {
  display: flex;
  flex-direction: column;
}

.rha-vo-item-card {
  display: flex;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--rha-line);
  align-items: center;
}

.rha-vo-item-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rha-vo-item-card:first-child {
  padding-top: 0;
}

.rha-vo-item-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--rha-bg-light);
  border: 1px solid #ECEEF2;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.rha-vo-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rha-vo-item-thumb svg {
  width: 36px;
  height: 36px;
  fill: #B6BCC4;
}

.rha-vo-item-details {
  flex: 1;
  min-width: 0;
}

.rha-vo-item-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--rha-ink);
  margin: 0 0 6px;
  line-height: 1.35;
}

.rha-vo-item-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.rha-vo-item-name a:hover {
  color: var(--rha-red);
}

.rha-vo-item-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.rha-vo-sku-tag {
  font-size: 11px;
  color: #6B7280;
  background: #F3F4F6;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
}

.rha-vo-variations-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rha-vo-attr-pill {
  font-size: 11.5px;
  color: #374151;
  background: #EEF2F6;
  padding: 2px 8px;
  border-radius: 5px;
  line-height: 1.3;
}

.rha-vo-attr-pill strong {
  color: #1F2937;
}

.rha-vo-item-warranty-action {
  margin-top: 6px;
}

.rha-vo-warranty-pending-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #D97706;
  background: #FFFBEB;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid #FDE68A;
}

.rha-vo-item-pricing {
  text-align: right;
  flex-shrink: 0;
  min-width: 100px;
}

.rha-vo-qty {
  font-size: 12.5px;
  font-weight: 700;
  color: #8B929B;
  margin-bottom: 3px;
}

.rha-vo-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--rha-ink);
}

/* Customer Notes */
.rha-vo-note-card .rha-vo-note-content {
  background: var(--rha-bg-light);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #374151;
  line-height: 1.5;
  border-left: 3px solid var(--rha-red);
}

/* System Notes */
.rha-vo-notes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rha-vo-system-note {
  background: var(--rha-bg-light);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
}

.rha-vo-note-meta {
  font-size: 11px;
  font-weight: 700;
  color: #8B929B;
  margin-bottom: 4px;
}

.rha-vo-note-body p {
  margin: 0;
  color: #1F2937;
}

/* Financial Summary */
.rha-vo-summary-body {
  display: flex;
  flex-direction: column;
}

.rha-vo-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #ECEEF2;
  font-size: 13.5px;
  color: #4B5563;
}

.rha-vo-sum-val {
  font-weight: 700;
  color: var(--rha-ink);
}

.rha-vo-sum-grand-total {
  border-bottom: none;
  border-top: 2px solid var(--rha-line);
  padding-top: 14px;
  margin-top: 6px;
}

.rha-vo-sum-grand-total .rha-vo-sum-label {
  font-size: 15px;
  font-weight: 800;
  color: var(--rha-ink);
}

.rha-vo-sum-grand-total .rha-vo-sum-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--rha-red);
}

.rha-vo-actions-wrap {
  margin-top: 20px;
}

.rha-vo-btn-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.rha-vo-btn-order-again {
  background: #14171B !important;
  color: #fff !important;
  text-decoration: none !important;
}

.rha-vo-btn-order-again:hover {
  background: var(--rha-red) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(237, 28, 36, 0.3);
}

/* Customer & Delivery Address */
.rha-vo-recipient-info {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--rha-line);
}

.rha-vo-rc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.rha-vo-rc-row:last-child {
  margin-bottom: 0;
}

.rha-vo-rc-icon {
  color: var(--rha-red);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.rha-vo-rc-name {
  font-size: 14.5px;
  color: var(--rha-ink);
}

.rha-vo-rc-phone {
  font-weight: 700;
  color: var(--rha-ink);
  text-decoration: none;
  transition: color 0.15s;
}

.rha-vo-rc-phone:hover {
  color: var(--rha-red);
}

.rha-vo-rc-email {
  color: #6B7280;
  word-break: break-all;
}

.rha-vo-address-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #374151;
}

.rha-vo-address-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8B929B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.rha-vo-address-text p {
  margin: 0;
  font-style: normal;
  color: #1F2937;
}

/* Support Card */
.rha-vo-support-card {
  background: #1E2229;
  color: #fff;
  border: none;
}

.rha-vo-sp-badge {
  background: rgba(237, 28, 36, 0.2);
  color: #FF6B70;
  border: 1px solid rgba(237, 28, 36, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 8px;
}

.rha-vo-support-head h4 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}

.rha-vo-support-head p {
  font-size: 12px;
  color: #9AA1AA;
  margin: 0 0 16px;
  line-height: 1.45;
}

.rha-vo-support-btns {
  display: flex;
  gap: 10px;
}

.rha-vo-btn-hotline {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--rha-red);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.rha-vo-btn-hotline:hover {
  background: var(--rha-red-dark);
  transform: translateY(-1px);
}

.rha-vo-btn-club {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.rha-vo-btn-club:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Responsive Styles for View Order */
@media (max-width: 992px) {
  .rha-vo-layout-grid {
    grid-template-columns: 1fr;
  }

  .rha-vo-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }

  .rha-vo-hero-aside {
    align-items: flex-start;
    width: 100%;
  }

  .rha-vo-hero-total {
    text-align: left;
    width: 100%;
  }

  .rha-vo-hero-nav {
    width: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .rha-vo-tracker-steps {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .rha-vo-tracker-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    width: 100%;
    padding: 0;
  }

  .rha-vo-step-marker {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .rha-vo-step-content {
    align-items: flex-start;
  }

  .rha-vo-step-connector {
    display: none;
  }

  .rha-vo-warranty-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }

  .rha-vo-wb-info h4 {
    font-size: 13px;
    line-height: 1.35;
  }

  .rha-vo-item-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rha-vo-item-pricing {
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    border-top: 1px dashed #ECEEF2;
    padding-top: 8px;
  }
  .rha-vo-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }
  .rha-vo-hero-meta span:nth-child(2n) {
    display: none;
  }
}

/* ==========================================================
   WOOCOMMERCE MY ACCOUNT ENDPOINT WRAPPER & NAVIGATION
   ========================================================== */
.rha-wc-account-endpoint-wrapper {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 15px 40px;
  box-sizing: border-box;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rha-wc-account-endpoint-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* Navigation tabs styling for non-Flatsome themes or fallback */
.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-navigation ul,
.woocommerce-account .woocommerce-MyAccount-navigation ul#my-account-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-navigation ul:not(.account-nav) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid #EBECEF;
  padding-bottom: 14px;
}

.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-navigation ul:not(.account-nav) li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-navigation ul:not(.account-nav) li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #F3F4F6;
  color: #374151;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-navigation ul:not(.account-nav) li.is-active a {
  background: #ED1C24;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(237, 28, 36, 0.25);
}

.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-navigation ul:not(.account-nav) li a:hover {
  background: #E5E7EB;
  color: #111827;
}

.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-navigation ul:not(.account-nav) li.is-active a:hover {
  background: #B3121A;
  color: #ffffff;
}

/* Ensure orders table responsiveness */
.rha-wc-account-endpoint-wrapper .woocommerce-MyAccount-content {
  overflow-x: auto;
}

/* Notice Bar: Email Verification for Orders */
.rha-email-verify-notice-bar {
  background: #11141a;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.rha-evn-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 300px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.rha-evn-content svg {
  color: #d4af37;
  flex-shrink: 0;
}

.rha-evn-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rha-btn-send-verification {
  padding: 9px 18px;
  /* background: #e11d48; */
  color: #e11d48 !important;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  /* box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3); */
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rha-btn-send-verification:hover {
  background: #fff;
  transform: translateY(-1px);
}

.rha-btn-claim-other-email {
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rha-btn-claim-other-email:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}



