/* ==========================================================================
   Billing Saathi Help Center
   1. [billing_saathi_help] shortcode
   2. Help article content (tips, steps, menu paths, screenshots, tables)
   Colours can be changed by overriding the variables below in your theme.
   ========================================================================== */

.bskb-hc,
.bskb-article,
.epkb-article-content,
.eckb-article-content-body,
.entry-content {
	--bskb-primary: #2563eb;
	--bskb-primary-dark: #1d4ed8;
	--bskb-primary-soft: #eef4ff;
	--bskb-accent: #12a76b;
	--bskb-accent-soft: #e8f8f1;
	--bskb-warn: #b45309;
	--bskb-warn-soft: #fff7e6;
	--bskb-danger: #b42318;
	--bskb-danger-soft: #fef0ef;
	--bskb-text: #0f172a;
	--bskb-muted: #5b6474;
	--bskb-border: #e3e8ef;
	--bskb-surface: #ffffff;
	--bskb-surface-2: #f7f9fc;
	--bskb-radius: 14px;
}

/* ---------- 1. Help Center shortcode ---------- */

.bskb-hc {
	box-sizing: border-box;
	container-type: inline-size;
	container-name: bskb-hc;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto 48px;
	color: var(--bskb-text);
	font-size: 16px;
	line-height: 1.55;
}
.bskb-hc *,
.bskb-hc *::before,
.bskb-hc *::after { box-sizing: border-box; }

.bskb-hc-hero {
	text-align: center;
	padding: 40px 20px 28px;
	margin-bottom: 28px;
	border-radius: 22px;
	background:
		radial-gradient(1200px 300px at 10% -40%, rgba(37, 99, 235, .14), transparent 60%),
		radial-gradient(800px 260px at 100% 0%, rgba(18, 167, 107, .12), transparent 60%),
		var(--bskb-surface-2);
	border: 1px solid var(--bskb-border);
}
.bskb-hc .bskb-hc-title {
	margin: 0 0 8px;
	font-size: clamp(26px, 4vw, 38px);
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--bskb-text);
}
.bskb-hc .bskb-hc-sub {
	margin: 0 auto 22px;
	max-width: 640px;
	color: var(--bskb-muted);
	font-size: 17px;
}
.bskb-hc-search {
	position: relative;
	max-width: 640px;
	margin: 0 auto;
}
.bskb-hc-search svg {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--bskb-muted);
	pointer-events: none;
}
.bskb-hc .bskb-hc-input {
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 52px 0 52px;
	border: 1px solid var(--bskb-border);
	border-radius: 999px;
	background: var(--bskb-surface);
	color: var(--bskb-text);
	font-size: 17px;
	box-shadow: 0 6px 24px rgba(15, 23, 42, .07);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.bskb-hc .bskb-hc-input:focus {
	border-color: var(--bskb-primary);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, .15), 0 6px 24px rgba(15, 23, 42, .07);
}
.bskb-hc .bskb-hc-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.bskb-hc .bskb-hc-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bskb-surface-2);
	color: var(--bskb-muted);
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
}
.bskb-hc .bskb-hc-clear:hover { background: var(--bskb-border); color: var(--bskb-text); }
.bskb-hc .bskb-hc-meta {
	margin: 12px 0 0;
	color: var(--bskb-muted);
	font-size: 14px;
}
.bskb-hc-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 20px auto 0;
	max-width: 980px;
}
.bskb-hc .bskb-hc-chip {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--bskb-border);
	border-radius: 999px;
	background: var(--bskb-surface);
	color: var(--bskb-text);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s, color .15s, background .15s;
}
.bskb-hc .bskb-hc-chip:hover,
.bskb-hc .bskb-hc-chip:focus {
	border-color: var(--bskb-primary);
	color: var(--bskb-primary);
	background: var(--bskb-primary-soft);
}

