.sc-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.sc-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.sc-muted {
  color: #888;
  font-size: 0.85rem;
}
.sc-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1.5px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}
.sc-table th,
.sc-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0f0f0;
}
.sc-table th {
  background: #fafafa;
  font-weight: 700;
  color: #666;
  font-size: 0.72rem;
  text-transform: uppercase;
}
.sc-prod {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sc-prod img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
}
.sc-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sc-qty input {
  width: 48px;
  text-align: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  padding: 6px;
}
.sc-remove {
  color: #dc2626;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
}
.sc-summary {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
}
.sc-sum-card {
  min-width: 280px;
  background: #fafafa;
  border: 1.5px solid #eee;
  border-radius: 12px;
  padding: 20px;
}
.sc-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.sc-row strong {
  font-size: 1.05rem;
}
.sc-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.sc-btn-primary {
  background: #111;
  color: #fff;
}
.sc-btn-primary:hover {
  background: var(--orange);
}
.sc-btn-primary:disabled {
  opacity: 0.92;
  cursor: wait;
}
.sc-btn-outline {
  background: #fff;
  border: 2px solid #111;
  color: #111;
}
.sc-empty {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}
.sc-banner {
  background: #fff3eb;
  border: 1px solid #ffd6b3;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}
.od-table {
  margin-top: 0;
}
.od-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  text-transform: capitalize;
}
.od-status--paid {
  background: #dcfce7;
  color: #166534;
}
.od-status--pending,
.od-status--processing {
  background: #fef9c3;
  color: #854d0e;
}
.od-status--shipped,
.od-status--delivered {
  background: #e0f2fe;
  color: #0369a1;
}
.od-status--cancelled,
.od-status--failed {
  background: #fee2e2;
  color: #991b1b;
}
.od-view-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.od-view-link:hover {
  text-decoration: underline;
}
.od-back-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}
.od-back-link:hover {
  color: var(--orange);
}
.od-empty {
  border: 1.5px dashed #e5e5e5;
  border-radius: 12px;
  margin-top: 24px;
  padding: 48px 24px;
  background: #fafafa;
}

/* Order success — centered confirmation */
.os-page {
  max-width: 540px;
  margin: 0 auto;
  padding: 32px var(--store-gutter, 20px) 56px;
  box-sizing: border-box;
}
.os-hero {
  text-align: center;
  margin-bottom: 28px;
}
.os-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  font-size: 1.75rem;
}
.os-title {
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 800;
  color: #111;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.os-lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #525252;
}
.os-name {
  font-weight: 700;
  color: #111;
}
.os-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.os-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #525252;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  padding: 8px 12px;
  border-radius: 999px;
}
.os-chip--order {
  background: #111;
  border-color: #111;
  color: #fff;
}
.os-chip--order .fa-receipt {
  font-size: 0.72rem;
  opacity: 0.9;
}
.os-card {
  background: #fafafa;
  border: 1.5px solid #e4e4e7;
  border-radius: 16px;
  padding: 22px 20px 20px;
  text-align: left;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.os-card-heading {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #71717a;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e4e7;
}
.os-email,
.os-ship,
.os-pay {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #525252;
  margin: 0 0 10px;
}
.os-email strong {
  color: #111;
}
.os-ship-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1aa;
  margin-bottom: 4px;
}
.os-pay {
  margin-bottom: 18px;
  color: #71717a;
}
.os-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}
.os-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.os-line:last-child {
  border-bottom: none;
}
.os-line-media {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.os-line-media img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  background: #f4f4f5;
  flex-shrink: 0;
}
.os-line-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  flex-shrink: 0;
  font-size: 1rem;
}
.os-line-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.os-line-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #111;
  line-height: 1.35;
}
.os-line-qty {
  font-size: 0.75rem;
  color: #71717a;
}
.os-line-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}
.os-totals {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e4e4e7;
}
.os-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  color: #525252;
  margin-bottom: 8px;
}
.os-total-row:last-child {
  margin-bottom: 0;
}
.os-total-row--grand {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #d4d4d8;
  font-size: 1rem;
  font-weight: 800;
  color: #111;
}
.os-actions {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 100%;
}
.os-actions .sc-btn {
  text-align: center;
}
@media (min-width: 520px) {
  .os-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
  }
  .os-actions .sc-btn {
    flex: 0 1 auto;
    min-width: min(100%, 168px);
  }
}
