Skip to content

A self-hosted UPI & COD payment gateway with zero per-transaction platform fees, universal JavaScript checkout integration, dynamic QR payments, WhatsApp OTP authentication, and automated payment verification.

JavaScript

feat(checkout): add a high-contrast theme that follows prefers-contrast

laxmi deepak c52542296feb0
diff --git a/apps/checkout-portal/public/css/checkout.css b/apps/checkout-portal/public/css/checkout.css
index a337cdd..f481f24 100644
--- a/apps/checkout-portal/public/css/checkout.css
+++ b/apps/checkout-portal/public/css/checkout.css
@@ -14,9 +14,34 @@
--ypg-offer-bg: #eff6ff;
--ypg-offer-border: #dbeafe;
--ypg-danger: #ef4444;
+ --ypg-input-border: #cbd5e1;
--ypg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
+ /* High contrast: set by the checkout script when the device asks for more
+ contrast (prefers-contrast: more). Text reaches 7:1 on its background and
+ card/input borders 3:1. The --ypg-hc-* names exist only here; elsewhere
+ each var() falls back to its original colour. The merchant colour is
+ darkened to 7:1 in applyDynamicTheme, since it is set inline. */
+ :root[data-theme="checkout-hc"] {
+ --ypg-blue: #0846a6;
+ --ypg-blue-dark: #062f70;
+ --ypg-text-muted: #334155;
+ --ypg-border: #7c8a9e;
+ --ypg-border-light: #7c8a9e;
+ --ypg-input-border: #64748b;
+ --ypg-green: #065f46;
+ --ypg-danger: #7f1d1d;
+ --ypg-hc-text-body: #334155;
+ --ypg-hc-text-faint: #334155;
+ --ypg-hc-success: #14532d;
+ --ypg-hc-danger: #7f1d1d;
+ --ypg-hc-warning: #78350f;
+ --ypg-hc-info: #1e3a8a;
+ --ypg-hc-divider: #7c8a9e;
+ --ypg-hc-avatar: #0f766e;
+ }
+
* {
box-sizing: border-box;
margin: 0;
@@ -212,7 +237,7 @@
gap: 6px;
font-size: 13px;
font-weight: 700;
- color: #64748b;
+ color: var(--ypg-text-muted);
}
/* --- 2. AUTHENTIC YOUPI PG HEADER --- */
@@ -268,7 +293,7 @@
width: 38px;
height: 38px;
border-radius: 10px;
- background: #14b8a6;
+ background: var(--ypg-hc-avatar, #14b8a6);
border: 1.5px solid rgba(255, 255, 255, 0.85);
color: #ffffff;
font-size: 19px;
@@ -449,7 +474,7 @@
gap: 8px;
font-size: 12px;
font-weight: 600;
- color: #1e3a8a;
+ color: var(--ypg-hc-info, #1e3a8a);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
@@ -460,7 +485,7 @@
height: 20px;
border-radius: 50%;
background: #fee2e2;
- color: #b91c1c;
+ color: var(--ypg-hc-danger, #b91c1c);
display: flex;
align-items: center;
justify-content: center;
@@ -495,12 +520,12 @@
.ypg-countdown-pill {
background: #f1f5f9;
- border: 1px solid #e2e8f0;
+ border: 1px solid var(--ypg-border);
border-radius: 9999px;
padding: 2px 9px;
font-size: 11.5px;
font-weight: 600;
- color: #475569;
+ color: var(--ypg-hc-text-body, #475569);
display: inline-flex;
align-items: center;
gap: 4px;
@@ -522,7 +547,7 @@
width: 130px;
height: 130px;
background: #ffffff;
- border: 1px solid #e2e8f0;
+ border: 1px solid var(--ypg-border);
border-radius: 12px;
padding: 6px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
@@ -620,7 +645,7 @@
.ypg-vpa-badge {
font-size: 11px;
font-weight: 600;
- color: #475569;
+ color: var(--ypg-hc-text-body, #475569);
background: #edf2f7;
padding: 2px 7px;
border-radius: 6px;
@@ -632,7 +657,7 @@
.ypg-btn-mini-copy {
background: none;
- border: 1px solid #cbd5e1;
+ border: 1px solid var(--ypg-input-border);
border-radius: 5px;
font-size: 10px;
font-weight: 700;
@@ -667,7 +692,7 @@
gap: 8px;
font-size: 12px;
font-weight: 600;
- color: #166534;
+ color: var(--ypg-hc-success, #166534);
margin-bottom: 14px;
}
@@ -756,7 +781,7 @@
cursor: pointer;
border: none;
background: transparent;
- color: #64748b;
+ color: var(--ypg-text-muted);
transition: all 0.15s ease;
display: inline-flex;
align-items: center;
@@ -864,7 +889,7 @@
.ypg-input-control {
width: 100%;
padding: 10px 12px;
- border: 1px solid #cbd5e1;
+ border: 1px solid var(--ypg-input-border);
border-radius: 8px;
font-size: 13.5px;
color: var(--ypg-text-dark);
@@ -906,7 +931,7 @@
.ypg-phone-input-wrap {
display: flex;
align-items: center;
- border: 1px solid #cbd5e1;
+ border: 1px solid var(--ypg-input-border);
border-radius: 8px;
overflow: hidden;
background: #ffffff;
@@ -921,7 +946,7 @@
.ypg-phone-prefix {
padding: 10px 12px;
background: #f8fafc;
- border-right: 1px solid #e2e8f0;
+ border-right: 1px solid var(--ypg-border);
font-size: 13.5px;
font-weight: 700;
color: var(--ypg-navy);
@@ -951,7 +976,7 @@
padding: 10px 12px;
margin-bottom: 12px;
font-size: 12.5px;
- color: #166534;
+ color: var(--ypg-hc-success, #166534);
}
.ypg-btn-link {
@@ -1027,7 +1052,7 @@
.ypg-queue-number {
font-size: 36px;
font-weight: 900;
- color: #1d4ed8;
+ color: var(--ypg-hc-info, #1d4ed8);
margin: 8px 0;
}
@@ -1120,7 +1145,7 @@
.ypg-proc-timer-badge {
background: #f1f5f9;
- border: 1px solid #e2e8f0;
+ border: 1px solid var(--ypg-border);
border-radius: 9999px;
padding: 3px 12px;
font-size: 12px;
@@ -1192,14 +1217,14 @@
.ypg-success-title {
font-size: 19px;
font-weight: 800;
- color: #0f172a;
+ color: var(--ypg-text-dark);
margin-bottom: 4px;
}
.ypg-success-amount {
font-size: 24px;
font-weight: 900;
- color: #10b981;
+ color: var(--ypg-hc-success, #10b981);
margin-bottom: 8px;
}
@@ -1234,7 +1259,7 @@
height: 68px;
border-radius: 50%;
background: #fee2e2;
- color: #ef4444;
+ color: var(--ypg-hc-danger, #ef4444);
display: flex;
align-items: center;
justify-content: center;
@@ -1250,7 +1275,7 @@
.ypg-expired-title {
font-size: 19px;
font-weight: 800;
- color: #0f172a;
+ color: var(--ypg-text-dark);
margin-bottom: 6px;
}
@@ -1290,8 +1315,8 @@
.ypg-btn-expired-secondary {
padding: 12px 16px;
background: #f1f5f9;
- color: #475569;
- border: 1px solid #cbd5e1;
+ color: var(--ypg-hc-text-body, #475569);
+ border: 1px solid var(--ypg-input-border);
border-radius: 8px;
font-size: 13.5px;
font-weight: 700;
@@ -1333,7 +1358,7 @@
border-radius: 50%;
background: #fef2f2;
border: 2px solid #fee2e2;
- color: #dc2626;
+ color: var(--ypg-hc-danger, #dc2626);
display: flex;
align-items: center;
justify-content: center;
@@ -1350,7 +1375,7 @@
align-items: center;
gap: 6px;
background: #fef2f2;
- color: #b91c1c;
+ color: var(--ypg-hc-danger, #b91c1c);
border: 1px solid #fca5a5;
font-size: 11px;
font-weight: 800;
@@ -1371,19 +1396,19 @@
.ypg-blocked-title {
font-size: 20px;
font-weight: 800;
- color: #991b1b;
+ color: var(--ypg-hc-danger, #991b1b);
margin-bottom: 6px;
letter-spacing: -0.01em;
}
.ypg-blocked-subtitle {
font-size: 13px;
font-weight: 600;
- color: #475569;
+ color: var(--ypg-hc-text-body, #475569);
margin-bottom: 14px;
}
.ypg-blocked-card {
background: #f8fafc;
- border: 1px solid #e2e8f0;
+ border: 1px solid var(--ypg-border);
border-radius: 12px;
padding: 14px 16px;
margin-bottom: 18px;
@@ -1400,12 +1425,12 @@
.ypg-blocked-investigation {
margin-top: 10px;
padding-top: 10px;
- border-top: 1px dashed #cbd5e1;
+ border-top: 1px dashed var(--ypg-input-border);
display: flex;
align-items: flex-start;
gap: 8px;
font-size: 11.5px;
- color: #64748b;
+ color: var(--ypg-text-muted);
line-height: 1.45;
}
.ypg-blocked-details {
@@ -1422,6 +1447,7 @@
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.ypg-blocked-details-label {
+ /* Light text on the dark details panel: stays out of the high-contrast remap. */
color: #94a3b8;
}
.ypg-blocked-details-val {
@@ -1469,7 +1495,7 @@
align-items: center;
gap: 6px;
background: #fef3c7;
- color: #92400e;
+ color: var(--ypg-hc-warning, #92400e);
border: 1px solid #fde68a;
padding: 4px 12px;
border-radius: 20px;
@@ -1493,7 +1519,7 @@
border-radius: 50%;
background: radial-gradient(circle, #fef3c7 0%, #fffbeb 100%);
border: 2px solid #fcd34d;
- color: #b45309;
+ color: var(--ypg-hc-warning, #b45309);
display: flex;
align-items: center;
justify-content: center;
@@ -1510,7 +1536,7 @@
.ypg-duplicate-subtitle {
font-size: 13px;
font-weight: 600;
- color: #64748b;
+ color: var(--ypg-text-muted);
margin-bottom: 16px;
}
.ypg-duplicate-card {
@@ -1559,7 +1585,7 @@
/* --- 11. AUTHENTIC STICKY BOTTOM FOOTER --- */
.ypg-sticky-footer {
background: #ffffff;
- border-top: 1px solid #f1f5f9;
+ border-top: 1px solid var(--ypg-hc-divider, #f1f5f9);
display: flex;
flex-direction: column;
flex-shrink: 0;
@@ -1570,7 +1596,7 @@
/* Legal Disclaimer */
.ypg-legal-disclaimer {
font-size: 11px;
- color: #64748b;
+ color: var(--ypg-text-muted);
text-align: center;
padding: 4px 16px;
line-height: 1.35;
@@ -1593,7 +1619,7 @@
.ypg-bottom-price {
font-size: 18px;
font-weight: 800;
- color: #0f172a;
+ color: var(--ypg-text-dark);
letter-spacing: -0.01em;
line-height: 1.2;
}
@@ -1603,7 +1629,7 @@
border: none;
font-size: 11px;
font-weight: 600;
- color: #64748b;
+ color: var(--ypg-text-muted);
cursor: pointer;
display: inline-flex;
align-items: center;
@@ -1670,7 +1696,7 @@
display: flex;
justify-content: space-between;
font-size: 12.5px;
- color: #475569;
+ color: var(--ypg-hc-text-body, #475569);
margin-bottom: 6px;
}
@@ -1679,7 +1705,7 @@
padding-top: 8px;
font-size: 14px;
font-weight: 800;
- color: #0f172a;
+ color: var(--ypg-text-dark);
}
/* Toast Notification */
@@ -1977,14 +2003,14 @@
.rzp-sheet-title {
font-size: 19px;
font-weight: 800;
- color: #0f172a;
+ color: var(--ypg-text-dark);
letter-spacing: -0.3px;
margin-bottom: 4px;
}
.rzp-sheet-subtitle {
font-size: 13px;
- color: #64748b;
+ color: var(--ypg-text-muted);
margin-bottom: 6px;
line-height: 1.4;
}
@@ -1993,7 +2019,7 @@
width: 100%;
height: 42px;
background: #ffffff;
- border: 1.5px solid #e2e8f0;
+ border: 1.5px solid var(--ypg-border);
border-radius: 10px;
font-size: 14px;
font-weight: 700;
@@ -2005,7 +2031,7 @@
.rzp-sheet-cancel-btn:hover {
background: #f8fafc;
- border-color: #cbd5e1;
+ border-color: var(--ypg-input-border);
}
/* Cancel Modal Header Arc with Doors */
@@ -2050,11 +2076,11 @@
width: 100%;
height: 42px;
background: #ffffff;
- border: 1.5px solid #e2e8f0;
+ border: 1.5px solid var(--ypg-border);
border-radius: 10px;
font-size: 14px;
font-weight: 700;
- color: #0f172a;
+ color: var(--ypg-text-dark);
cursor: pointer;
margin-top: 14px;
transition: all 0.2s;
@@ -2084,7 +2110,7 @@
.rzp-secured-by {
font-size: 12px;
- color: #64748b;
+ color: var(--ypg-text-muted);
margin-top: 22px;
display: flex;
align-items: center;
@@ -2108,7 +2134,7 @@
.ypg-time-saving-text {
font-size: 12px;
font-weight: 700;
- color: #14532d;
+ color: var(--ypg-hc-success, #14532d);
line-height: 1.4;
flex: 1;
}
@@ -2117,7 +2143,7 @@
font-family: monospace;
font-size: 13px;
font-weight: 800;
- color: #15803d;
+ color: var(--ypg-hc-success, #15803d);
background: rgba(255, 255, 255, 0.85);
padding: 1px 6px;
border-radius: 4px;
@@ -2183,7 +2209,7 @@
.ypg-queue-conversion-pill {
font-size: 11.5px;
font-weight: 700;
- color: #15803d;
+ color: var(--ypg-hc-success, #15803d);
background: rgba(255, 255, 255, 0.9);
padding: 2px 8px;
border-radius: 12px;
@@ -2194,7 +2220,7 @@
.ypg-queue-conversion-text {
font-size: 12.5px;
line-height: 1.45;
- color: #14532d;
+ color: var(--ypg-hc-success, #14532d);
margin-bottom: 12px;
}
@@ -2374,20 +2400,20 @@
padding: 14px 16px;
margin-top: 14px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
- color: #0f172a;
+ color: var(--ypg-text-dark);
}
.ypg-pc-price-label {
font-size: 12px;
font-weight: 600;
- color: #64748b;
+ color: var(--ypg-text-muted);
letter-spacing: 0.2px;
}
.ypg-pc-price-val {
font-size: 26px;
font-weight: 800;
- color: #0f172a;
+ color: var(--ypg-text-dark);
margin-top: 4px;
letter-spacing: -0.5px;
}
@@ -2454,7 +2480,7 @@
.ypg-pc-topbar {
height: 48px;
- border-bottom: 1px solid #f1f5f9;
+ border-bottom: 1px solid var(--ypg-hc-divider, #f1f5f9);
display: flex !important;
align-items: center;
justify-content: space-between;
@@ -2468,7 +2494,7 @@
.ypg-pc-topbar-title {
font-size: 15px;
font-weight: 700;
- color: #0f172a;
+ color: var(--ypg-text-dark);
}
.ypg-pc-topbar-actions {
@@ -2484,7 +2510,7 @@
background: none;
border: none;
font-size: 16px;
- color: #64748b;
+ color: var(--ypg-text-muted);
cursor: pointer;
padding: 4px 6px;
border-radius: 4px;
@@ -2499,7 +2525,7 @@
.ypg-pc-btn-more:hover,
.ypg-pc-btn-close:hover {
- color: #0f172a;
+ color: var(--ypg-text-dark);
background: #f1f5f9;
}
@@ -2559,7 +2585,7 @@
min-width: 220px !important;
height: 100% !important;
max-height: 100% !important;
- border-right: 1px solid #f1f5f9 !important;
+ border-right: 1px solid var(--ypg-hc-divider, #f1f5f9) !important;
padding: 14px 12px !important;
display: flex !important;
flex-direction: column !important;
@@ -2580,7 +2606,7 @@
}
.ypg-pc-method-card {
- border: 1.5px solid #e2e8f0;
+ border: 1.5px solid var(--ypg-border);
border-radius: 10px;
padding: 10px 12px;
cursor: pointer;
@@ -2589,7 +2615,7 @@
}
.ypg-pc-method-card:hover {
- border-color: #cbd5e1;
+ border-color: var(--ypg-input-border);
background: #f8fafc;
}
@@ -2614,13 +2640,13 @@
.ypg-pc-method-title {
font-size: 13px;
font-weight: 700;
- color: #0f172a;
+ color: var(--ypg-text-dark);
}
.ypg-pc-cash-pill {
font-size: 10px;
font-weight: 700;
- color: #0369a1;
+ color: var(--ypg-hc-info, #0369a1);
background: #e0f2fe;
padding: 2px 6px;
border-radius: 10px;
@@ -2628,7 +2654,7 @@
.ypg-pc-method-sub {
font-size: 11px;
- color: #64748b;
+ color: var(--ypg-text-muted);
}
.ypg-pc-method-icons {
@@ -2911,7 +2937,7 @@
align-items: center;
justify-content: center;
background: #ffffff;
- border: 1px solid #e2e8f0;
+ border: 1px solid var(--ypg-border);
flex-shrink: 0;
}
@@ -2940,19 +2966,19 @@
.ypg-server-health-indicator.is-working {
background: #f0fdf4;
- color: #15803d;
+ color: var(--ypg-hc-success, #15803d);
border: 1px solid #bbf7d0;
}
.ypg-server-health-indicator.is-busy {
background: #fefce8;
- color: #854d0e;
+ color: var(--ypg-hc-warning, #854d0e);
border: 1px solid #fef08a;
}
.ypg-server-health-indicator.is-issues {
background: #fef2f2;
- color: #b91c1c;
+ color: var(--ypg-hc-danger, #b91c1c);
border: 1px solid #fecaca;
}
@@ -3052,11 +3078,11 @@
}
.ypg-downtime-alert.is-warning .ypg-downtime-heading {
- color: #92400e;
+ color: var(--ypg-hc-warning, #92400e);
}
.ypg-downtime-alert.is-warning .ypg-downtime-msg {
- color: #78350f;
+ color: var(--ypg-hc-warning, #78350f);
}
.ypg-downtime-icon {
@@ -3068,13 +3094,13 @@
.ypg-downtime-heading {
font-size: 12px;
font-weight: 800;
- color: #991b1b;
+ color: var(--ypg-hc-danger, #991b1b);
margin-bottom: 3px;
}
.ypg-downtime-msg {
font-size: 11.5px;
- color: #7f1d1d;
+ color: var(--ypg-hc-danger, #7f1d1d);
line-height: 1.4;
margin-bottom: 6px;
}
diff --git a/apps/checkout-portal/src/views/checkout.html b/apps/checkout-portal/src/views/checkout.html
index f29c4b5..2c93e3b 100644
--- a/apps/checkout-portal/src/views/checkout.html
+++ b/apps/checkout-portal/src/views/checkout.html
@@ -396,17 +396,17 @@
html += `
<div class="saved-account-row ${isActive ? 'active' : ''}" onclick="handleSelectSavedAccount('${acc.id}', event)">
<div style="display:flex; align-items:center; gap:8px;">
- <div style="width:28px; height:28px; border-radius:50%; background:#e0f2fe; color:#0369a1; font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center;">${initial}</div>
+ <div style="width:28px; height:28px; border-radius:50%; background:#e0f2fe; color:var(--ypg-hc-info, #0369a1); font-weight:800; font-size:12px; display:flex; align-items:center; justify-content:center;">${initial}</div>
<div>
<div style="font-size:13px; font-weight:700;">${escapeHtml(acc.name)}</div>
- <div style="font-size:11px; color:#64748b;">${escapeHtml(acc.email || '')} ${acc.mobileNumber ? '&bull; ' + escapeHtml(acc.mobileNumber) : ''}</div>
+ <div style="font-size:11px; color:var(--ypg-text-muted);">${escapeHtml(acc.email || '')} ${acc.mobileNumber ? '&bull; ' + escapeHtml(acc.mobileNumber) : ''}</div>
</div>
</div>
<div style="display:flex; align-items:center; gap:6px;">
<button type="button" class="ypg-btn-select-account" style="background:#eff6ff; border:1px solid #bfdbfe; color:var(--ypg-blue); font-size:11px; font-weight:700; padding:4px 10px; border-radius:6px; cursor:pointer; display:inline-flex; align-items:center; gap:2px; transition:all 0.15s;" onclick="handleSelectSavedAccount('${acc.id}', event)">
<span>Select</span> &rsaquo;
</button>
- <button type="button" style="background:none; border:none; color:#94a3b8; font-size:14px; cursor:pointer; padding:2px 6px;" onclick="removeRememberedAccount('${acc.id}', event)" title="Remove Account">✕</button>
+ <button type="button" style="background:none; border:none; color:var(--ypg-hc-text-faint, #94a3b8); font-size:14px; cursor:pointer; padding:2px 6px;" onclick="removeRememberedAccount('${acc.id}', event)" title="Remove Account">✕</button>
</div>
</div>
`;
@@ -1505,9 +1505,55 @@
}
}
+ // High contrast follows the device's "increase contrast" setting. The
+ // checkout-hc theme in checkout.css carries the colours; the merchant colour
+ // is set inline, so it is darkened here until white text on it reaches 7:1.
+ const contrastQuery = window.matchMedia ? window.matchMedia('(prefers-contrast: more)') : null;
+ let lastBranding = null;
+
+ function isHighContrast() {
+ return !!(contrastQuery && contrastQuery.matches);
+ }
+
+ function applyContrastPreference() {
+ if (isHighContrast()) document.documentElement.setAttribute('data-theme', 'checkout-hc');
+ else document.documentElement.removeAttribute('data-theme');
+ }
+
+ function contrastWithWhite(col) {
+ let hex = String(col).replace('#', '');
+ if (hex.length === 3) hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];
+ if (!/^[0-9a-f]{6}$/i.test(hex)) return null;
+ const lin = (v) => (v <= 0.03928 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4));
+ const [r, g, b] = [0, 2, 4].map((i) => lin(parseInt(hex.slice(i, i + 2), 16) / 255));
+ return 1.05 / (0.2126 * r + 0.7152 * g + 0.0722 * b + 0.05);
+ }
+
+ function darkenToContrast(col, ratio) {
+ let out = col;
+ for (let i = 0; i < 40; i++) {
+ const c = contrastWithWhite(out);
+ if (c === null || c >= ratio) return out;
+ out = adjustHexColor(out, -8);
+ }
+ return out;
+ }
+
+ applyContrastPreference();
+ if (contrastQuery) {
+ const onContrastChange = () => {
+ applyContrastPreference();
+ if (lastBranding) applyDynamicTheme(lastBranding);
+ };
+ if (contrastQuery.addEventListener) contrastQuery.addEventListener('change', onContrastChange);
+ else if (contrastQuery.addListener) contrastQuery.addListener(onContrastChange);
+ }
+
function applyDynamicTheme(branding) {
if (!branding) return;
- const primary = branding.primaryColor || '#0b63e5';
+ lastBranding = branding;
+ let primary = branding.primaryColor || '#0b63e5';
+ if (isHighContrast()) primary = darkenToContrast(primary, 7);
const darkPrimary = adjustHexColor(primary, -25);
const root = document.documentElement;
diff --git a/apps/checkout-portal/src/views/partials/auth.html b/apps/checkout-portal/src/views/partials/auth.html
index 737bd67..a0ebbcf 100644
--- a/apps/checkout-portal/src/views/partials/auth.html
+++ b/apps/checkout-portal/src/views/partials/auth.html
@@ -71,7 +71,7 @@
<!-- STEP 3: OTP VERIFICATION (Shown for existing user login OR after signup) -->
<div id="authStepOtp" hidden>
- <div class="ypg-auth-badge-banner" style="background:#eff6ff; border-color:#bfdbfe; color:#1e40af;">
+ <div class="ypg-auth-badge-banner" style="background:#eff6ff; border-color:#bfdbfe; color:var(--ypg-hc-info, #1e40af);">
<div>
<span>Code sent to WhatsApp / SMS: </span>
<strong id="authOtpPhoneBadge">+91 </strong>
@@ -102,7 +102,7 @@
<button type="button" class="ypg-btn-link" id="btnResendOtp" onclick="handleResendOtp()"
style="margin-left:4px;">Resend OTP</button>
</div>
- <span id="otpCountdownTimer" style="font-weight:600; color:#64748b;"></span>
+ <span id="otpCountdownTimer" style="font-weight:600; color:var(--ypg-text-muted);"></span>
</div>
</div>
diff --git a/apps/checkout-portal/src/views/partials/footer.html b/apps/checkout-portal/src/views/partials/footer.html
index 6159d62..159616c 100644
--- a/apps/checkout-portal/src/views/partials/footer.html
+++ b/apps/checkout-portal/src/views/partials/footer.html
@@ -29,7 +29,7 @@
<div class="ypg-details-header">
<span>Order Summary</span>
<button type="button" onclick="toggleOrderDetails()"
- style="background:none; border:none; font-size:18px; cursor:pointer; color:#64748b;">✕</button>
+ style="background:none; border:none; font-size:18px; cursor:pointer; color:var(--ypg-text-muted);">✕</button>
</div>
<div class="ypg-details-row">
<span>Order Reference</span>
@@ -42,7 +42,7 @@
<div class="ypg-details-row">
<span>Platform & Processing Fee</span>
- <span style="color:#10b981; font-weight:700;">₹0.00 (Zero Fee)</span>
+ <span style="color:var(--ypg-hc-success, #10b981); font-weight:700;">₹0.00 (Zero Fee)</span>
</div>
<div class="ypg-details-row total">
<span>Total Amount</span>
diff --git a/apps/checkout-portal/src/views/partials/header.html b/apps/checkout-portal/src/views/partials/header.html
index 8973952..1719077 100644
--- a/apps/checkout-portal/src/views/partials/header.html
+++ b/apps/checkout-portal/src/views/partials/header.html
@@ -11,7 +11,7 @@
<!-- PC Account Popover Menu -->
<div class="ypg-account-popover" id="accountMenuPopoverPc" hidden style="position: absolute; top: 40px; right: 0; background: #ffffff; color: var(--ypg-text-dark); border-radius: 12px; box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18); border: 1px solid var(--ypg-border); padding: 8px; z-index: 1000; min-width: 220px;">
<div class="popoverCustomerName" id="popoverCustomerNamePc"
- style="padding:6px 10px 8px 10px; font-weight:700; font-size:12px; border-bottom:1px solid #f1f5f9; color:#0f172a; word-break:break-word;">
+ style="padding:6px 10px 8px 10px; font-weight:700; font-size:12px; border-bottom:1px solid var(--ypg-hc-divider, #f1f5f9); color:var(--ypg-text-dark); word-break:break-word;">
Guest User</div>
<button type="button" class="ypg-popover-item" onclick="openHelpModal()">
<span>❓</span> Help & Support
@@ -85,7 +85,7 @@
<!-- Account Popover Menu -->
<div class="ypg-account-popover" id="accountMenuPopover" hidden>
<div id="popoverCustomerName"
- style="padding:4px 8px 8px 8px; font-weight:700; font-size:12px; border-bottom:1px solid #f1f5f9; color:#0f172a;">
+ style="padding:4px 8px 8px 8px; font-weight:700; font-size:12px; border-bottom:1px solid var(--ypg-hc-divider, #f1f5f9); color:var(--ypg-text-dark);">
Guest User</div>
<button type="button" class="ypg-popover-item" onclick="openHelpModal()">
<span>❓</span> Help & Support
diff --git a/apps/checkout-portal/src/views/partials/modals.html b/apps/checkout-portal/src/views/partials/modals.html
index 2013ccf..ccbd8b3 100644
--- a/apps/checkout-portal/src/views/partials/modals.html
+++ b/apps/checkout-portal/src/views/partials/modals.html
@@ -4,16 +4,16 @@
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:12px;">
<strong style="font-size:15px;" id="helpModalTitle">{{APP_NAME}} Help &amp; Support</strong>
<button type="button" onclick="closeHelpModal()"
- style="background:none; border:none; font-size:18px; cursor:pointer; color:#64748b;">✕</button>
+ style="background:none; border:none; font-size:18px; cursor:pointer; color:var(--ypg-text-muted);">✕</button>
</div>
- <div style="font-size:12px; color:#64748b; margin-bottom:12px;">For inquiries regarding your order or payment
+ <div style="font-size:12px; color:var(--ypg-text-muted); margin-bottom:12px;">For inquiries regarding your order or payment
status:</div>
<div id="helpModalEmailsContainer" style="margin-bottom:8px; font-size:12px;"></div>
<div id="helpModalMobilesContainer" style="margin-bottom:12px; font-size:12px;"></div>
<div id="helpModalLegalLinks"
- style="display:none; gap:12px; font-size:11.5px; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid #e2e8f0;">
+ style="display:none; gap:12px; font-size:11.5px; margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--ypg-border);">
</div>
- <div style="font-size:11px; font-weight:700; color:#64748b; text-transform:uppercase; margin-bottom:4px;">
+ <div style="font-size:11px; font-weight:700; color:var(--ypg-text-muted); text-transform:uppercase; margin-bottom:4px;">
Payment Case Info</div>
<pre id="helpModalCaseInfoText"
style="background:#f1f5f9; padding:8px; border-radius:6px; font-size:10px; color:#334155; white-space:pre-wrap; font-family:monospace; margin-bottom:12px;"></pre>
@@ -27,10 +27,10 @@
<div class="ypg-dialog-overlay" id="activeConflictModal" hidden>
<div class="ypg-dialog-card" style="max-width:380px; text-align:center;">
<div
- style="width:48px; height:48px; border-radius:50%; background:#fef3c7; color:#d97706; display:flex; align-items:center; justify-content:center; font-size:24px; margin:0 auto 12px auto;">
+ style="width:48px; height:48px; border-radius:50%; background:#fef3c7; color:var(--ypg-hc-warning, #d97706); display:flex; align-items:center; justify-content:center; font-size:24px; margin:0 auto 12px auto;">
⚠️</div>
- <strong style="font-size:16px; color:#0f172a; display:block; margin-bottom:6px;" id="conflictModalTitle">Active Session Detected</strong>
- <p style="font-size:12.5px; color:#475569; line-height:1.5; margin-bottom:16px;" id="conflictModalDesc">
+ <strong style="font-size:16px; color:var(--ypg-text-dark); display:block; margin-bottom:6px;" id="conflictModalTitle">Active Session Detected</strong>
+ <p style="font-size:12.5px; color:var(--ypg-hc-text-body, #475569); line-height:1.5; margin-bottom:16px;" id="conflictModalDesc">
You already have an active payment session.
</p>
<div style="display:flex; flex-direction:column; gap:8px;">
@@ -41,7 +41,7 @@
</button>
<button type="button" class="ypg-btn-auth-action" id="btnEndSessionAndStartNew"
onclick="executeRetryNewPayment()"
- style="background:#f1f5f9; color:#334155; border:1px solid #cbd5e1; font-size:12.5px; font-weight:600; padding:9px;">
+ style="background:#f1f5f9; color:#334155; border:1px solid var(--ypg-input-border); font-size:12.5px; font-weight:600; padding:9px;">
END SESSION &amp; START NEW PAYMENT
</button>
</div>
@@ -52,7 +52,7 @@
<div class="rzp-sheet-backdrop" id="rzpProcessingModal" hidden>
<div class="rzp-sheet-dialog" style="position:relative;">
<button type="button" class="rzp-btn-sheet-close" onclick="closeProcessingModal()" title="Back to QR"
- style="position:absolute; top:14px; right:14px; background:none; border:none; font-size:18px; cursor:pointer; color:#64748b; z-index:10; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:background 0.15s;">✕</button>
+ style="position:absolute; top:14px; right:14px; background:none; border:none; font-size:18px; cursor:pointer; color:var(--ypg-text-muted); z-index:10; width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:50%; transition:background 0.15s;">✕</button>
<div class="rzp-sheet-content">
<div class="rzp-sheet-title" id="rzpProcessingTitle">Verifying Your Payment</div>
<div class="rzp-sheet-subtitle" id="rzpProcessingSubtitle">Bank verification in progress. Please do not close
@@ -71,7 +71,7 @@
</div>
</div>
<div
- style="font-size:12px; color:#10b981; font-weight:700; display:flex; align-items:center; justify-content:center; gap:6px; margin-top:10px;">
+ style="font-size:12px; color:var(--ypg-hc-success, #10b981); font-weight:700; display:flex; align-items:center; justify-content:center; gap:6px; margin-top:10px;">
<span
style="display:inline-block; width:7px; height:7px; border-radius:50%; background:#10b981; box-shadow:0 0 6px #10b981; animation:rzpHaloPulse 1.2s infinite;"></span>
Checking UPI transaction in real-time...
@@ -79,7 +79,7 @@
<button type="button" class="rzp-sheet-cancel-btn" onclick="openCancelPaymentModal()"
style="margin-top:12px;">Cancel Payment</button>
<button type="button" onclick="closeProcessingModal()"
- style="background:none; border:none; color:#64748b; font-size:12px; font-weight:600; cursor:pointer; margin-top:8px; text-decoration:underline;">
+ style="background:none; border:none; color:var(--ypg-text-muted); font-size:12px; font-weight:600; cursor:pointer; margin-top:8px; text-decoration:underline;">
Return to QR Code
</button>
</div>
@@ -172,7 +172,7 @@
</div>
<div class="rzp-secured-by">
<span>Secured by</span>
- <strong style="color:#0f172a; font-weight:800;">{{APP_NAME}}</strong>
+ <strong style="color:var(--ypg-text-dark); font-weight:800;">{{APP_NAME}}</strong>
</div>
</div>
</div>
diff --git a/apps/checkout-portal/src/views/partials/payment-methods.html b/apps/checkout-portal/src/views/partials/payment-methods.html
index fc3ba56..4eb1ee1 100644
--- a/apps/checkout-portal/src/views/partials/payment-methods.html
+++ b/apps/checkout-portal/src/views/partials/payment-methods.html
@@ -56,7 +56,7 @@
</div>
<div class="ypg-pc-method-sub">Pay cash directly to cashier</div>
<div class="ypg-pc-method-icons" style="margin-top:6px;">
- <span style="font-size:10.5px; font-weight:700; color:#15803d; background:#dcfce7; padding:2px 8px; border-radius:5px; display:inline-flex; align-items:center; gap:4px; border:1px solid #bbf7d0;">
+ <span style="font-size:10.5px; font-weight:700; color:var(--ypg-hc-success, #15803d); background:#dcfce7; padding:2px 8px; border-radius:5px; display:inline-flex; align-items:center; gap:4px; border:1px solid #bbf7d0;">
<img src="/icons/cash.svg" alt="Cash" style="width:12px; height:12px;" />
Physical Cash
</span>
@@ -66,9 +66,9 @@
<!-- Card at Counter (Offline Mode) -->
<div class="ypg-pc-method-card" id="pcMethodCardCard" onclick="selectPaymentMethod('CARD_COUNTER')" style="{{PC_CARD_STYLE}}">
<div class="ypg-pc-method-header">
- <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right:6px; vertical-align:middle; color:#475569;"><rect x="2" y="5" width="20" height="14" rx="2"/><line x1="2" y1="10" x2="22" y2="10"/></svg>
+ <svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" style="margin-right:6px; vertical-align:middle; color:var(--ypg-hc-text-body, #475569);"><rect x="2" y="5" width="20" height="14" rx="2"/><line x1="2" y1="10" x2="22" y2="10"/></svg>
<div class="ypg-pc-method-title">Card at Counter</div>
- <span class="ypg-pc-cash-pill" style="background:#f1f5f9; color:#475569;">POS</span>
+ <span class="ypg-pc-cash-pill" style="background:#f1f5f9; color:var(--ypg-hc-text-body, #475569);">POS</span>
</div>
<div class="ypg-pc-method-sub">Swipe or tap card at POS desk</div>
<div class="ypg-pc-method-icons" style="gap:5px; margin-top:6px; display:flex; align-items:center;">
@@ -83,11 +83,11 @@
<div class="ypg-pc-method-header">
<img src="/icons/cash.svg" alt="COD" style="width:16px; height:16px; margin-right:6px; vertical-align:middle;" />
<div class="ypg-pc-method-title">Cash on Delivery</div>
- <span class="ypg-pc-cash-pill" style="background:#fef3c7; color:#92400e;">COD</span>
+ <span class="ypg-pc-cash-pill" style="background:#fef3c7; color:var(--ypg-hc-warning, #92400e);">COD</span>
</div>
<div class="ypg-pc-method-sub">Pay physical cash at doorstep</div>
<div class="ypg-pc-method-icons" style="margin-top:6px;">
- <span style="font-size:10.5px; font-weight:700; color:#b45309; background:#fef3c7; padding:2px 8px; border-radius:5px; display:inline-flex; align-items:center; gap:4px; border:1px solid #fde68a;">
+ <span style="font-size:10.5px; font-weight:700; color:var(--ypg-hc-warning, #b45309); background:#fef3c7; padding:2px 8px; border-radius:5px; display:inline-flex; align-items:center; gap:4px; border:1px solid #fde68a;">
<img src="/icons/cash.svg" alt="COD" style="width:12px; height:12px;" />
Doorstep Cash
</span>
@@ -140,7 +140,7 @@
<div class="ypg-qr-card-container">
<!-- Left: QR Box -->
<div class="ypg-qr-image-box" id="qrImageContainer">
- <div style="font-size:11px; color:#94a3b8; text-align:center;">Loading QR...</div>
+ <div style="font-size:11px; color:var(--ypg-hc-text-faint, #94a3b8); text-align:center;">Loading QR...</div>
</div>
<!-- Right: Prompt, UPI App Logos -->
@@ -167,7 +167,7 @@
</div>
</div>
- <div style="font-size:12px; color:#64748b; line-height:1.4;">
+ <div style="font-size:12px; color:var(--ypg-text-muted); line-height:1.4;">
Open any UPI app on your phone to scan and pay directly.
</div>
@@ -215,10 +215,10 @@
<div class="ypg-offer-icon-badge" style="background:#d97706; color:#fff; display:flex; align-items:center; justify-content:center;">
<img src="/icons/cash.svg" alt="Cash" style="width:14px; height:14px;" />
</div>
- <span style="color:#92400e; font-weight:700;">Pay Cash at Doorstep</span>
+ <span style="color:var(--ypg-hc-warning, #92400e); font-weight:700;">Pay Cash at Doorstep</span>
</div>
<div class="ypg-offers-right">
- <span style="color:#b45309;">Verified Purchase</span>
+ <span style="color:var(--ypg-hc-warning, #b45309);">Verified Purchase</span>
</div>
</div>
@@ -226,8 +226,8 @@
<div
style="background:#ffffff; border:1px solid var(--ypg-border); border-radius:12px; padding:16px; margin:14px 0;">
<div style="display:flex; justify-content:space-between; align-items:center; margin-bottom:12px;">
- <span style="font-size:12px; color:#64748b; font-weight:600;">Payable on Delivery</span>
- <strong style="font-size:20px; font-weight:800; color:#0f172a;">₹{{AMOUNT}}</strong>
+ <span style="font-size:12px; color:var(--ypg-text-muted); font-weight:600;">Payable on Delivery</span>
+ <strong style="font-size:20px; font-weight:800; color:var(--ypg-text-dark);">₹{{AMOUNT}}</strong>
</div>
<div
style="font-size:12px; color:#334155; line-height:1.5; border-top:1px dashed var(--ypg-border); padding-top:10px;">
@@ -267,34 +267,34 @@
<div
style="background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px; padding:16px; margin:14px 0; text-align:center;">
<div
- style="font-size:12px; font-weight:700; color:#166534; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px;">
+ style="font-size:12px; font-weight:700; color:var(--ypg-hc-success, #166534); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px;">
Amount Payable to Cashier</div>
- <div style="font-size:28px; font-weight:800; color:#15803d;">₹{{AMOUNT}}</div>
+ <div style="font-size:28px; font-weight:800; color:var(--ypg-hc-success, #15803d);">₹{{AMOUNT}}</div>
<!-- Prominent Cashier Order ID Display -->
<div
style="margin-top:12px; padding-top:10px; border-top:1px dashed #86efac; display:flex; align-items:center; justify-content:center; gap:8px;">
- <span style="font-size:12px; font-weight:700; color:#166534;">Store Order ID:</span>
+ <span style="font-size:12px; font-weight:700; color:var(--ypg-hc-success, #166534);">Store Order ID:</span>
<span class="cashierOrderIdDisplay"
- style="font-family:monospace; font-size:14.5px; font-weight:900; color:#0f172a; background:#ffffff; padding:3px 10px; border-radius:6px; border:1.5px solid #86efac; letter-spacing:0.5px;">#{{ORDER_ID}}</span>
+ style="font-family:monospace; font-size:14.5px; font-weight:900; color:var(--ypg-text-dark); background:#ffffff; padding:3px 10px; border-radius:6px; border:1.5px solid #86efac; letter-spacing:0.5px;">#{{ORDER_ID}}</span>
</div>
</div>
<!-- Counter Desk Instructions -->
<div class="ypg-instructions-card">
- <div style="font-size:12.5px; font-weight:700; color:#0f172a; margin-bottom:8px;">Counter Desk
+ <div style="font-size:12.5px; font-weight:700; color:var(--ypg-text-dark); margin-bottom:8px;">Counter Desk
Instructions</div>
- <p style="font-size:12px; color:#475569; line-height:1.5; margin:0;" id="cashCounterDeskNotice">
+ <p style="font-size:12px; color:var(--ypg-hc-text-body, #475569); line-height:1.5; margin:0;" id="cashCounterDeskNotice">
{{COUNTER_INSTRUCTIONS}}
</p>
</div>
- <div class="ypg-live-observer-strip" style="background:#eff6ff; border-color:#bfdbfe; color:#1e40af;">
+ <div class="ypg-live-observer-strip" style="background:#eff6ff; border-color:#bfdbfe; color:var(--ypg-hc-info, #1e40af);">
<div class="ypg-radar-dot" style="background:#2563eb; box-shadow:0 0 0 0 rgba(37,99,235,0.7);"></div>
<span>Awaiting Cashier Confirmation at Billing Desk...</span>
</div>
- <div style="font-size:12px; color:#64748b; text-align:center; padding:8px;">
+ <div style="font-size:12px; color:var(--ypg-text-muted); text-align:center; padding:8px;">
Present this screen and Order ID to the cashier. Your payment will automatically update once confirmed
by staff.
</div>
@@ -310,37 +310,37 @@
</div>
<div
- style="background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:16px; margin:14px 0; text-align:center;">
+ style="background:#f8fafc; border:1px solid var(--ypg-border); border-radius:12px; padding:16px; margin:14px 0; text-align:center;">
<div
- style="font-size:12px; font-weight:700; color:#475569; text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px;">
+ style="font-size:12px; font-weight:700; color:var(--ypg-hc-text-body, #475569); text-transform:uppercase; letter-spacing:0.5px; margin-bottom:4px;">
POS Terminal Charge</div>
- <div style="font-size:28px; font-weight:800; color:#0f172a;">₹{{AMOUNT}}</div>
+ <div style="font-size:28px; font-weight:800; color:var(--ypg-text-dark);">₹{{AMOUNT}}</div>
<!-- Prominent Cashier Order ID Display -->
<div
- style="margin-top:12px; padding-top:10px; border-top:1px dashed #cbd5e1; display:flex; align-items:center; justify-content:center; gap:8px;">
- <span style="font-size:12px; font-weight:700; color:#475569;">Store Order ID:</span>
+ style="margin-top:12px; padding-top:10px; border-top:1px dashed var(--ypg-input-border); display:flex; align-items:center; justify-content:center; gap:8px;">
+ <span style="font-size:12px; font-weight:700; color:var(--ypg-hc-text-body, #475569);">Store Order ID:</span>
<span class="cashierOrderIdDisplay"
- style="font-family:monospace; font-size:14.5px; font-weight:900; color:#0f172a; background:#ffffff; padding:3px 10px; border-radius:6px; border:1.5px solid #cbd5e1; letter-spacing:0.5px;">#{{ORDER_ID}}</span>
+ style="font-family:monospace; font-size:14.5px; font-weight:900; color:var(--ypg-text-dark); background:#ffffff; padding:3px 10px; border-radius:6px; border:1.5px solid var(--ypg-input-border); letter-spacing:0.5px;">#{{ORDER_ID}}</span>
</div>
</div>
<!-- Counter Desk Instructions -->
<div class="ypg-instructions-card">
- <div style="font-size:12.5px; font-weight:700; color:#0f172a; margin-bottom:8px;">POS Terminal
+ <div style="font-size:12.5px; font-weight:700; color:var(--ypg-text-dark); margin-bottom:8px;">POS Terminal
Instructions</div>
- <p style="font-size:12px; color:#475569; line-height:1.5; margin:0;" id="cardCounterDeskNotice">
+ <p style="font-size:12px; color:var(--ypg-hc-text-body, #475569); line-height:1.5; margin:0;" id="cardCounterDeskNotice">
Please swipe, insert, or tap your credit or debit card on the store POS terminal at the billing
desk.
</p>
</div>
- <div class="ypg-live-observer-strip" style="background:#eff6ff; border-color:#bfdbfe; color:#1e40af;">
+ <div class="ypg-live-observer-strip" style="background:#eff6ff; border-color:#bfdbfe; color:var(--ypg-hc-info, #1e40af);">
<div class="ypg-radar-dot" style="background:#2563eb; box-shadow:0 0 0 0 rgba(37,99,235,0.7);"></div>
<span>Awaiting Cashier Slip Verification...</span>
</div>
- <div style="font-size:12px; color:#64748b; text-align:center; padding:8px;">
+ <div style="font-size:12px; color:var(--ypg-text-muted); text-align:center; padding:8px;">
Present this screen and Order ID to the cashier. Cashier will verify transaction and approve this
checkout session.
</div>
@@ -352,12 +352,12 @@
<div id="queueTimeSavingBanner" class="ypg-time-saving-banner" style="display:none;"></div>
<div class="ypg-queue-container">
- <div style="font-size:16px; font-weight:800; color:#1e3a8a;">You Are In Line for Payment</div>
+ <div style="font-size:16px; font-weight:800; color:var(--ypg-hc-info, #1e3a8a);">You Are In Line for Payment</div>
<div class="ypg-queue-number" id="queueNumberDisplay">#1</div>
<div style="font-size:13px; font-weight:700; color:#2563eb;">
Estimated Wait: <span id="queueTimerText">00:30</span>
</div>
- <div style="font-size:12px; color:#475569; margin-top:8px; line-height:1.4;">
+ <div style="font-size:12px; color:var(--ypg-hc-text-body, #475569); margin-top:8px; line-height:1.4;">
Your payment slot is reserved. You will be activated automatically the moment the current
transaction finishes.
</div>
@@ -383,7 +383,7 @@
</div>
</div>
</div>
- <div style="font-size:12px; color:#64748b; margin-top:8px;">
+ <div style="font-size:12px; color:var(--ypg-text-muted); margin-top:8px;">
Bank verification in progress (<span id="procTimerText">30s</span>)
</div>
<button type="button" class="rzp-sheet-cancel-btn" onclick="openCancelPaymentModal()"
@@ -405,7 +405,7 @@
Your payment was automatically verified by {{APP_NAME}} banking observers.
</div>
<div id="successCodDevApiBox"
- style="display:none; font-size:11.5px; background:#f1f5f9; padding:10px 14px; border-radius:8px; margin-bottom:14px; text-align:left; border:1px solid #e2e8f0;">
+ style="display:none; font-size:11.5px; background:#f1f5f9; padding:10px 14px; border-radius:8px; margin-bottom:14px; text-align:left; border:1px solid var(--ypg-border);">
<span style="font-weight:700; color:#334155;">Developer Order API:</span>
<div
style="word-break:break-all; font-family:monospace; color:#2563eb; margin-top:3px; font-size:11px;"
@@ -475,7 +475,7 @@
<span class="ypg-blocked-details-label">Session ID:</span>
<span class="ypg-blocked-details-val" id="blockedSessionIdVal">-</span>
<span class="ypg-blocked-details-label">Status:</span>
- <span class="ypg-blocked-details-val" style="color:#ef4444; font-weight:800;">ACCOUNT BLOCKED</span>
+ <span class="ypg-blocked-details-val" style="color:var(--ypg-hc-danger, #ef4444); font-weight:800;">ACCOUNT BLOCKED</span>
<span class="ypg-blocked-details-label">Timestamp:</span>
<span class="ypg-blocked-details-val" id="blockedTimestampVal">-</span>
</div>
@@ -484,7 +484,7 @@
<button type="button" class="ypg-btn-blocked-exit" onclick="handleBlockedExit()">
<span>Return to Merchant Store</span>
</button>
- <button type="button" onclick="openHelpModal()" style="background:none; border:none; color:#64748b; font-size:12px; font-weight:600; cursor:pointer; text-decoration:underline; padding:6px;">
+ <button type="button" onclick="openHelpModal()" style="background:none; border:none; color:var(--ypg-text-muted); font-size:12px; font-weight:600; cursor:pointer; text-decoration:underline; padding:6px;">
Need help? View Security Case Reference
</button>
</div>
@@ -511,10 +511,10 @@
<div class="ypg-duplicate-subtitle" id="dupSessionSubtitleText">Payment Session Active on Another Device</div>
<div class="ypg-duplicate-card">
- <p class="ypg-duplicate-desc" style="font-weight:700; color:#0f172a; margin-bottom:6px;">
+ <p class="ypg-duplicate-desc" style="font-weight:700; color:var(--ypg-text-dark); margin-bottom:6px;">
This payment session was created on another device.
</p>
- <p class="ypg-duplicate-desc" style="color:#64748b; font-size:12.5px;">
+ <p class="ypg-duplicate-desc" style="color:var(--ypg-text-muted); font-size:12.5px;">
For security reasons, this session cannot be continued from this device.
</p>
</div>