/* Orders List Page */
.orders-list-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.my-space-orders-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.orders-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.orders-section-header h2 {
  margin: 0;
  color: #101828;
  font-size: 1rem;
  font-weight: 600;
}

.orders-section-header span {
  min-width: 1.75rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #E5E5E5;
  border-radius: 999px;
  color: #667085;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.orders-section-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-list-item {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.order-list-item:hover,
.order-list-item:focus-visible {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  outline: none;
}

.order-list-item.is-disabled {
  color: inherit;
  cursor: default;
}

.orders-empty-panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background: #fff;
  color: #667085;
}

.orders-empty-panel strong {
  color: #101828;
  font-size: 0.95rem;
  font-weight: 600;
}

.orders-empty-panel span {
  font-size: 0.875rem;
}

.order-col {
  display: flex;
  flex-direction: column;
}

.col-id {
  width: 20%;
  font-size: 0.875rem;
  color: #101828;
  font-weight: 500;
}

.col-item {
  width: 40%;
  gap: 0.25rem;
}

.order-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: #101828;
}

.order-item-seller {
  font-size: 0.75rem;
  color: #666;
}

.col-price {
  width: 20%;
  font-size: 0.875rem;
  color: #101828;
  font-weight: 500;
}

.col-status {
  width: 20%;
  align-items: flex-end;
}

.order-status-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-blue {
  background: #EFF8FF;
  color: #175CD3;
}

.badge-green {
  background: #ECFDF3;
  color: #027A48;
}

.badge-muted {
  background: #F2F4F7;
  color: #475467;
}

.registration-item .col-status {
  gap: 0.35rem;
}

/* Order Detail Page */
.order-detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #101828;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-back:hover {
  color: #666;
}

.order-detail-card {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.order-item-info-section {
  display: flex;
  gap: 1.5rem;
}

.order-item-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f4;
  flex-shrink: 0;
}

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

.order-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-item-title-large {
  font-size: 1.25rem;
  font-weight: 600;
  color: #101828;
  margin: 0;
}

.order-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.order-item-meta p {
  margin: 0;
  font-size: 0.875rem;
  color: #666;
}

.order-status-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.status-label {
  font-size: 0.875rem;
  color: #666;
}

.order-divider {
  width: 100%;
  height: 1px;
  background: #E5E5E5;
  margin: 1rem 0;
}

.order-shipping-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shipping-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #101828;
  margin: 0;
}

.shipping-info-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.shipping-label {
  font-size: 0.875rem;
  color: #666;
}

.shipping-value {
  font-size: 1rem;
  font-weight: 500;
  color: #101828;
}

.btn-black {
  background: #1C1917;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-black:hover {
  background: #333;
}

.btn-mark-received {
  margin-top: 1rem;
  align-self: flex-start;
}

@media (max-width: 48rem) {
  .my-space-orders-content {
    padding: 2rem 1.5rem !important;
  }

  .order-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .col-id, .col-item, .col-price, .col-status {
    width: 100%;
  }
  .col-status {
    align-items: flex-start;
  }
}
