/* ── Livescore page: bonus strip + info callout (legacy blocks → v8) ── */

body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-bonus,
body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-telegram,
body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-about {
	width: 100%;
}

body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-bonus > .container,
body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-telegram > .container,
body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-about > .container,
body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-bonus .wl-livescore-section-shell .container,
body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-telegram .wl-livescore-section-shell .container,
body.wl-sports-livescore-page .wp-block-affility-elements-wl-sports-livescore-about .wl-livescore-section-shell .container,
body.wl-sports-livescore-page .wl-bonus-table-04 .container,
body.wl-sports-livescore-page .wl-telegram-banner .container,
body.wl-sports-livescore-page .wl-02d .container {
	width: min(100% - 2rem, var(--wl-content-max, 1330px));
	max-width: var(--wl-content-max, 1330px);
	margin-inline: auto;
	padding-inline: 0;
	box-sizing: border-box;
}

body.wl-sports-livescore-page .wl-bonus-table-04,
body.wl-sports-livescore-page .wl-livescore-section-shell.wl-bonus-table-04 {
	padding: 2rem 0 2.5rem;
	background: var(--wl-canvas, #f4f5f7) !important;
	box-shadow: none !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table[style*="background-image"] {
	background-image: none !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 p {
	color: var(--wl-ink-muted, #55615f) !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 p a {
	color: var(--wl-teal-dark, #046962) !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 h2,
body.wl-sports-livescore-page .wl-livescore-section-shell.wl-bonus-table-04 h2 {
	margin: 0 0 0.35rem;
	padding: 0;
	color: var(--wl-ink, #161e1d) !important;
	font-family: var(--wl-font-display, "Mulish", sans-serif);
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	text-align: left;
}

body.wl-sports-livescore-page .wl-bonus-table-04 > p {
	margin: 0;
	padding: 0 1rem;
	color: var(--wl-ink-muted, #55615f);
	font-size: 0.875rem;
	line-height: 1.45;
	text-align: center;
}

body.wl-sports-livescore-page .wl-bonus-table-04 > p + p {
	margin-top: 0.35rem;
}

body.wl-sports-livescore-page .wl-bonus-table-04 > p a {
	color: var(--wl-teal-dark, #046962);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.wl-sports-livescore-page .wl-bonus-table-04 > p a:hover {
	color: var(--wl-teal, #058a7d);
	text-decoration: none;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses,
body.wl-sports-livescore-page .wl-livescore-section-shell.wl-bonus-table-04 .bonuses {
	display: grid !important;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding: 1rem 0 0.25rem;
	counter-reset: rows-counter;
	flex-wrap: unset !important;
	justify-content: unset !important;
}

@media (min-width: 640px) {
	body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.85rem;
		padding: 1.25rem 1.25rem 0.35rem;
	}
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table {
	--wl-bonus-accent: var(--wl-teal, #058a7d);
	--wl-bonus-accent-soft: rgba(5, 138, 125, 0.1);
	display: none;
	flex: none !important;
	max-width: none !important;
	min-height: 0;
	padding: 0 !important;
	border: 0 !important;
	border-top: 3px solid var(--wl-bonus-accent) !important;
	border-radius: 18px !important;
	overflow: hidden;
	background: var(--wl-surface-elevated, #fff) !important;
	background-image: none !important;
	box-shadow: 0 2px 4px rgba(22, 30, 29, 0.04), 0 12px 28px rgba(22, 30, 29, 0.08);
	counter-increment: rows-counter;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table:nth-child(2) {
	--wl-bonus-accent: #78a92f;
	--wl-bonus-accent-soft: rgba(120, 169, 47, 0.12);
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table:nth-child(3) {
	--wl-bonus-accent: #d89418;
	--wl-bonus-accent-soft: rgba(216, 148, 24, 0.12);
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table:nth-child(4) {
	--wl-bonus-accent: var(--wl-coral-dark, #ee5626);
	--wl-bonus-accent-soft: rgba(238, 86, 38, 0.1);
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table[data-visible="yes"] {
	display: flex !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table::before {
	content: counter(rows-counter);
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	z-index: 3;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 0.6875rem;
	font-weight: 800;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96) !important;
	color: var(--wl-ink, #161e1d) !important;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16) !important;
	border: 0;
	font-family: var(--wl-font, "DM Sans", sans-serif);
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table::after {
	display: none !important;
	content: none !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table:hover {
	box-shadow: 0 4px 8px rgba(22, 30, 29, 0.05), 0 18px 38px rgba(22, 30, 29, 0.12);
	transform: translateY(-4px);
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table:hover::before {
	background: var(--wl-bonus-accent) !important;
	color: #fff !important;
	border-color: transparent;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table thead {
	display: none !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table table,
body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table tbody,
body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table tbody tr {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	position: relative;
	z-index: 2;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table table {
	background:
		radial-gradient(circle at 100% 0%, var(--wl-bonus-accent-soft), transparent 42%),
		#fff;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table tbody tr {
	min-height: 0 !important;
	padding: 0.75rem;
	box-sizing: border-box;
	justify-content: flex-start !important;
	gap: 0.65rem;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-logo {
	order: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 62px;
	margin: 0;
	padding: 0.6rem 2.5rem !important;
	border-radius: 12px !important;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 55%),
		var(--wl-ink, #161e1d) !important;
	text-align: center !important;
	align-self: stretch;
	z-index: auto;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .casino-logo,
body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .casino-logo.after,
body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .casino-logo.before,
body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .casino-logo:not(.before):not(.after) {
	width: 160px !important;
	height: 42px !important;
	min-width: 0 !important;
	max-width: 100%;
	margin: 0 auto;
	background-size: contain !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	display: block;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-bonus {
	order: 2;
	align-self: flex-start;
	width: auto !important;
	padding: 0.35rem 0.6rem !important;
	border-radius: 999px;
	background: var(--wl-bonus-accent-soft) !important;
	color: var(--wl-bonus-accent) !important;
	font-size: 0.6875rem !important;
	font-weight: 800 !important;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: left !important;
	margin: 0 !important;
	flex: none !important;
	display: inline-flex !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-bonus p {
	color: inherit !important;
	margin: 0;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-details {
	order: 3;
	flex: 1 1 auto;
	padding: 0 0.2rem !important;
	background: transparent !important;
	color: var(--wl-ink, #161e1d) !important;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	line-height: 1.45;
	text-transform: none !important;
	text-align: left !important;
	margin: 0 !important;
	display: block !important;
	min-height: 0;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-details p {
	color: var(--wl-ink-soft, #283231) !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	line-height: 1.45;
	margin: 0;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-details strong {
	color: var(--wl-ink, #161e1d);
	font-weight: 800;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-action {
	order: 4;
	padding: 0.25rem 0 0 !important;
	text-align: left !important;
	z-index: auto;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-action .golink {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 40px !important;
	height: auto !important;
	width: 100%;
	padding: 0 1rem !important;
	box-sizing: border-box;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--wl-coral, #ff8762), var(--wl-coral-dark, #ee5626)) !important;
	box-shadow: 0 6px 16px rgba(238, 86, 38, 0.18) !important;
	color: #fff !important;
	font-size: 0.8125rem !important;
	font-weight: 800 !important;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses .table .cell-action .golink:hover {
	background: linear-gradient(135deg, #ff9475, #f04a18) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(238, 86, 38, 0.24) !important;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .load-more-wrapper {
	padding: 0.75rem 1rem 0;
	text-align: center;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 1.25rem;
	border: 1px solid var(--wl-border, rgba(85, 97, 95, 0.22));
	border-radius: 999px;
	background: var(--wl-surface-elevated, #fff);
	box-shadow: var(--wl-shadow-sm);
	color: var(--wl-ink, #161e1d);
	font-size: 0.875rem;
	font-weight: 800;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.wl-sports-livescore-page .wl-bonus-table-04 .load-more:hover {
	border-color: var(--wl-teal, #058a7d);
	color: var(--wl-teal-dark, #046962);
	background: #fff;
	transform: translateY(-1px);
	cursor: pointer;
}

/* Info callout block */
body.wl-sports-livescore-page .wl-02d,
body.wl-sports-livescore-page .wl-livescore-section-shell.wl-02d {
	padding: 0 0 1.75rem;
	background: transparent;
}

body.wl-sports-livescore-page .wl-02d .box,
body.wl-sports-livescore-page .wl-livescore-section-shell.wl-02d .box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 1rem;
	row-gap: 0.75rem;
	align-items: start;
	margin: 0;
	padding: 1.1rem 1.2rem;
	border-radius: var(--wl-radius-lg, 24px);
	border: 1px solid var(--wl-border, rgba(85, 97, 95, 0.14));
	background: var(--wl-surface-elevated, #fff);
	box-shadow: var(--wl-shadow-sm);
}

body.wl-sports-livescore-page .wl-02d .box::before {
	content: "!";
	grid-column: 1;
	grid-row: 1;
	position: static;
	top: auto;
	left: auto;
	float: none;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--wl-teal, #058a7d) !important;
	background-image: none !important;
	box-shadow: 0 8px 20px rgba(5, 138, 125, 0.25);
	color: #fff;
	font-family: var(--wl-font, "DM Sans", sans-serif);
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1;
}

body.wl-sports-livescore-page .wl-02d .box p {
	grid-column: 2;
	margin: 0;
	color: var(--wl-ink-soft, #283231);
	font-size: 0.9375rem;
	line-height: 1.6;
}

body.wl-sports-livescore-page .wl-02d .box p + p {
	margin-top: 0.75rem;
}

body.wl-sports-livescore-page .wl-02d p a {
	color: var(--wl-teal-dark, #046962);
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.wl-sports-livescore-page .wl-02d p a:hover {
	color: var(--wl-teal, #058a7d);
	text-decoration: none;
}

@media (min-width: 768px) {
	body.wl-sports-livescore-page .wl-bonus-table-04 {
		padding: 2.5rem 0 3rem;
	}

	body.wl-sports-livescore-page .wl-bonus-table-04 .bonuses {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	body.wl-sports-livescore-page .wl-02d .box {
		margin: 0 auto;
		max-width: var(--wl-content-max, 1330px);
		column-gap: 1.15rem;
		padding: 1.25rem 1.5rem;
	}

	body.wl-sports-livescore-page .wl-02d .box::before {
		width: 2.5rem;
		height: 2.5rem;
	}
}