.bskb-hc-grid {
	display: grid;
	grid-template-columns: repeat(var(--bskb-cols, 3), minmax(0, 1fr));
	gap: 20px;
	align-items: start;
}
.bskb-hc-card {
	scroll-margin-top: 90px;
	padding: 22px 22px 16px;
	border: 1px solid var(--bskb-border);
	border-radius: var(--bskb-radius);
	background: var(--bskb-surface);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: box-shadow .2s, transform .2s;
}
.bskb-hc-card:hover { box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.bskb-hc-card-head {
	display: grid;
	grid-template-columns: 44px 1fr;
	gap: 4px 14px;
	align-items: start;
	margin-bottom: 12px;
}
.bskb-hc-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--bskb-primary-soft);
	color: var(--bskb-primary);
}
.bskb-hc-card:nth-child(3n+2) .bskb-hc-icon { background: var(--bskb-accent-soft); color: var(--bskb-accent); }
.bskb-hc-card:nth-child(3n+3) .bskb-hc-icon { background: #f3efff; color: #6d4ad8; }
.bskb-hc .bskb-hc-card-title {
	margin: 2px 0 2px;
	font-size: 19px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--bskb-text);
}
.bskb-hc-card-text { display: contents; }
.bskb-hc .bskb-hc-card-title { align-self: center; }
.bskb-hc .bskb-hc-card-desc {
	grid-column: 1 / -1;
	margin: 6px 0 0;
	color: var(--bskb-muted);
	font-size: 14px;
	line-height: 1.45;
}
.bskb-hc-badge {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: 6px;
	padding: 2px 9px;
	border-radius: 999px;
	background: var(--bskb-surface-2);
	color: var(--bskb-muted);
	font-size: 12px;
	font-weight: 600;
}
.bskb-hc .bskb-hc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--bskb-border);
}
.bskb-hc .bskb-hc-list li {
	margin: 0;
	padding: 9px 0 9px 22px;
	border-bottom: 1px dashed var(--bskb-border);
	position: relative;
	list-style: none;
}
.bskb-hc .bskb-hc-list li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 17px;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--bskb-primary);
	border-bottom: 2px solid var(--bskb-primary);
	transform: rotate(-45deg);
	opacity: .7;
}
.bskb-hc .bskb-hc-list li:last-child { border-bottom: 0; }
.bskb-hc .bskb-hc-list a {
	color: var(--bskb-text);
	font-weight: 500;
	text-decoration: none;
	box-shadow: none;
}
.bskb-hc .bskb-hc-list a:hover,
.bskb-hc .bskb-hc-list a:focus { color: var(--bskb-primary); text-decoration: underline; }
.bskb-hc .bskb-hc-ex {
	display: block;
	margin-top: 2px;
	color: var(--bskb-muted);
	font-size: 14px;
}
.bskb-hc .bskb-hc-sub-title {
	margin: 14px 0 4px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--bskb-muted);
}
.bskb-js .bskb-hc-card:not(.is-open) .bskb-hc-extra { display: none; }
.bskb-hc .bskb-hc-toggle {
	display: inline-block;
	margin: 10px 0 2px;
	padding: 6px 2px;
	border: 0;
	background: none;
	color: var(--bskb-primary);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: none;
}
.bskb-hc .bskb-hc-toggle:hover { text-decoration: underline; background: none; }
.bskb-hc:not(.bskb-js) .bskb-hc-toggle { display: none; }

