/* XMart Payment Gateway Charges — client area checkout styles */
.xgc-co {
    --xgc-co-accent: #4f46e5;
    --xgc-co-bg: #f7f8ff;
    --xgc-co-line: #e0e4ff;
    --xgc-co-ink: #1e293b;
    --xgc-co-muted: #64748b;
    margin: 14px 0 18px;
    font-size: 14px;
    color: var(--xgc-co-ink);
    animation: xgc-co-in .25s ease-out;
}
.xgc-co[hidden] { display: none !important; }
@keyframes xgc-co-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.xgc-co--card {
    background: var(--xgc-co-bg);
    border: 1px solid var(--xgc-co-line);
    border-left: 4px solid var(--xgc-co-accent);
    border-radius: 10px;
    padding: 14px 16px;
}
.xgc-co__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.xgc-co__icon {
    display: inline-grid; place-items: center; flex: none;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--xgc-co-accent); color: #fff; font-weight: 700; font-size: 14px;
}
.xgc-co__title { font-weight: 600; }
.xgc-co__sub { font-size: 12.5px; color: var(--xgc-co-muted); }
.xgc-co__rows { border-top: 1px dashed var(--xgc-co-line); }
.xgc-co__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--xgc-co-line); font-variant-numeric: tabular-nums; }
.xgc-co__row:last-child { border-bottom: 0; }
.xgc-co__row small { font-weight: 400; color: var(--xgc-co-muted); margin-left: 4px; }
.xgc-co__row--total { font-size: 15px; }
.xgc-co__row--total strong { color: var(--xgc-co-accent); }
.xgc-co__note { margin-top: 8px; font-size: 12.5px; color: var(--xgc-co-muted); }

.xgc-co--inline {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 8px; background: var(--xgc-co-bg); border: 1px solid var(--xgc-co-line);
}
.xgc-co--inline .xgc-co__icon { width: 24px; height: 24px; font-size: 12px; }
.xgc-co--inline small { color: var(--xgc-co-muted); }

.xgc-co-badge {
    display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
    font-size: 11.5px; font-weight: 600; line-height: 1.7; vertical-align: middle;
    background: #eef2ff; color: #4338ca; white-space: nowrap;
}
.xgc-co-badge--free { background: #dcfce7; color: #15803d; }

.xgc-co-total-line {
    display: flex; justify-content: space-between; gap: 12px; padding: 6px 12px; margin-bottom: 6px;
    font-size: 13px; color: #4338ca; background: #eef2ff; border-radius: 6px;
}
.xgc-co-total-line[hidden] { display: none !important; }

.xgc-co-hint { margin-top: 6px; font-size: 12px; color: #64748b; }

/* ---- Discount variant ---------------------------------------------------- */
.xgc-co--discount { --xgc-co-accent: #0c8a5f; --xgc-co-bg: #effaf5; --xgc-co-line: #c9e8dc; }

/* ---- Charges table -------------------------------------------------------- */
.xgc-co-table { margin: 0 0 18px; border: 1px solid var(--xgc-co-line, #e0e4ff); border-radius: 10px; overflow: hidden; font-size: 13.5px; }
.xgc-co-table__title { padding: 10px 14px; font-weight: 600; background: var(--xgc-co-bg, #f7f8ff); border-bottom: 1px solid var(--xgc-co-line, #e0e4ff); }
.xgc-co-table table { width: 100%; border-collapse: collapse; margin: 0; }
.xgc-co-table th, .xgc-co-table td { padding: 8px 14px; text-align: left; border-bottom: 1px solid var(--xgc-co-line, #e0e4ff); }
.xgc-co-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 600; }
.xgc-co-table tr:last-child td { border-bottom: 0; }
.xgc-co-table tr.is-current td { background: var(--xgc-co-bg, #f7f8ff); font-weight: 600; }
.xgc-co-table .xgc-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- XMartHost (xmart-flow order form + xmarthost theme) ----------------- */
.xgc-theme-xmart { --xgc-co-accent: #0c6651; --xgc-co-bg: #f1faf6; --xgc-co-line: #c9e8dc; --xgc-co-ink: #0b1b3f; --xgc-co-muted: #56657b; }
.xgc-co.xgc-theme-xmart { border-radius: 13px; margin: 14px 0 6px; }
.xgc-co.xgc-theme-xmart .xgc-co__title { font-weight: 700; color: #0b1b3f; }
.xgc-co.xgc-theme-xmart .xgc-co__row--total strong { color: #0c6651; }
.xgc-co-table.xgc-theme-xmart { border-radius: 13px; }
.xm-pm .xgc-co-badge { align-self: flex-start; margin: 4px 0 0; background: #e3f5ee; color: #0c6651; font-size: 10.5px; }
.xm-pm .xgc-co-badge--free { background: #f1f5f9; color: #56657b; }
.xm-sum-row.xgc-sum-row span:first-child { color: #3b4a63; }
.xm-sum-row.xgc-sum-row span:last-child { color: #0c6651; }
.xm-gw-list .xgc-co-badge { margin: 0 6px 0 auto; background: #e3f5ee; color: #0c6651; }
.xm-gw-list .xgc-co-badge--free { background: #f1f5f9; color: #56657b; }
.xgc-inv-pct { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e3f5ee; color: #0c6651; font-weight: 800; font-size: 12px; }

/* ---- Lagom ------------------------------------------------------------------ */
.xgc-theme-lagom { --xgc-co-accent: var(--brand-primary, #1e6fff); }
.xgc-sum-row { display: flex; justify-content: space-between; gap: 12px; }
.xgc-sum-row span:last-child, .xgc-co-total-line span:last-child { white-space: nowrap; }

/* ---- Dark mode (XMartHost / Lagom / Nexus "dark-mode" body classes) -------- */
body.dark-mode .xgc-co, body.lagom-dark-mode .xgc-co, [data-theme="dark"] .xgc-co,
body.dark-mode .xgc-co-table, body.lagom-dark-mode .xgc-co-table, [data-theme="dark"] .xgc-co-table {
    --xgc-co-bg: rgba(255, 255, 255, .04); --xgc-co-line: rgba(255, 255, 255, .12); --xgc-co-ink: #e2e8f0; --xgc-co-muted: #94a3b8;
    color: var(--xgc-co-ink);
}
body.dark-mode .xgc-co-total-line, [data-theme="dark"] .xgc-co-total-line { background: rgba(99, 102, 241, .15); color: #c7d2fe; }
body.dark-mode .xgc-co-badge, [data-theme="dark"] .xgc-co-badge { background: rgba(99, 102, 241, .2); color: #c7d2fe; }
body.dark-mode .xgc-co-badge--free, [data-theme="dark"] .xgc-co-badge--free { background: rgba(34, 197, 94, .18); color: #86efac; }
