/* Payment method pages (/{slug}/, e.g. /mtn-momo/) and the Payment methods hub. */

.pmp-crumbs {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #6b6b6b;
}
.pmp-crumbs a {
	color: inherit;
	text-decoration: none;
}
.pmp-crumbs a:hover { color: #ce1126; }
.pmp-crumbs span[aria-hidden] { margin: 0 6px; }

.pmp-preview {
	margin: 0 0 16px;
	padding: 10px 14px;
	border: 1px dashed #d9a400;
	border-radius: 8px;
	background: #fff8e1;
	font-size: 14px;
	line-height: 1.45;
}

/* -------------------------------------------------------------------------
 * Page text of method pages and the hub (.pmp-text = their .entry-content).
 * Only direct children are styled, so the bookmaker cards and the FAQ keep their own look.
 * ---------------------------------------------------------------------- */
.pmp-text {
	--pmp-ink: #111827;
	--pmp-text: #374151;
	--pmp-muted: #6b7280;
	--pmp-line: #e7e9ee;
	--pmp-panel: #f6f7f9;
	--pmp-red: #ce1126;
	--pmp-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -10px rgba(16, 24, 40, .14);
}
.pmp-text > p,
.pmp-text > ul,
.pmp-text > ol,
.pmp-text > table,
.pmp-text > blockquote {
	color: var(--pmp-text);
	font-size: 16px;
	line-height: 1.75;
}
.pmp-text > p { margin: 0 0 1.1em; }
.pmp-text > p strong,
.pmp-text > ul strong,
.pmp-text > ol strong,
.pmp-text > blockquote strong { color: var(--pmp-ink); font-weight: 700; }
.pmp-text > p a,
.pmp-text > ul a,
.pmp-text > ol a,
.pmp-text > table a,
.pmp-text > blockquote a {
	color: var(--pmp-red);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.pmp-text > p a:hover,
.pmp-text > ul a:hover,
.pmp-text > ol a:hover,
.pmp-text > table a:hover,
.pmp-text > blockquote a:hover { text-decoration-thickness: 2px; }

/* Headings (spacing above/below comes from content.css, the same on every page) */
.pmp-text > h2 {
	padding: 0;
	border: 0;
	color: var(--pmp-ink);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.01em;
}
.pmp-text > h3 {
	margin: 1.6em 0 .6em;
	color: var(--pmp-ink);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

/* Tables: rounded, header row on grey, first column bold */
.pmp-text > table {
	width: 100%;
	margin: 1.2em 0 1.6em;
	overflow: hidden;
	border: 1px solid var(--pmp-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--pmp-shadow);
	font-variant-numeric: tabular-nums;
}
.pmp-text > table th,
.pmp-text > table td {
	padding: 13px 18px;
	border: 0;
	border-top: 1px solid var(--pmp-line);
	color: var(--pmp-text);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	vertical-align: top;
}
.pmp-text > table tr:first-child > th,
.pmp-text > table tr:first-child > td { border-top: 0; }
.pmp-text > table th {
	background: var(--pmp-panel);
	color: var(--pmp-ink);
	font-size: 14px;
	font-weight: 700;
}
.pmp-text > table td:first-child {
	color: var(--pmp-ink);
	font-weight: 700;
}
.pmp-text > table tr:not(.pmp-head):hover > td { background: #fafbfc; }

/* Bullet lists: soft panel with red dots */
.pmp-text > ul {
	margin: 0 0 1.4em;
	padding: 16px 20px;
	list-style: none;
	background: var(--pmp-panel);
	border: 1px solid var(--pmp-line);
	border-radius: 14px;
}
.pmp-text > ul > li {
	position: relative;
	margin: 0 0 .5em;
	padding: 0 0 0 24px;
	list-style: none;
}
.pmp-text > ul > li:last-child { margin-bottom: 0; }
.pmp-text > ul > li::before {
	content: "";
	position: absolute;
	top: .66em;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--pmp-red);
}

/* Lists where every item starts with bold text: one card per item */
.pmp-text > ul.pmp-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
}
.pmp-text > ul.pmp-cards > li {
	margin: 0;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--pmp-line);
	border-radius: 14px;
	box-shadow: var(--pmp-shadow);
	font-size: 15px;
	line-height: 1.65;
}
.pmp-text > ul.pmp-cards > li::before { content: none; }
.pmp-text > ul.pmp-cards > li > strong:first-child,
.pmp-text > ul.pmp-cards > li > b:first-child {
	display: block;
	margin: 0 0 6px;
	color: var(--pmp-ink);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.35;
}

/* Numbered lists: steps with red number badges */
.pmp-text > ol {
	margin: 0 0 1.4em;
	padding: 20px 22px;
	list-style: none;
	background: var(--pmp-panel);
	border: 1px solid var(--pmp-line);
	border-radius: 14px;
	counter-reset: pmp-step;
}
.pmp-text > ol > li {
	position: relative;
	min-height: 32px;
	margin: 0 0 14px;
	padding: 2px 0 0 48px;
	list-style: none;
	counter-increment: pmp-step;
}
.pmp-text > ol > li:last-child { margin-bottom: 0; }
.pmp-text > ol > li::before {
	content: counter(pmp-step);
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--pmp-red);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}
.pmp-text > ol > li:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 36px;
	bottom: -12px;
	left: 15px;
	width: 2px;
	border-radius: 2px;
	background: #f1c4ca;
}

