/* receipt-unify — Receipt layout and styling */
/* Restore the earlier receipt look and spacing */
#sc-receipt {
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
}
#sc-receipt .scroll {
  background: var(--surface-2);
}
.rct-wrap {
  margin: 10px 0 16px;
  background: var(--surface-2);
  border-radius: 20px;
  border: 1px solid var(--border);
  border-left: none;
  border-right: none;
  overflow: hidden;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.rct-head {
  background: var(--orange-pale);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 77, 0, 0.12);
}
.rct-head-ico {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.rct-head-ico svg {
  width: 26px;
  height: 26px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rct-head-brand {
  font-family: var(--font-d);
  font-size: 22px;
  font-style: italic;
  color: #111111;
  margin: 0;
  letter-spacing: -0.5px;
}
.rct-head-sub {
  font-size: 13px;
  color: #111111;
  margin: 0;
}
.rct-section {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.rct-section:last-child {
  border-bottom: none;
}
.rct-label {
  font-size: 11px;
  font-weight: 600;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
}
.rct-id-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.rct-id {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin: 0;
  font-family: var(--font-b);
  letter-spacing: -0.5px;
}
.rct-status-pill {
  background: var(--orange-pale);
  border-radius: 100px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.rct-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}
.rct-status-txt {
  font-size: 12px;
  font-weight: 600;
  color: #111111;
}
.rct-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.rct-meta-cell {
  background: var(--fog);
  border-radius: 12px;
  padding: 12px;
}
.rct-meta-lbl {
  font-size: 11px;
  color: #111111;
  margin: 0 0 3px;
  letter-spacing: 0.3px;
}
.rct-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
  margin: 0;
}
.rct-items-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 -22px;
  width: calc(100% + 44px);
  box-sizing: border-box;
}
.rct-items-headrow {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 40px 74px 80px;
  gap: 8px;
  padding: 10px 0;
  background: var(--fog);
  border-bottom: 1px solid var(--border);
}
.rct-items-headrow span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #111111;
  min-width: 0;
}
.rct-items-headrow span.num {
  text-align: right;
  white-space: nowrap;
}
.rct-items-headrow span.ctr {
  text-align: center;
  white-space: nowrap;
}
.rct-item-row {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 40px 74px 80px;
  gap: 8px;
  padding: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.rct-item-pname {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
  line-height: 1.35;
}
.rct-item-row:last-child {
  border-bottom: none;
}
.rct-item-qty-wrap {
  text-align: center;
}
.rct-item-qty-chip {
  display: inline-flex;
  min-width: 26px;
  justify-content: center;
  padding: 3px 6px;
  background: var(--fog);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  color: #111111;
}
.rct-item-unit {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: #111111;
}
.rct-item-total {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--md-primary);
}
.rct-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
  color: #111111;
}
.rct-total-row.grand {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.rct-total-row.grand span:first-child {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
}
.rct-total-row.grand span:last-child {
  font-size: 18px;
  font-weight: 600;
  color: var(--md-primary);
}
.rct-pts-block {
  margin: 14px 22px;
  background: var(--orange-pale);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rct-pts-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.rct-pts-earn {
  font-size: 13px;
  color: #111111;
  margin: 0 0 2px;
}
.rct-pts-num {
  font-size: 20px;
  font-weight: 600;
  color: #111111;
  margin: 0;
  line-height: 1;
}
.rct-pts-bal {
  text-align: right;
  flex-shrink: 0;
}
.rct-pts-bal-lbl {
  font-size: 11px;
  color: #111111;
  margin: 0 0 2px;
}
.rct-pts-bal-num {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
  margin: 0;
}
.rct-footer {
  padding: 4px 22px 22px;
}
.rct-footer-btn {
  width: 100%;
  height: 46px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 160ms;
}
.rct-footer-btn:active {
  background: var(--fog);
}
.rct-footer-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rct-divider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
}
.rct-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.rct-divider-txt {
  font-size: 12px;
  color: #111111;
  white-space: nowrap;
}

/* ── RECEIPT SCREEN TASTE PASS ── */
#sc-receipt {
  --receipt-ink: #24150f;
  --receipt-muted: #76655e;
  --receipt-paper: #fffaf5;
  --receipt-paper-deep: #f4ebe3;
  --receipt-line: #e6d8ce;
  --receipt-accent: #e85a19;
  background: var(--receipt-paper) !important;
  color: var(--receipt-ink);
}

