.customer-orders {
  margin-top: 0;
  outline: none;
}

.customer-orders h1 {
  margin-bottom: 2rem;
}

.orders-list {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
}

.order-card {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.order-details {
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
}

.order-detail-content {
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.order-details .select-icon {
  transition: transform 0.2s ease;
}

.order-details.is-open .select-icon {
  transform: rotate(180deg);
}

.order-detail-summary {
  width: min(100%, 400px);
  margin: 1.5rem 0 0 auto;
}

.order-detail-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.order-detail-summary__row--total {
  margin-top: 0.5rem;
  padding-top: 0.9rem;
  border-top: 1px solid #d1d5db;
  font-size: 1.05rem;
}

.order-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-items-list {
  display: grid;
  gap: 1rem;
}

.order-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.order-item__image {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f4f6;
}

.order-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-item__content,
.order-item__prices {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.order-item__prices {
  min-width: 170px;
  text-align: right;
}

.order-item__prices div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.order-item__prices span,
.order-item__quantity,
.js-order-item-variant {
  color: #6b7280;
  font-size: 0.9rem;
}

.order-number {
  grid-column: 1;
}

.invoice-number {
  grid-column: 2;
}

.order-state {
  grid-column: 4;
  justify-self: end;
}

.order-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.orders-message {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  padding: 1.5rem;
  color: #6b7280;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.orders-message--error {
  color: #ec0909;
  background: #fef2f2;
}

.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.order-status.is-open {
  background: rgba(255, 0, 152, 0.1);
  color: #ff0098;
}

.order-status.is-done {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.order-status.is-cancelled {
  background: rgba(107, 114, 128, 0.12);
  color: #6b7280;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.order-info span {
  font-size: 0.9rem;
  color: #6b7280;
}

.order-info strong {
  font-weight: 700;
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.order-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.order-details svg {
  width: 16px;
  height: 16px;
  color: black;
}

.order-button.download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  box-sizing: border-box;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: 8px;
  background: #6b7280;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
}

.order-button.download svg {
  width: 16px;
  height: 16px;
  color: white;
}

.order-tracking-list {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}

.order-tracking {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.order-tracking span {
  color: #6b7280;
}

.order-tracking a {
  color: #ff0098;
  font-weight: 700;
  text-decoration: none;
}

.order-tracking a:hover {
  text-decoration: underline;
}

.order-tracking-list[hidden] {
  display: none;
}

.order-tracking-list {
  display: grid;
}

.payment-status.is-pending {
  color: #b45309;
}

.payment-status.is-paid {
  color: #16a34a;
}

.payment-status.is-partially-paid {
  color: #b45309;
}

.payment-status.is-refunded {
  color: #6b7280;
}
