.t2-order-page { max-width: 720px; margin: 0 auto; }
.t2-order-header {
  display: flex; align-items: flex-start; gap: 16px;
  background: #1a1d2e; color: #fff; border-radius: 16px; padding: 22px 20px;
}
.t2-order-header-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #ff2e63;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.t2-order-header-title { margin: 0; font-size: 1.35rem; font-weight: 700; color: #fff; }
.t2-order-header-sub { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5; }

.t2-order-search-card {
  margin-top: 16px; background: #fff; border: 1px solid #f3f4f6; border-radius: 16px;
  padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.t2-order-search-form { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) {
  .t2-order-search-form { flex-direction: row; align-items: stretch; }
}
.t2-order-search-form label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.t2-order-search-input-wrap { flex: 1; min-width: 0; }
.t2-order-search-input {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px 14px;
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.t2-order-search-input:focus { border-color: #ff2e63; box-shadow: 0 0 0 3px rgba(255,46,99,.12); }
.t2-order-search-btn {
  align-self: flex-end; border: none; border-radius: 10px; background: #ff2e63; color: #fff;
  font-size: 14px; font-weight: 700; padding: 12px 22px; cursor: pointer; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.t2-order-search-btn:hover { background: #e02858; }
.t2-order-search-btn:active { transform: scale(.98); }
.t2-order-search-btn:disabled { opacity: .6; cursor: not-allowed; }
.t2-order-hint { margin: 12px 0 0; font-size: 12px; color: #9ca3af; }

.t2-order-msg {
  margin-top: 14px; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.45;
}
.t2-order-msg-error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.t2-order-msg-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #0369a1; }

.t2-order-loading {
  margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 32px 16px; color: #6b7280; font-size: 14px;
}
.t2-order-spinner {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fecdd3;
  border-top-color: #ff2e63; animation: t2-order-spin .7s linear infinite;
}
@keyframes t2-order-spin { to { transform: rotate(360deg); } }

.t2-order-detail { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.t2-order-hero {
  overflow: hidden; border-radius: 16px; border: 1px solid #f3f4f6; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.t2-order-hero-top { padding: 18px 20px; border-bottom: 1px solid #f3f4f6; }
.t2-order-hero-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #ff2e63; }
.t2-order-hero-no { margin: 4px 0 0; font-size: 1.35rem; font-weight: 800; color: #111827; word-break: break-all; }
.t2-order-hero-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.t2-order-status {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
}
.t2-order-status-pending { background: #fef3c7; color: #b45309; }
.t2-order-status-processing { background: #e0f2fe; color: #0369a1; }
.t2-order-status-completed { background: #d1fae5; color: #047857; }
.t2-order-status-cancelled { background: #f3f4f6; color: #4b5563; }
.t2-order-status-refunded { background: #ede9fe; color: #6d28d9; }
.t2-order-date { font-size: 12px; color: #6b7280; }

.t2-order-total-band {
  background: linear-gradient(135deg, #ff2e63, #c91e4d); color: #fff; padding: 18px 20px;
}
.t2-order-total-label { font-size: 13px; opacity: .9; }
.t2-order-total-val { margin-top: 4px; font-size: 1.75rem; font-weight: 800; }
.t2-order-rows { padding: 4px 20px 14px; font-size: 14px; }
.t2-order-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f9fafb; }
.t2-order-row:last-child { border-bottom: none; }
.t2-order-row span:first-child { color: #6b7280; }
.t2-order-row span:last-child { color: #111827; font-weight: 600; text-align: right; }
.t2-order-row-discount span:last-child { color: #059669; }

.t2-order-card {
  background: #fff; border: 1px solid #f3f4f6; border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.t2-order-card-title { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: #111827; }
.t2-order-item {
  border: 1px solid #f3f4f6; border-radius: 12px; background: #fafafa; padding: 14px; margin-bottom: 10px;
}
.t2-order-item:last-child { margin-bottom: 0; }
.t2-order-item-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #ff2e63; }
.t2-order-item-name { margin-top: 4px; font-size: 15px; font-weight: 700; color: #111827; }
.t2-order-item-meta { margin-top: 6px; font-size: 12px; color: #6b7280; }
.t2-order-item-price { margin-top: 8px; font-size: 16px; font-weight: 800; color: #ff2e63; }
.t2-order-item-target {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e5e7eb;
  font-size: 12px; color: #374151; word-break: break-all;
}
.t2-order-item-target strong { display: block; font-size: 10px; text-transform: uppercase; color: #9ca3af; margin-bottom: 4px; }

.t2-order-note {
  margin-top: 10px; padding: 12px; border-radius: 10px; background: #eff6ff; border: 1px solid #dbeafe;
  font-size: 13px; color: #1e3a5f; white-space: pre-wrap;
}
.t2-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.t2-order-actions a {
  flex: 1; min-width: 140px; text-align: center; text-decoration: none; border-radius: 10px;
  padding: 12px 16px; font-size: 13px; font-weight: 700; transition: background .15s;
}
.t2-order-btn-ghost { border: 1px solid #e5e7eb; background: #fff; color: #374151; }
.t2-order-btn-ghost:hover { background: #f9fafb; }
.t2-order-btn-primary { background: #ff2e63; color: #fff; border: 1px solid #ff2e63; }
.t2-order-btn-primary:hover { background: #e02858; }

.t2-order-empty {
  margin-top: 20px; text-align: center; padding: 40px 20px; background: #fff;
  border: 1px solid #f3f4f6; border-radius: 16px; color: #6b7280;
}
.t2-order-empty h2 { margin: 12px 0 6px; font-size: 1.1rem; color: #111827; }