#sc-receipt .tbar.dark {
  min-height: 68px;
  padding: 10px 14px;
  background: var(--receipt-paper) !important;
  border-bottom: 1px solid var(--receipt-line);
  box-shadow: none;
}

#sc-receipt .tbar.dark .back-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--receipt-ink) !important;
  background: transparent;
}

#sc-receipt .tbar.dark .back-btn:hover,
#sc-receipt .tbar.dark .back-btn:focus-visible {
  background: var(--receipt-paper-deep);
  color: var(--receipt-accent) !important;
}

#sc-receipt .tbar.dark .tbar-title.w {
  color: var(--receipt-ink) !important;
  font: 700 20px/1 'Space Grotesk', 'DM Sans', sans-serif;
  letter-spacing: -0.4px;
}

#sc-receipt .tbar.dark .back-btn:focus-visible,
#sc-receipt .rct-footer-btn:focus-visible {
  outline: 3px solid rgba(232, 90, 25, 0.38);
  outline-offset: 2px;
}

#sc-receipt .scroll {
  padding: 18px 16px 56px;
  background: var(--receipt-paper-deep);
}

#sc-receipt .receipt-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  animation: receiptRise 420ms cubic-bezier(.22, 1, .36, 1) both;
}

#sc-receipt .rct-wrap {
  margin: 0 auto;
  max-width: 760px !important;
  border: 1px solid var(--receipt-line);
  border-radius: 16px;
  background: var(--receipt-paper);
  box-shadow: 0 14px 34px rgba(84, 48, 26, 0.08);
}

#sc-receipt .rct-head {
  align-items: flex-start;
  gap: 5px;
  padding: 24px 22px 22px;
  background: var(--receipt-ink);
  border-bottom: 0;
  color: #fff;
}

#sc-receipt .rct-head-ico {
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: var(--receipt-accent);
}

#sc-receipt .rct-head-brand {
  color: #fff;
  font: 700 28px/1 'Space Grotesk', sans-serif;
  font-style: normal;
  letter-spacing: -1px;
}

#sc-receipt .rct-head-sub {
  color: #d9c9bf;
  font: 500 12px/1.3 'DM Sans', sans-serif;
  letter-spacing: .4px;
}

#sc-receipt .rct-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--receipt-line);
}

#sc-receipt .rct-label {
  margin-bottom: 12px;
  color: var(--receipt-muted);
  font: 700 10px/1.2 'DM Sans', sans-serif;
  letter-spacing: 1.3px;
}

#sc-receipt .rct-id {
  color: var(--receipt-ink);
  font: 700 20px/1.1 'DM Mono', monospace;
  letter-spacing: 0;
}

#sc-receipt .rct-status-pill {
  border-radius: 8px !important;
  padding: 7px 10px !important;
}

#sc-receipt .rct-meta-grid {
  gap: 8px;
  margin-top: 18px;
}

#sc-receipt .rct-meta-cell {
  min-width: 0;
  padding: 11px;
  border-radius: 9px;
  background: var(--receipt-paper-deep);
}

#sc-receipt .rct-meta-lbl {
  color: var(--receipt-muted);
  font: 600 10px/1.2 'DM Sans', sans-serif;
}

#sc-receipt .rct-meta-val {
  overflow-wrap: anywhere;
  color: var(--receipt-ink);
  font: 600 12px/1.35 'DM Sans', sans-serif;
}

#sc-receipt .rct-items-card {
  margin: 0;
  width: 100%;
  border: 1px solid var(--receipt-line);
  border-radius: 10px;
  background: #fff;
}

#sc-receipt .rct-items-headrow {
  padding: 11px 12px;
  background: var(--receipt-paper-deep);
  border-bottom: 1px solid var(--receipt-line);
}

#sc-receipt .rct-items-headrow span {
  color: var(--receipt-muted);
  font: 700 9px/1.2 'DM Sans', sans-serif;
  letter-spacing: 1px;
}

#sc-receipt .rct-item-row {
  padding: 13px 12px;
  border-bottom: 1px solid var(--receipt-line);
}