/* Quotes are used as notes: tips and warnings */
.pmp-text > blockquote {
	position: relative;
	margin: 1.2em 0 1.6em;
	padding: 16px 20px 16px 58px;
	background: #fff8e6;
	border: 1px solid #f3d58c;
	border-radius: 14px;
	color: var(--pmp-ink);
	font-family: inherit;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.65;
}
.pmp-text > blockquote::before {
	content: "!";
	position: absolute;
	top: 16px;
	left: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #e09b00;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}
.pmp-text > blockquote p { margin: 0; }
.pmp-text > blockquote p + p { margin-top: .6em; }

/* Short codes such as *170# */
.pmp-text code {
	padding: 1px 4px;
	border: 1px solid var(--pmp-line);
	border-radius: 6px;
	background: var(--pmp-panel);
	color: var(--pmp-ink);
	font: 600 .9em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	white-space: nowrap;
}
.pmp-text > blockquote code { background: #fff; }

@media (max-width: 767px) {
	.pmp-text > h2 { font-size: 21px; }
	.pmp-text > ul { padding: 14px 16px; }
	.pmp-text > ol { padding: 16px; }
	.pmp-text > ul.pmp-cards {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
		padding: 0;
	}
	.pmp-text > blockquote { padding: 14px 16px 14px 52px; }
	.pmp-text > blockquote::before { top: 14px; left: 15px; }
}

/* Phones: each table row becomes a small card ("label ... value") */
@media (max-width: 640px) {
	.pmp-text > table.pmp-data,
	.pmp-text > table.pmp-data > tbody,
	.pmp-text > table.pmp-data > thead,
	.pmp-text > table.pmp-data tr,
	.pmp-text > table.pmp-data td {
		display: block;
		width: auto;
	}
	.pmp-text > table.pmp-data {
		overflow: visible;
		border: 0;
		border-radius: 0;
		background: none;
		box-shadow: none;
	}
	.pmp-text > table.pmp-data tr.pmp-head { display: none; }
	.pmp-text > table.pmp-data tr {
		margin: 0 0 10px;
		overflow: hidden;
		background: #fff;
		border: 1px solid var(--pmp-line);
		border-radius: 12px;
		box-shadow: var(--pmp-shadow);
	}
	.pmp-text > table.pmp-data td {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 10px 14px;
		border-top: 1px solid var(--pmp-line);
		text-align: right;
	}
	.pmp-text > table.pmp-data td::before {
		content: attr(data-label);
		color: var(--pmp-muted);
		font-weight: 600;
		text-align: left;
	}
	.pmp-text > table.pmp-data td:first-child {
		display: block;
		padding: 11px 14px;
		border-top: 0;
		background: var(--pmp-panel);
		font-size: 16px;
		text-align: left;
	}
	.pmp-text > table.pmp-data td:first-child::before { content: none; }
	.pmp-text > table.pmp-plain {
		display: block;
		overflow-x: auto;
	}
}

/* Bookmaker table inside the page text */
.entry-content .pmp-table { margin: 24px 0 8px; }
.entry-content .pmp-table + h2 { margin-top: 36px; }
.pmp-table ul,
.pmp-table li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.pmp-table a { text-decoration: none; }

.pmp-table.is-folded .pmp-extra { display: none; }
.pmp-more {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}
.pmp-more[hidden] { display: none; }
.pmp-more__btn {
	padding: 10px 22px;
	border: 1px solid #1a1a1a;
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.pmp-more__btn:hover,
.pmp-more__btn:focus-visible {
	border-color: #ce1126;
	color: #ce1126;
}

.pmp-methods {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.pmp-methods__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--ed-compare-muted, #5c5c5c);
}
.pmp-methods__list {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.ed-compare__features li.pmp-methods__more {
	color: var(--ed-compare-muted, #5c5c5c);
	font-weight: 500;
}
.ed-compare__features li.pmp-methods__more::before { visibility: hidden; }

@media (max-width: 900px) {
	.pmp-methods__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 6px 16px;
	}
}

/* Hub: one card per payment method */
.pmp-hub { margin: 24px 0 8px; }
.pmp-hub__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pmp-hub__list > li {
	margin: 0;
	padding: 0;
}
.pmp-hub__list > li::before { content: none; }
.pmp-hub__card {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 14px 16px;
	border: 1px solid #ececec;
	border-radius: 12px;
	background: #fff;
	color: #1a1a1a;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.pmp-hub__card:hover,
.pmp-hub__card:focus-visible {
	border-color: #ce1126;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
	color: #1a1a1a;
}
.pmp-hub__logo {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 10px;
	background: #fafafa;
	color: #ce1126;
	font-size: 18px;
	font-weight: 700;
}
.pmp-hub__logo img {
	width: auto;
	height: auto;
	max-width: 40px;
	max-height: 40px;
}
.pmp-hub__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.pmp-hub__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.pmp-hub__count {
	font-size: 13px;
	line-height: 1.4;
	color: #5c5c5c;
}
.pmp-hub__arrow {
	margin-left: auto;
	color: #ce1126;
}
