/* Table Bookmakers – [bookmakers-table] */
.tbk {
	--tbk-text: #1f2937;
	--tbk-strong: #111827;
	--tbk-muted: #6b7280;
	--tbk-line: #e7e9ee;
	--tbk-card: #fff;
	--tbk-green: #2f9e44;
	--tbk-green-dark: #257f36;
	--tbk-ok: #15803d;
	--tbk-ok-bg: #effaf2;
	--tbk-ok-line: #b9e8c6;
	--tbk-no: #b42318;
	--tbk-no-bg: #fef3f2;
	--tbk-no-line: #fcd0cc;
	--tbk-amber: #f5a524;
	--tbk-radius: 14px;
	container-type: inline-size;
	container-name: tbk;
	margin: 1.6em 0;
	color: var(--tbk-text);
	font-size: 16px;
	line-height: 1.35;
}
.tbk *,
.tbk *::before,
.tbk *::after { box-sizing: border-box; }

.tbk .tbk-list,
.tbk .tbk-chips {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tbk .tbk-list > li { margin: 0; padding: 0; list-style: none; }
.tbk .tbk-chips > li { margin: 0; list-style: none; }
.tbk .tbk-chips > li.tbk-chip-more-item { padding: 0; }
.tbk .tbk-list > li::before,
.tbk .tbk-chips > li::before { content: none; display: none; }

/* ---------- Row (phone first) ---------- */
.tbk .tbk-list > .tbk-row {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	grid-template-areas:
		"brand brand"
		"bonus bonus"
		"pay   pay"
		"dep   best"
		"cta   cta";
	margin: 0 0 14px;
	background: var(--tbk-card);
	border: 1px solid var(--tbk-line);
	border-radius: var(--tbk-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 18px -8px rgba(16, 24, 40, .12);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.tbk .tbk-list > .tbk-row:last-child { margin-bottom: 0; }
.tbk .tbk-row:hover { box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 28px -10px rgba(16, 24, 40, .2); }
.tbk-cell {
	min-width: 0;
	padding: 14px 16px;
	border-top: 1px solid var(--tbk-line);
	overflow-wrap: anywhere;
}
.tbk-brand   { grid-area: brand; border-top: 0; }
.tbk-bonus   { grid-area: bonus; }
.tbk-payments{ grid-area: pay; }
.tbk-deposit { grid-area: dep; }
.tbk-best    { grid-area: best; border-left: 1px solid var(--tbk-line); }
.tbk-cta     { grid-area: cta; }

.tbk-label {
	display: block;
	margin: 0 0 8px;
	color: var(--tbk-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .07em;
	line-height: 1.2;
	text-transform: uppercase;
}
.tbk-value { display: block; color: var(--tbk-strong); }
.tbk-dash { color: var(--tbk-muted); }

/* ---------- Brand ---------- */
.tbk-brand {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
	align-content: stretch;
	align-items: center;
	gap: 12px;
	padding-top: 18px;
}
/* The logo box fills the full height of the row's content */
.tbk-brand > .tbk-logo-wrap { position: relative; display: flex; align-self: stretch; }
.tbk-rank {
	position: absolute;
	top: -8px;
	left: -8px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: var(--tbk-strong);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.tbk-logo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: auto;
	min-height: 72px;
	padding: 8px 10px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--tbk-logo-bg, #1f2937);
	text-decoration: none;
}
.tbk a.tbk-logo,
.tbk a.tbk-logo:hover,
.tbk a.tbk-logo:focus { text-decoration: none; border: 0; }
.tbk-logo img.tbk-logo__img,
.tbk-logo .tbk-logo__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	margin: 0;
	object-fit: contain;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.tbk-logo__text {
	overflow: hidden;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbk-brand__info { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.tbk-brand__info .tbk-license { margin-top: 2px; }
/* Name and rating on one line (rating wraps under a long name) */
.tbk-brand__top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
/* Promo code under the license */
.tbk .tbk-brand__info button.tbk-code { height: 34px; margin-top: 4px; max-width: 240px; }
.tbk-name {
	color: var(--tbk-strong);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1.1;
}
.tbk-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #374151;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}
.tbk-rating svg { width: 18px; height: 18px; color: var(--tbk-amber); flex: none; }
.tbk-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* License: plain text with a small filled shield (no pill) */
.tbk-license {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #4b5563;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.tbk-license svg { width: 16px; height: 16px; flex: none; }
.tbk-license--ok svg { color: #1f8a46; }
.tbk-license--no svg { color: #c2412d; }
.tbk-license--no { color: #6b7280; }

/* ---------- Offer cells ---------- */
/* Bonus and min. deposit: soft highlight boxes */
.tbk-hl {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 66px;
	padding: 9px 12px;
	border-radius: 10px;
	background: #f4f5f7;
	box-shadow: inset 0 0 0 1px #eceef2;
}
.tbk-hl--center { align-items: center; text-align: center; }
.tbk-bonus__text { color: #374151; font-size: 14px; font-weight: 500; line-height: 1.3; }
.tbk .tbk-amount {
	display: block;
	color: var(--tbk-strong);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.01em;
	white-space: nowrap;
}
.tbk-amount__num { font-size: 24px; }
.tbk-amount__unit { margin-left: 3px; font-size: 14px; font-weight: 700; color: var(--tbk-muted); letter-spacing: .02em; }
.tbk .tbk-amount--bonus { margin-top: 2px; color: #ce1126; }
.tbk-amount--bonus .tbk-amount__unit { color: #ce1126; opacity: .8; }

/* Phone: payment methods in one row across the full width, "+N" as the last pill
   (tablet and desktop stack them, see the container queries below) */
.tbk .tbk-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 6px;
}
.tbk .tbk-chips > .tbk-chip { flex: 1 1 72px; justify-content: center; height: 36px; }
.tbk .tbk-chips > .tbk-chip-more-item { display: flex; flex: 0 0 auto; }
.tbk .tbk-chips > .tbk-chip-more-item > .tbk-chip--more { justify-content: center; min-width: 48px; height: 36px; }
.tbk .tbk-chip {
	display: inline-flex;
	align-items: center;
	height: 30px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid #d5d9e0;
	border-radius: 7px;
	background: #fff;
	color: var(--tbk-text);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}
.tbk .tbk-chip--extra { display: none; }
.tbk .tbk-chips.is-open .tbk-chip--extra { display: inline-flex; }
.tbk .tbk-chips.is-open .tbk-chip-more-item { display: none; }
.tbk button.tbk-chip--more {
	border-color: transparent;
	background: #eef0f3;
	color: #4b5563;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	transition: background .15s ease;
}
.tbk button.tbk-chip--more:hover,
.tbk button.tbk-chip--more:focus-visible { background: #e1e4e9; color: var(--tbk-strong) !important; /* theme forces white text on button:hover */ }


/* Best for: a short checklist, one item per line */
.tbk .tbk-best-list {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tbk .tbk-best-list > li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	padding: 0;
	color: var(--tbk-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.25;
	list-style: none;
}
.tbk .tbk-best-list > li::before { content: none; display: none; }
.tbk-best-list svg { width: 15px; height: 15px; margin-top: 1px; flex: none; color: #1f8a46; }

/* ---------- Actions ---------- */
.tbk-cta { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

.tbk button.tbk-code {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 40px 0 12px;
	border: 1.5px dashed #a3aab5;
	border-radius: 8px;
	background: #fff;
	color: var(--tbk-text);
	font: inherit;
	font-size: 14px;
	line-height: 1;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.tbk button.tbk-code:hover,
.tbk button.tbk-code:focus-visible { border-color: var(--tbk-strong); background: #f8f9fb; color: var(--tbk-text) !important; /* theme forces white text on button:hover */ }
.tbk-code__label { color: var(--tbk-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.tbk-code__value { overflow: hidden; color: var(--tbk-strong); font-size: 15px; font-weight: 800; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.tbk-code__icon {
	position: absolute;
	top: 50%;
	right: 10px;
	display: flex;
	width: 20px;
	height: 20px;
	color: #4b5563;
	transform: translateY(-50%);
}
.tbk-code__icon svg { width: 20px; height: 20px; }
.tbk-code__icon svg + svg { display: none; }
.tbk button.tbk-code.is-copied { border-style: solid; border-color: var(--tbk-green); background: var(--tbk-ok-bg); }
.tbk-code.is-copied .tbk-code__label,
.tbk-code.is-copied .tbk-code__icon { color: var(--tbk-ok); }
.tbk-code.is-copied .tbk-code__icon svg { display: none; }
.tbk-code.is-copied .tbk-code__icon svg + svg { display: block; }

.tbk a.tbk-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 14px;
	border: 0;
	border-radius: 8px;
	background: var(--tbk-green);
	box-shadow: 0 2px 0 var(--tbk-green-dark);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	transition: background .15s ease, transform .15s ease;
}
.tbk a.tbk-btn:hover,
.tbk a.tbk-btn:focus-visible { background: var(--tbk-green-dark); color: #fff; text-decoration: none; }
.tbk a.tbk-btn:active { transform: translateY(1px); box-shadow: none; }
.tbk-btn svg { width: 18px; height: 18px; flex: none; transition: transform .15s ease; }
.tbk a.tbk-btn:hover svg { transform: translateX(3px); }

.tbk a.tbk-review {
	align-self: center;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: underline;
	text-decoration-color: #b8bec8;
	text-underline-offset: 3px;
}
.tbk a.tbk-review:hover { color: var(--tbk-strong); text-decoration-color: currentColor; }

.tbk a:focus-visible,
.tbk button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* ---------- Tablet ---------- */
@container tbk (min-width: 600px) {
	.tbk .tbk-list > .tbk-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-areas:
			"brand brand cta   cta"
			"bonus pay   dep   best";
	}
	.tbk-cta { border-top: 0; padding-top: 18px; }
	.tbk-payments,
	.tbk-deposit { border-left: 1px solid var(--tbk-line); }
	/* Payment methods one under another, "+N" to the right of them */
	.tbk .tbk-chips {
		display: grid;
		grid-template-columns: max-content max-content;
		justify-content: start;
		align-items: center;
	}
	.tbk .tbk-chips > .tbk-chip { grid-column: 1; height: 30px; }
	.tbk .tbk-chips > .tbk-chip-more-item { grid-column: 2; align-self: center; }
	.tbk .tbk-chips > .tbk-chip-more-item > .tbk-chip--more { min-width: 0; height: 30px; }
}

/* ---------- Desktop: one row per bookmaker ---------- */
@container tbk (min-width: 900px) {
	.tbk .tbk-list > .tbk-row {
		grid-template-columns:
			minmax(0, 2.75fr)
			minmax(0, 1.3fr)
			minmax(0, 1.2fr)
			minmax(0, 1.1fr)
			minmax(0, 1.22fr)
			minmax(0, 1.6fr);
		grid-template-areas: "brand bonus pay dep best cta";
	}
	.tbk-cell {
		padding: 18px 12px;
		border-top: 0;
		border-left: 1px solid var(--tbk-line);
	}
	.tbk-brand { border-left: 0; padding-left: 16px; gap: 10px; }
	.tbk-cta { padding: 16px 10px; }
	.tbk-name { font-size: 19px; }
	.tbk-logo { width: 92px; min-height: 68px; }
	.tbk-license { font-size: 12.5px; }
	.tbk-license svg { width: 15px; height: 15px; }
	.tbk-label { font-size: 11px; letter-spacing: .03em; }
	.tbk-hl { padding: 8px 10px; }
	.tbk-amount__num { font-size: 22px; }
	.tbk-amount__unit { font-size: 13px; }
	.tbk-bonus__text { font-size: 13.5px; }
	.tbk .tbk-chips { gap: 5px 6px; }
	.tbk .tbk-chip,
	.tbk .tbk-chips > .tbk-chip,
	.tbk .tbk-chips > .tbk-chip-more-item > .tbk-chip--more { height: 28px; padding: 0 7px; font-size: 13px; }
	.tbk .tbk-best-list > li { gap: 5px; font-size: 13.5px; }
	.tbk-best-list svg { width: 14px; height: 14px; }
	.tbk a.tbk-btn { font-size: 15px; }
	.tbk button.tbk-code { padding: 0 30px 0 8px; gap: 4px; }
	.tbk-code__label { font-size: 11px; }
	.tbk-code__value { font-size: 14px; }
	.tbk-code__icon { right: 8px; width: 17px; height: 17px; }
	.tbk-code__icon svg { width: 17px; height: 17px; }
	.tbk a.tbk-btn { padding: 10px; }
}

/* Browsers without container queries keep the phone layout; give wide screens the row layout anyway. */
@supports not (container-type: inline-size) {
	@media (min-width: 1000px) {
		.tbk .tbk-list > .tbk-row {
			grid-template-columns: 2.75fr 1.3fr 1.2fr 1.1fr 1.22fr 1.6fr;
			grid-template-areas: "brand bonus pay dep best cta";
		}
		.tbk-cell { border-top: 0; border-left: 1px solid var(--tbk-line); }
		.tbk-brand { border-left: 0; }
		.tbk .tbk-chips { display: grid; grid-template-columns: max-content max-content; justify-content: start; align-items: center; }
		.tbk .tbk-chips > .tbk-chip { grid-column: 1; }
		.tbk .tbk-chips > .tbk-chip-more-item { grid-column: 2; }
	}
}

/* ---------- Show more / fewer ---------- */
.tbk .tbk-list > .tbk-row.tbk-row--more { display: none; }
.tbk.is-expanded .tbk-list > .tbk-row.tbk-row--more { display: grid; }
.tbk-more { margin-top: 14px; }
.tbk button.tbk-more__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid var(--tbk-line);
	border-radius: var(--tbk-radius);
	background: var(--tbk-card);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	color: var(--tbk-strong);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.tbk button.tbk-more__btn:hover,
.tbk button.tbk-more__btn:focus-visible {
	border-color: #b9c0ca;
	background: #f3f4f6;
	box-shadow: 0 4px 12px -6px rgba(16, 24, 40, .18);
	color: var(--tbk-strong) !important; /* theme forces white text on button:hover */
}
.tbk button.tbk-more__btn:active { background: #eceef1; box-shadow: none; }
.tbk-more__btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.tbk button.tbk-more__btn:hover svg { transform: translateY(2px); }
.tbk.is-expanded .tbk-more__btn svg { transform: rotate(180deg); }
.tbk.is-expanded button.tbk-more__btn:hover svg { transform: rotate(180deg) translateY(2px); }

.tbk-empty { padding: 12px 16px; border: 1px dashed #c4c9d2; border-radius: 8px; color: var(--tbk-muted); }