#sc-receipt .rct-item-pname {
  color: var(--receipt-ink);
  font: 600 13px/1.35 'DM Sans', sans-serif;
}

#sc-receipt .rct-item-qty-chip {
  min-width: 25px;
  border: 0;
  border-radius: 6px;
  background: var(--receipt-paper-deep);
  color: var(--receipt-ink);
}

#sc-receipt .rct-item-unit,
#sc-receipt .rct-item-total {
  font-variant-numeric: tabular-nums;
}

#sc-receipt .rct-item-total,
#sc-receipt .rct-total-row.grand span:last-child {
  color: var(--receipt-accent) !important;
}

#sc-receipt .rct-total-row {
  color: var(--receipt-muted);
  font: 500 13px/1.4 'DM Sans', sans-serif;
}

#sc-receipt .rct-total-row.grand {
  border-top: 1px solid var(--receipt-line) !important;
  padding-top: 15px !important;
}

#sc-receipt .rct-total-row.grand span:first-child {
  color: var(--receipt-ink);
  font: 700 15px/1.2 'DM Sans', sans-serif;
}

#sc-receipt .rct-total-row.grand span:last-child {
  font: 700 20px/1 'Space Grotesk', sans-serif;
  font-variant-numeric: tabular-nums;
}

#sc-receipt .rct-pts-block {
  margin: 18px 22px;
  padding: 14px;
  border: 1px solid #f1cdbd;
  border-radius: 12px;
  background: #fff1e8;
}

#sc-receipt .rct-pts-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--receipt-accent);
}

#sc-receipt .rct-pts-earn,
#sc-receipt .rct-pts-num,
#sc-receipt .rct-pts-bal-num {
  color: var(--receipt-ink) !important;
}

#sc-receipt .rct-pts-status,
#sc-receipt .rct-pts-bal-lbl {
  color: var(--receipt-muted) !important;
}

#sc-receipt .rct-footer {
  padding: 4px 22px 22px;
}

#sc-receipt .rct-divider-line {
  background: var(--receipt-line);
}

#sc-receipt .rct-divider-txt {
  color: var(--receipt-muted);
  font: 500 10px/1.2 'DM Sans', sans-serif;
}

#sc-receipt .rct-footer-btn {
  height: 44px;
  border: 1px solid var(--receipt-ink);
  border-radius: 10px;
  background: var(--receipt-ink);
  color: #fff;
  font: 600 13px/1 'DM Sans', sans-serif;
}

#sc-receipt .rct-footer-btn:hover {
  background: var(--receipt-accent);
  border-color: var(--receipt-accent);
}

@keyframes receiptRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

#sc-receipt .receipt-header-section.receipt-premium {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  border-radius: 20px 20px 0 0;
  color: #ffffff;
}

#sc-receipt .receipt-header-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#sc-receipt .receipt-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
}

#sc-receipt .receipt-logo-sub {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

#sc-receipt .receipt-header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#sc-receipt .receipt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

#sc-receipt .receipt-badge-light {
  background: rgba(255,255,255,0.12);
  color: #f8fafc;
}

#sc-receipt .receipt-badge-status {
  background: rgba(255,255,255,0.16);
  color: #f8fafc;
}

#sc-receipt .receipt-badge-status.pend {
  background: rgba(245,158,11,0.18);
  color: #fb923c;
}

#sc-receipt .receipt-badge-status.shipped,
#sc-receipt .receipt-badge-status.delv {
  background: rgba(34,197,94,0.18);
  color: #4ade80;
}

#sc-receipt .receipt-badge-status.canc {
  background: rgba(239,68,68,0.18);
  color: #f87171;
}

#sc-receipt .receipt-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
}

#sc-receipt .receipt-info-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

#sc-receipt .receipt-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
}

#sc-receipt .receipt-info-row:last-child {
  border-bottom: none;
}

#sc-receipt .receipt-info-row .label {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

#sc-receipt .receipt-info-row .val {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

#sc-receipt .receipt-id {
  font-size: 16px;
  color: #111827;
}

#sc-receipt .receipt-items-table {
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  margin-inline: 0 !important;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

#sc-receipt .receipt-items-header,
#sc-receipt .receipt-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px 68px 84px !important;
  gap: 12px;
  padding: 14px 18px;
  align-items: center;
}

