/* ═══ SHOPEE COOKIE ORDER TABLE & EXPANDABLE DETAILS ═══ */
.sc-accounts-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 12px;
}

.sc-account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-input, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  font-size: 0.84rem;
  color: var(--text-primary, #1e293b);
}

.sc-account-chip-status {
  color: var(--text-secondary, #64748b);
  font-size: 0.8rem;
}

.sc-chip-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary, #64748b);
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 0.82rem;
  transition: background 0.15s, color 0.15s;
}

.sc-chip-btn:hover {
  background: rgba(238, 77, 45, 0.12);
  color: #ee4d2d;
}

.sc-table-wrap {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card, #ffffff);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.sc-table-scroll {
  overflow-x: auto;
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.88rem;
}

.sc-table thead tr {
  background: linear-gradient(90deg, #ee4d2d, #e03e1f);
  color: #ffffff;
}

.sc-table thead th {
  padding: 12px 10px;
  font-weight: 700;
  font-size: 0.84rem;
  text-align: center;
  white-space: nowrap;
  border: none;
}

.sc-table thead th.sc-th-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sc-btn-clean {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.sc-btn-clean:hover {
  background: rgba(255, 255, 255, 0.28);
}

.sc-hint-bar {
  display: flex;
  justify-content: center;
  padding: 10px 12px;
  background: var(--bg-card, #ffffff);
  border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.sc-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #d94826;
  background: rgba(238, 77, 45, 0.08);
  border: 1px solid rgba(238, 77, 45, 0.25);
}

.sc-order-row {
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.sc-order-row:hover {
  background: rgba(238, 77, 45, 0.045);
}

.sc-order-row.is-expanded {
  background: rgba(238, 77, 45, 0.07);
}

.sc-order-row td {
  padding: 10px;
  text-align: center;
  vertical-align: middle;
  color: var(--text-primary, #1e293b);
}

.sc-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-color, #e2e8f0);
  display: block;
  margin: 0 auto;
  background: #f8fafc;
}

.sc-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px dashed var(--border-color, #cbd5e1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #94a3b8);
  font-size: 1rem;
  background: var(--bg-input, #f8fafc);
}

.sc-cod {
  font-weight: 700;
  color: #e53935;
  white-space: nowrap;
}

.sc-mvd {
  font-weight: 700;
  color: #2563eb;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
}

.sc-mvd-empty {
  color: var(--text-secondary, #94a3b8);
  font-style: italic;
  font-size: 0.82rem;
}

.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}

.sc-badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}

.sc-badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.35);
}

.sc-badge-warn {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.35);
}

.sc-badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.35);
}

.sc-badge-muted {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.35);
}

.sc-addr-cell {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-tools-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sc-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-input, #f8fafc);
  color: var(--text-secondary, #475569);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 0.12s, background 0.15s, color 0.15s;
}

.sc-tool-btn:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.35);
}

.sc-tool-btn.is-danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.35);
}

/* ═══ EXPANDED 3-CARD DETAIL ROW ═══ */
.sc-detail-row td {
  padding: 14px;
  background: var(--bg-secondary, #f1f5f9);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.sc-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  text-align: left;
}

@media (max-width: 1024px) {
  .sc-detail-grid {
    grid-template-columns: 1fr;
  }
}

.sc-detail-card {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.sc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color, #f1f5f9);
}

.sc-card-head i {
  color: #ee4d2d;
  margin-right: 6px;
}

.sc-kv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
}

.sc-kv {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sc-kv-label {
  color: var(--text-secondary, #64748b);
  white-space: nowrap;
  flex-shrink: 0;
}

.sc-kv-val {
  color: var(--text-primary, #1e293b);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.sc-kv-val.is-red {
  color: #e53935;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sc-kv-val.is-blue {
  color: #2563eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sc-kv-val a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.sc-kv-val a:hover {
  text-decoration: underline;
}

.sc-copy-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.sc-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--bg-input, #f8fafc);
  color: var(--text-primary, #1e293b);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sc-copy-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: #2563eb;
  color: #2563eb;
}

/* ═══ 5-STEP JOURNEY STEPPER ═══ */
.sc-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 12px 6px 8px;
  border-radius: 10px;
  background: var(--bg-input, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
}

.sc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}

.sc-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-color, #cbd5e1);
  z-index: -1;
}

.sc-step.is-done:not(:last-child)::after {
  background: #10b981;
}

.sc-step-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  background: var(--bg-card, #ffffff);
  border: 2px solid var(--border-color, #cbd5e1);
  color: var(--text-secondary, #94a3b8);
}

.sc-step.is-done .sc-step-icon,
.sc-step.is-active .sc-step-icon {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.sc-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  text-align: center;
  line-height: 1.2;
}

.sc-step.is-done .sc-step-label,
.sc-step.is-active .sc-step-label {
  color: var(--text-primary, #1e293b);
}

.sc-timeline {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.sc-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-primary, #1e293b);
}

.sc-timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  margin-top: 5px;
  flex-shrink: 0;
}

.sc-timeline li:first-child .sc-timeline-dot {
  background: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.2);
}

.sc-timeline-time {
  display: block;
  font-size: 0.74rem;
  color: var(--text-secondary, #64748b);
  margin-top: 2px;
}

.sc-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-secondary, #64748b);
  font-size: 0.88rem;
}

/* ═══ WAITING QUEUE BOX (FIFO PROXY ROTATION) ═══ */
.sc-queue-box {
  margin: 12px 0;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.06);
  padding: 12px 14px;
}

.sc-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary, #1e293b);
}

.sc-queue-head i {
  color: #d97706;
  margin-right: 6px;
}

.sc-queue-timer {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
  padding: 3px 10px;
  border-radius: 999px;
}

.sc-queue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-queue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  font-size: 0.84rem;
}

.sc-queue-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sc-queue-pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  white-space: nowrap;
}

.sc-queue-pos.is-running {
  background: rgba(37, 99, 235, 0.14);
  color: #2563eb;
}

.sc-queue-desc {
  color: var(--text-secondary, #64748b);
  font-size: 0.8rem;
}
