.orders-wrapper {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px 100px;
}

.orders-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.orders-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.yearly-counter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.yearly-counter-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
}

.yearly-counter-value {
  font-family: 'Freight', serif;
  font-size: 18px;
  font-weight: 400;
  color: #111;
}

.yearly-counter-value.limit-reached {
  color: #cc0000;
}

.order-cancelled-badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #b00020;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.order-item-row.is-cancelled {
  opacity: .55;
}

.order-item-row.is-cancelled .order-item-name,
.order-item-row.is-cancelled .order-item-price {
  text-decoration: line-through;
}

.orders-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}

.orders-header h1 {
  font-family: 'BebasNeue', sans-serif;
  font-size: 44px;
}

.order-block {
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
}

.order-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f9f9f9;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
  gap: 8px;
  transition: background 0.2s;
}

.order-block-header:hover {
  background: #f0f0f0;
}

.order-ref {
  font-family: 'BebasNeue', sans-serif;
  font-size: 22px;
  color: #111;
}

.order-meta {
  font-size: 13px;
  color: #aaa;
  letter-spacing: 1px;
}

.order-total {
  font-family: 'BebasNeue', sans-serif;
  font-size: 20px;
  color: #111;
}

.order-chevron {
  font-size: 12px;
  color: #aaa;
  transition: transform 0.3s;
  margin-left: 8px;
}

.order-chevron.open {
  transform: rotate(180deg);
}

.order-body {
  display: none;
  border-top: 1px solid #e0e0e0;
}

.order-body.open {
  display: block;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
}

.order-item-row:last-child {
  border-bottom: none;
}

.order-item-img {
  width: 90px;
  height: 68px;
  object-fit: cover;
  background: #f0f0f0;
  flex-shrink: 0;
}

.order-item-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 4px;
}

.order-item-name {
  font-size: 16px;
  color: #111;
}

.order-item-qty {
  margin-left: auto;
  font-size: 13px;
  color: #aaa;
  letter-spacing: 1px;
  white-space: nowrap;
  text-align: right;
}

.order-item-price {
  font-size: 13px;
  color: #111;
  white-space: nowrap;
}

.order-type {
  font-size: 11px;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f0f8ff;
  padding: 2px 8px;
  border-radius: 4px;
}

.orders-empty {
  text-align: center;
  padding: 80px 0;
  color: #aaa;
  font-size: 15px;
  letter-spacing: 1px;
}

.search-orders input:focus {
  outline: none;
  border-color: #111;
}

.orders-search-wrapper {
  max-width: 400px;
  margin: 0 auto 32px;
  position: relative;
}

.orders-search-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
}

.orders-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

@media (max-width: 768px) {
  .orders-wrapper {
    padding: 0 16px 90px;
  }

  .orders-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .yearly-counter {
    align-items: flex-start;
    margin-top: 8px;
  }
}

/* ─────────────────────────────────────────────
   ORDERS_LIST
───────────────────────────────────────────── */

.order-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-item-empty {
  color: #aaa;
}

.order-meta-sku {
  margin-top: 4px;
}