#sc-receipt .receipt-items-header {
  background: #f8fafc;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

#sc-receipt .receipt-item {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid #f3f4f6;
}

#sc-receipt .receipt-item:nth-child(odd) {
  background: #ffffff;
}

#sc-receipt .receipt-item-name {
  white-space: normal;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: break-word;
}

#sc-receipt .receipt-item-main {
  width: 100%;
  min-width: 0;
}

#sc-receipt .receipt-item-qty,
#sc-receipt .receipt-item-price,
#sc-receipt .receipt-item-total {
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

#sc-receipt .receipt-item-qty {
  color: var(--md-primary) !important;
}

#sc-receipt .receipt-item-price .ipoo-price-kes,
#sc-receipt .receipt-item-total .ipoo-price-kes {
  display: none;
}

#sc-receipt .receipt-summary-grid {
  padding: 22px;
  display: grid;
  gap: 12px;
}

#sc-receipt .receipt-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #374151;
  font-size: 14px;
}

#sc-receipt .receipt-summary-row.receipt-total-highlight {
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

#sc-receipt .receipt-summary-label {
  color: #6b7280;
}

#sc-receipt .receipt-summary-value {
  color: #111827;
}

#sc-receipt .receipt-free {
  color: #16a34a;
}

#sc-receipt .receipt-points-panel {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 22px;
  box-sizing: border-box;
}

#sc-receipt .receipt-points-card {
  padding: 22px 20px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff7ed 0%, #ecfdf5 100%);
  border: 1px solid rgba(255, 109, 44, 0.18);
  box-shadow: 0 12px 24px rgba(255, 109, 44, 0.08);
  box-sizing: border-box;
  max-width: 100%;
}

#sc-receipt .receipt-points-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7c2d12;
  margin-bottom: 10px;
}

#sc-receipt .receipt-points-number {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: #7c3aed;
  margin-bottom: 12px;
}

#sc-receipt .receipt-points-status {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

#sc-receipt .receipt-points-pending {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  color: var(--receipt-ink);
  font-size: 12px;
  font-weight: 700;
}

#sc-receipt .receipt-points-pending strong {
  color: #ff6a00;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Premium points balance — new design: OUR POINTS BALANCE 1,582 — flex layout fix */
#sc-receipt .receipt-points-card--premium {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 0.85rem;
  white-space: normal;
  background: linear-gradient(135deg, #0f0a07 0%, #1a120e 55%, #211510 100%);
  border: 1px solid rgba(255, 107, 0, 0.22);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 10, 7, 0.22);
}
#sc-receipt .receipt-points-card--premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 180px at 85% -10%, rgba(255, 107, 0, 0.18), transparent 60%);
  pointer-events: none;
}
#sc-receipt .receipt-points-eyebrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 10px;
}
#sc-receipt .receipt-points-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 107, 0, 0.16);
  color: #ff7a18;
  font-size: 10px;
}
#sc-receipt .receipt-points-balance {
  position: relative;
  font-size: 38px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--md-primary, #ff4d00);
  margin-bottom: 14px;
}
#sc-receipt .receipt-points-balance span {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #524742;
  margin-left: 6px;
  vertical-align: middle;
}
#sc-receipt .receipt-points-earned-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  backdrop-filter: blur(6px);
}
#sc-receipt .receipt-points-earned-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
#sc-receipt .receipt-points-earned-value {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ff7a18;
  background: rgba(255, 122, 24, 0.14);
  border: 1px solid rgba(255, 122, 24, 0.22);
  padding: 4px 8px;
  border-radius: 8px;
}
#sc-receipt .receipt-points-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.4;
}
#sc-receipt .receipt-points-check {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.18);
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  flex-shrink: 0;
}

#sc-receipt .receipt-barcode-wrap {
  flex: 0 1 160px;
  min-width: 0;
  align-self: center;
  display: grid;
  gap: 12px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

#sc-receipt .receipt-barcode {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eef2f7;
}

#sc-receipt .receipt-barcode-num {
  display: grid;
  gap: 4px;
  text-align: center;
}

#sc-receipt .receipt-barcode-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

#sc-receipt .receipt-barcode-value {
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

#sc-receipt .receipt-footer-section {
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#sc-receipt .receipt-thanks {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111827;
}