/* search results */
.bskb-hc-results {
	margin: -8px 0 28px;
	padding: 18px 22px;
	border: 1px solid var(--bskb-border);
	border-radius: var(--bskb-radius);
	background: var(--bskb-surface);
}
.bskb-hc .bskb-hc-results-head { margin: 0 0 8px; color: var(--bskb-muted); font-size: 14px; }
.bskb-hc .bskb-hc-results-list { list-style: none; margin: 0; padding: 0; }
.bskb-hc .bskb-hc-results-list li { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--bskb-border); list-style: none; }
.bskb-hc .bskb-hc-results-list li:last-child { border-bottom: 0; }
.bskb-hc .bskb-hc-results-list a { font-size: 17px; font-weight: 600; color: var(--bskb-primary); text-decoration: none; }
.bskb-hc .bskb-hc-results-list a:hover { text-decoration: underline; }
.bskb-hc .bskb-hc-r-sec { display: block; margin-top: 1px; color: var(--bskb-accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bskb-hc .bskb-hc-r-ex { display: block; margin-top: 2px; color: var(--bskb-muted); font-size: 14px; }
.bskb-hc mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }
.bskb-hc.is-searching .bskb-hc-grid { display: none; }
.bskb-hc-noresults p { margin: 0; }
.bskb-hc-none { text-align: center; color: var(--bskb-muted); }

/* one section only */
.bskb-hc--single .bskb-hc-grid { grid-template-columns: 1fr; }
.bskb-hc--single .bskb-hc-card { padding: 26px; }

@media (max-width: 1024px) {
	.bskb-hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bskb-hc[style*="--bskb-cols:1"] .bskb-hc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.bskb-hc-hero { padding: 28px 16px 22px; border-radius: 16px; }
	.bskb-hc-grid { grid-template-columns: 1fr; gap: 14px; }
	.bskb-hc-card { padding: 18px 16px 12px; }
	.bskb-hc .bskb-hc-input { height: 50px; font-size: 16px; }
	.bskb-hc-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
	.bskb-hc .bskb-hc-chip { white-space: nowrap; }
}

/* the grid follows the width it actually gets (narrow theme content areas, sidebars) */
@container bskb-hc (max-width: 900px) {
	.bskb-hc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container bskb-hc (max-width: 560px) {
	.bskb-hc-grid { grid-template-columns: 1fr; gap: 14px; }
	.bskb-hc-hero { padding: 28px 16px 22px; border-radius: 16px; }
	.bskb-hc-card { padding: 18px 16px 12px; }
}
.bskb-hc--single .bskb-hc-grid,
.bskb-hc[style*="--bskb-cols:1"] .bskb-hc-grid { grid-template-columns: 1fr; }

/* ---------- 2. Help article content ---------- */

.bskb-lead {
	font-size: 1.12em;
	line-height: 1.6;
	color: var(--bskb-text, #0f172a);
}
.bskb-path {
	display: block;
	margin: 0 0 1.4em;
	padding: 10px 14px;
	border: 1px solid var(--bskb-border, #e3e8ef);
	border-radius: 10px;
	background: var(--bskb-surface-2, #f7f9fc);
	font-size: .95em;
}
.bskb-path strong { color: var(--bskb-muted, #5b6474); font-weight: 600; margin-right: 4px; }
.bskb-path .bskb-ui,
.bskb-ui {
	display: inline-block;
	padding: 1px 8px;
	margin: 1px 0;
	border: 1px solid var(--bskb-border, #e3e8ef);
	border-radius: 6px;
	background: #fff;
	color: var(--bskb-primary-dark, #1d4ed8);
	font-weight: 600;
	font-size: .92em;
	white-space: nowrap;
}
ol.bskb-steps {
	counter-reset: bskb-step;
	list-style: none;
	margin: 0 0 1.6em;
	padding: 0;
}
ol.bskb-steps > li {
	counter-increment: bskb-step;
	position: relative;
	margin: 0 0 14px;
	padding: 2px 0 0 46px;
	min-height: 32px;
	list-style: none;
}
ol.bskb-steps > li::before {
	content: counter(bskb-step);
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bskb-primary, #2563eb);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 32px;
	text-align: center;
}
ol.bskb-steps > li ul,
ol.bskb-steps > li ol { margin-top: 6px; }
.bskb-callout {
	margin: 1.4em 0;
	padding: 14px 16px 14px 18px;
	border-left: 4px solid var(--bskb-primary, #2563eb);
	border-radius: 10px;
	background: var(--bskb-primary-soft, #eef4ff);
}
.bskb-callout > :first-child { margin-top: 0; }
.bskb-callout > :last-child { margin-bottom: 0; }
.bskb-callout.bskb-tip { border-left-color: var(--bskb-accent, #12a76b); background: var(--bskb-accent-soft, #e8f8f1); }
.bskb-callout.bskb-warn { border-left-color: #f59e0b; background: var(--bskb-warn-soft, #fff7e6); }
.bskb-callout.bskb-danger { border-left-color: var(--bskb-danger, #b42318); background: var(--bskb-danger-soft, #fef0ef); }
.bskb-figure {
	margin: 1.4em 0 1.8em;
	padding: 0;
}
.bskb-figure img,
img.bskb-shot {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--bskb-border, #e3e8ef);
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(15, 23, 42, .10);
}
.bskb-figure figcaption {
	margin-top: 8px;
	color: var(--bskb-muted, #5b6474);
	font-size: .9em;
	text-align: center;
}
table.bskb-table {
	width: 100%;
	margin: 1em 0 1.6em;
	border-collapse: collapse;
	font-size: .95em;
}
table.bskb-table th,
table.bskb-table td {
	padding: 9px 12px;
	border: 1px solid var(--bskb-border, #e3e8ef);
	text-align: left;
	vertical-align: top;
}
table.bskb-table th { background: var(--bskb-surface-2, #f7f9fc); font-weight: 700; }
.bskb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
kbd.bskb-kbd,
.bskb-kbd {
	display: inline-block;
	padding: 1px 7px;
	border: 1px solid #cbd5e1;
	border-bottom-width: 2px;
	border-radius: 6px;
	background: #fff;
	font: 600 .85em/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	color: #0f172a;
}
.bskb-related {
	margin-top: 2em;
	padding: 16px 18px;
	border: 1px solid var(--bskb-border, #e3e8ef);
	border-radius: 12px;
	background: var(--bskb-surface-2, #f7f9fc);
}
.bskb-related h2,
.bskb-related h3 { margin-top: 0; font-size: 1.05em; }
.bskb-related ul { margin-bottom: 0; }