#sc-receipt .receipt-tagline {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

#sc-receipt .receipt-footer-btn {
  width: 100%;
  padding: 15px 18px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(180deg, #ff5d1a 0%, #f14b00 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(255, 109, 44, 0.28);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

#sc-receipt .receipt-footer-btn:hover {
  background: linear-gradient(180deg, #ff6d2d 0%, #e94a00 100%);
  transform: translateY(-1px);
  box-shadow: 0 16px 26px rgba(255, 109, 44, 0.32);
  filter: saturate(1.08);
}

@media (max-width: 720px) {
  #sc-receipt .receipt-info-grid,
  #sc-receipt .receipt-points-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  #sc-receipt .scroll {
    padding: 12px 10px 44px;
  }

  #sc-receipt .rct-section {
    padding: 18px 14px;
  }

  #sc-receipt .rct-pts-block,
  #sc-receipt .rct-footer {
    margin-inline: 14px;
  }

  #sc-receipt .rct-items-headrow,
  #sc-receipt .rct-item-row {
    grid-template-columns: minmax(0, 1fr) 32px 62px 68px;
    gap: 5px;
  }
}

/* Phone-native receipt viewer without exterior apps (permanent) */
#sc-receipt .rct-view-btn,
#sc-receipt .rct-download-btn,
#sc-order-detail .rct-view-btn,
#sc-order-detail .rct-download-btn {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  border-radius: 50% !important;
  background: none !important;
  border: none !important;
  color: #168c4a !important;
  flex: 0 0 44px !important;
}
#sc-receipt .rct-view-btn svg,
#sc-receipt .rct-download-btn svg,
#sc-order-detail .rct-view-btn svg,
#sc-order-detail .rct-download-btn svg {
  width: 24px !important;
  height: 24px !important;
}
#sc-receipt .rct-viewer,
#sc-order-detail .rct-viewer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999 !important;
  background: #FFF8F6 !important;
  display: flex !important;
  flex-direction: column !important;
}
#sc-receipt .rct-viewer[hidden],
#sc-order-detail .rct-viewer[hidden] {
  display: none !important;
}
#sc-receipt .rct-viewer-bar,
#sc-order-detail .rct-viewer-bar {
  height: 52px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 12px !important;
  background: #111 !important;
  color: #fff !important;
  font: 600 13px/1 'DM Sans', sans-serif !important;
}
#sc-receipt .rct-viewer-bar button,
#sc-order-detail .rct-viewer-bar button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border: none !important;
  font-size: 18px !important;
}

/* Receipt refresh: warm wholesale document, clearer hierarchy, less dashboard chrome. */
#sc-receipt {
  --receipt-ink: #24150f;
  --receipt-muted: #806d63;
  --receipt-paper: #fffdf9;
  --receipt-paper-deep: #f7eee7;
  --receipt-line: #eadbd1;
  --receipt-accent: #f05a16;
}

#sc-receipt .scroll { background: #f7eee7; padding: 18px 14px 58px; }
#sc-receipt .receipt-content { max-width: 680px; }
#sc-receipt .receipt-header-section.receipt-premium {
  position: relative;
  overflow: hidden;
  padding: 30px 24px 26px;
  border-radius: 22px 22px 8px 8px;
  background: linear-gradient(130deg, #24150f 0%, #482315 72%, #9e3e13 145%);
  box-shadow: 0 18px 34px rgba(80, 38, 18, 0.18);
}
#sc-receipt .receipt-header-section.receipt-premium::after {
  content: '';
  position: absolute;
  right: -26px;
  top: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255,255,255,.04), 0 0 0 36px rgba(255,255,255,.025);
}
#sc-receipt .receipt-logo { font-size: 36px; letter-spacing: .02em; }
#sc-receipt .receipt-logo-sub { max-width: 220px; color: #f4d9ca; font-size: 11px; line-height: 1.45; letter-spacing: 1.1px; }
#sc-receipt .receipt-badge { border-radius: 8px; padding: 8px 11px; font-size: 10px; letter-spacing: .6px; }
#sc-receipt .receipt-info-grid { gap: 10px; padding: 14px 0; }
#sc-receipt .receipt-info-card { padding: 15px 16px; border: 1px solid var(--receipt-line); border-radius: 10px; background: var(--receipt-paper); box-shadow: none; }
#sc-receipt .receipt-items-table { border: 1px solid var(--receipt-line); border-radius: 10px; background: var(--receipt-paper); }
#sc-receipt .receipt-items-header { background: #24150f; color: #f7eee7; font-size: 10px; }
#sc-receipt .receipt-item { border-top-color: var(--receipt-line); color: var(--receipt-ink); }
#sc-receipt .receipt-item:nth-child(odd) { background: #fffaf5; }
#sc-receipt .receipt-summary-grid { margin-top: 14px; padding: 18px 2px 4px; border-top: 1px solid var(--receipt-line); }
#sc-receipt .receipt-summary-row.receipt-total-highlight { margin-top: 4px; padding: 15px 14px; border: 0; border-radius: 10px; background: #24150f; color: #fff; }
#sc-receipt .receipt-summary-row.receipt-total-highlight .summary-label,
#sc-receipt .receipt-summary-row.receipt-total-highlight .summary-value,
#sc-receipt .receipt-summary-row.receipt-total-highlight .ipoo-price-amt { color: #fff !important; }
#sc-receipt .receipt-points-panel { gap: 12px; padding: 18px 0; }
#sc-receipt .receipt-points-card { padding: 20px; border: 1px solid #f3c6b0; border-radius: 14px; background: linear-gradient(135deg, #fff4e9 0%, #fffaf5 100%); box-shadow: none; }
#sc-receipt .receipt-points-number { color: var(--receipt-accent); letter-spacing: -.03em; }
#sc-receipt .receipt-barcode-wrap { padding: 15px; border: 1px solid var(--receipt-line); border-radius: 14px; background: var(--receipt-paper); box-shadow: none; }
#sc-receipt .receipt-footer-section { align-items: flex-start; padding: 20px 0 4px; border-top: 1px solid var(--receipt-line); }
#sc-receipt .receipt-thanks { color: var(--receipt-ink); font-size: 22px; letter-spacing: -.02em; }
#sc-receipt .receipt-tagline { max-width: 470px; color: var(--receipt-muted); font-size: 13px; }
#sc-receipt .receipt-footer-btn { align-self: stretch; border-radius: 10px; background: var(--receipt-accent); box-shadow: 0 10px 20px rgba(240, 90, 22, .2); }

@media (max-width: 520px) {
  #sc-receipt .receipt-header-section.receipt-premium { padding: 25px 18px 22px; }
  #sc-receipt .receipt-items-header,
  #sc-receipt .receipt-item { grid-template-columns: minmax(0, 1fr) 34px 62px 72px !important; gap: 6px; padding-inline: 11px; }
}
#sc-receipt #receipt-frame,
#sc-order-detail #receipt-frame,
#sc-receipt #order-detail-frame,
#sc-order-detail #order-detail-frame {
  flex: 1 !important;
  border: 0 !important;
  background: #fff !important;
  width: 100% !important;
}
@media print {
  #sc-receipt .tbar, #sc-order-detail .tbar, #nav-home, .rct-viewer-bar { display: none !important; }
}

/* ── PREMIUM RECEIPT SYSTEM ── */
#sc-receipt {
  --receipt-ink: #171717;
  --receipt-muted: #6e6a65;
  --receipt-paper: #fffdf9;
  --receipt-paper-deep: #f3eee8;
  --receipt-line: #e8e1d9;
  --receipt-accent: #d85a27;
  --receipt-accent-soft: #f8e5da;
  background: #eee8e1 !important;
}

#sc-receipt .tbar.dark {
  min-height: 72px;
  padding: 12px 18px;
  background: #171717 !important;
  border-bottom: 0;
}

#sc-receipt .tbar.dark .back-btn,
#sc-receipt .rct-view-btn,
#sc-receipt .rct-download-btn {
  color: #fff !important;
  border-radius: 12px !important;
}

#sc-receipt .tbar.dark .back-btn:hover,
#sc-receipt .tbar.dark .back-btn:focus-visible {
  background: rgba(255,255,255,.12);
}

#sc-receipt .tbar.dark .tbar-title.w {
  color: #fff !important;
  font: 700 18px/1 'Space Grotesk', sans-serif;
}

#sc-receipt .rct-view-btn,
#sc-receipt .rct-download-btn {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
}

#sc-receipt .scroll {
  padding: 30px 18px 72px;
  background: radial-gradient(circle at 10% 0%, rgba(216,90,39,.08), transparent 30%), #eee8e1;
}

#sc-receipt .receipt-content {
  max-width: 820px;
  margin: 0 auto;
  animation: receiptRise 520ms cubic-bezier(.22,1,.36,1) both;
}

#sc-receipt .receipt-header-section.receipt-premium {
  position: relative;
  min-height: 190px;
  padding: 30px 34px 28px;
  align-items: flex-end;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  background: #171717;
}

#sc-receipt .receipt-header-section.receipt-premium::before {
  content: '';
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: -105px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.04), 0 0 0 44px rgba(255,255,255,.025);
}

#sc-receipt .receipt-header-brand,
#sc-receipt .receipt-header-actions {
  position: relative;
  z-index: 1;
}

#sc-receipt .receipt-logo {
  color: #fff;
  font: 800 42px/1 'Space Grotesk', sans-serif;
  letter-spacing: -1.8px;
}

#sc-receipt .receipt-logo-sub {
  max-width: 230px;
  color: #bdb6ae;
  font: 500 11px/1.4 'DM Sans', sans-serif;
  letter-spacing: 1.5px;
}

#sc-receipt .receipt-header-actions {
  align-items: flex-end;
  gap: 8px;
}

#sc-receipt .receipt-badge {
  border-radius: 6px;
  padding: 8px 11px;
  font: 700 10px/1 'DM Sans', sans-serif;
  letter-spacing: 1px;
}

#sc-receipt .receipt-badge-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}

#sc-receipt .receipt-badge-status {
  background: var(--receipt-accent);
  color: #fff;
}

#sc-receipt .receipt-info-grid {
  gap: 0;
  padding: 0;
  background: var(--receipt-paper);
  border-left: 1px solid var(--receipt-line);
  border-right: 1px solid var(--receipt-line);
}

#sc-receipt .receipt-info-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#sc-receipt .receipt-info-card + .receipt-info-card {
  border-top: 0;
  border-left: 1px solid var(--receipt-line);
}

#sc-receipt .receipt-info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--receipt-line);
}

#sc-receipt .receipt-info-row + .receipt-info-row {
  padding-left: 0;
  border-left: 0;
}

#sc-receipt .receipt-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

#sc-receipt .receipt-info-row .label {
  display: block;
  margin-bottom: 7px;
  color: var(--receipt-muted);
  font: 700 9px/1 'DM Sans', sans-serif;
  letter-spacing: 1.3px;
}

#sc-receipt .receipt-info-row .val {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
  color: var(--receipt-ink);
  font: 650 13px/1.35 'DM Sans', sans-serif;
}

#sc-receipt .receipt-id {
  color: var(--receipt-accent) !important;
  font: 700 18px/1 'DM Mono', monospace !important;
}

#sc-receipt .receipt-items-table {
  border: 1px solid var(--receipt-line);
  border-radius: 0;
  background: var(--receipt-paper);
}

#sc-receipt .receipt-items-header,
#sc-receipt .receipt-item {
  grid-template-columns: minmax(0, 1fr) 48px 68px 84px !important;
  padding: 14px 18px;
  gap: 10px;
}

#sc-receipt .receipt-items-header {
  background: #f7f3ee;
  color: var(--receipt-muted);
  font: 700 9px/1 'DM Sans', sans-serif;
  letter-spacing: 1.3px;
}

#sc-receipt .receipt-item {
  min-height: 57px;
  border-top: 1px solid var(--receipt-line);
  color: var(--receipt-ink);
  font: 550 13px/1.4 'DM Sans', sans-serif;
}

#sc-receipt .receipt-item:nth-child(odd) { background: var(--receipt-paper); }
#sc-receipt .receipt-item:nth-child(even) { background: #fffaf5; }

#sc-receipt .receipt-item-name {
  color: var(--receipt-ink);
  font-weight: 600;
}

#sc-receipt .receipt-item-qty {
  justify-self: start;
  min-width: 25px;
  padding: 5px 7px;
  border-radius: 5px;
  background: var(--receipt-accent-soft);
  color: var(--receipt-accent) !important;
  text-align: center;
}

#sc-receipt .receipt-item-price,
#sc-receipt .receipt-item-total {
  color: var(--receipt-ink) !important;
  font-variant-numeric: tabular-nums;
}

#sc-receipt .receipt-item-total { font-weight: 750; }

#sc-receipt .receipt-summary-grid {
  margin: 0;
  padding: 26px 34px 28px;
  gap: 11px;
  background: var(--receipt-paper);
  border-left: 1px solid var(--receipt-line);
  border-right: 1px solid var(--receipt-line);
}

#sc-receipt .receipt-summary-row {
  color: var(--receipt-muted);
  font: 500 13px/1.4 'DM Sans', sans-serif;
}

#sc-receipt .receipt-summary-value {
  color: var(--receipt-ink);
  font-weight: 650;
}

#sc-receipt .receipt-summary-row.receipt-total-highlight {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--receipt-ink);
  color: var(--receipt-ink);
  font-size: 15px;
}

#sc-receipt .receipt-summary-row.receipt-total-highlight .summary-value {
  color: var(--receipt-accent);
  font: 800 25px/1 'Space Grotesk', sans-serif;
}

#sc-receipt .receipt-points-panel {
  grid-template-columns: 1fr 190px;
  gap: 0;
  padding: 0 34px 28px;
  background: var(--receipt-paper);
  border-left: 1px solid var(--receipt-line);
  border-right: 1px solid var(--receipt-line);
}

#sc-receipt .receipt-points-card,
#sc-receipt .receipt-barcode-wrap {
  border-radius: 0;
  box-shadow: none;
}

#sc-receipt .receipt-points-card {
  padding: 18px;
  background: #eef7f4;
  border: 1px solid #c6ded7;
}

#sc-receipt .receipt-points-title,
#sc-receipt .receipt-barcode-label {
  color: var(--receipt-muted);
  font: 700 9px/1 'DM Sans', sans-serif;
  letter-spacing: 1.2px;
}

#sc-receipt .receipt-points-number {
  margin: 9px 0 4px;
  color: var(--receipt-accent);
  font: 800 28px/1 'Space Grotesk', sans-serif;
}

#sc-receipt .receipt-points-status {
  color: var(--receipt-muted);
  font-size: 11px;
}

#sc-receipt .receipt-barcode-wrap {
  padding: 18px;
  background: #f7f3ee;
  border: 1px solid var(--receipt-line);
}

#sc-receipt .receipt-barcode {
  min-height: 40px;
  border-radius: 0;
  background: transparent;
}

#sc-receipt .receipt-barcode-value {
  color: var(--receipt-ink);
  font: 700 12px/1 'DM Mono', monospace;
}

#sc-receipt .receipt-footer-section {
  align-items: center;
  padding: 28px 34px 34px;
  text-align: center;
  background: var(--receipt-paper);
  border: 1px solid var(--receipt-line);
  border-top: 0;
  border-radius: 0 0 22px 22px;
}

#sc-receipt .receipt-thanks {
  color: var(--receipt-ink);
  font: 700 22px/1.2 'Space Grotesk', sans-serif;
}

#sc-receipt .receipt-tagline {
  max-width: 390px;
  color: var(--receipt-muted);
  font-size: 12px;
  line-height: 1.5;
}

#sc-receipt .receipt-footer-btn {
  max-width: 280px;
  margin-top: 7px;
  border-radius: 9px;
  background: #ff4d00;
  font-size: 12px;
}

@media (max-width: 560px) {
  #sc-receipt .scroll { padding: 16px 10px 52px; }
  #sc-receipt .receipt-header-section.receipt-premium { min-height: 170px; padding: 24px 22px; }
  #sc-receipt .receipt-logo { font-size: 34px; }
  #sc-receipt .receipt-info-card { padding: 18px 22px; }
  #sc-receipt .receipt-items-header,
  #sc-receipt .receipt-item { grid-template-columns: minmax(0, 1fr) 34px 64px 74px !important; padding-inline: 22px; gap: 7px; }
  #sc-receipt .receipt-summary-grid { padding-inline: 22px; }
  #sc-receipt .receipt-points-panel { grid-template-columns: 1fr; padding-inline: 22px; }
  #sc-receipt .receipt-footer-section { padding-inline: 22px; }
}
