/**
 * HappyJokersEspana — .main-content (from Customizer / Figma)
 */

.main-content {
	--main-content-bg: #050e2c;
	--main-content-text: #ffffff;
	--main-content-border: rgba(255, 255, 255, 0.4);
	--main-content-font: var(--site-font, "Inter", "Open Sans", sans-serif);
	--main-content-text-beside-img: 698px;
	--main-content-text-max: 934px;

	background: var(--main-content-bg);
	box-sizing: border-box;
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	line-height: 1;
	padding: 45px 85px;
}

.main-content > .container {
	max-width: 1300px;
	padding-left: 0;
	padding-right: 0;
}

.main-content > .container::after {
	clear: both;
	content: "";
	display: table;
}

.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
	margin: 0 0 20px;
	max-width: var(--main-content-text-max);
}

.main-content h1 {
	font-size: 46px;
}

.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6 {
	font-size: 40px;
	font-weight: 700;
	line-height: 40px;
}

.main-content p {
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 30px;
	margin: 0 0 28px;
	max-width: var(--main-content-text-max);
}

.main-content p.full-width {
	max-width: 100%;
}

/* Text beside floated content images (desktop only — see ≤768 reset).
   max(…%) keeps max-width from collapsing to 0 when 100% < 602px. */
.main-content__img.alignright + p,
.main-content__img.alignright + p + p,
.main-content__img.alignright + p.full-width,
.main-content__img.alignright + p.full-width + p,
.main-content__img.alignright + h2,
.main-content__img.alignright + h2 + p,
.main-content h2 + .main-content__img.alignright + p,
.main-content h2 + .main-content__img.alignright + p + p,
.main-content__img--2.alignright + p,
.main-content__img--2.alignright + p + p,
.main-content img.main-content__img--2.alignright + p,
.main-content img.main-content__img--2.alignright + p + p,
.main-content__img--country-2.alignright + p,
.main-content__img--country-2.alignright + p + p,
.main-content img.main-content__img--country-2.alignright + p,
.main-content img.main-content__img--country-2.alignright + p + p,
.main-content__img.alignright + .content-list,
.main-content__img.alignright + p + .content-list,
.main-content__img--2.alignright + .content-list,
.main-content__img--2.alignright + p + .content-list,
.main-content img.main-content__img--2.alignright + p + .content-list {
	clear: none;
	max-width: min(var(--main-content-text-beside-img), max(50%, calc(100% - 602px)));
}

.main-content__img--2.main-content__img--app-2.alignright + p,
.main-content img.main-content__img--2.main-content__img--app-2.alignright + p {
	clear: none;
	max-width: 100%;
	width: 100%;
}

.main-content p:last-of-type {
	margin-bottom: 0;
}

.main-content a:not(.main-content__btn):not(.filter__item):not(.slots__item) {
	color: #faff03;
	text-decoration: underline;
}

.main-content .filter a,
.main-content .slots a.slots__item {
	color: inherit;
	text-decoration: none;
}

.main-content ul:not(.content-list),
.main-content ol {
	color: var(--main-content-text);
	font-family: var(--main-content-font);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	margin: 0 0 28px;
	max-width: var(--main-content-text-max);
	padding-left: 22px;
}

.main-content li:not(.content-list__item) {
	font-family: var(--main-content-font);
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 20px;
	margin-bottom: 8px;
}

.main-content__img,
.main-content img.alignright,
.main-content .alignright {
	border-radius: 8px;
	display: block;
	float: right;
	height: 300px;
	margin: 0 0 24px 62px;
	max-width: calc(100% - 62px);
	object-fit: contain;
	width: 540px;
}

/* Do not clear content-list under floated phone/images — that leaves a huge
   gap when the paragraph above the list is short. Tables still clear. */
.main-content .content-list + p {
	clear: both;
}

/* Content image 2 — phone mock 181×352 (+20% from 151×293); stays right (index / country). */
.main-content__img--2,
.main-content img.main-content__img--2.alignright {
	border-radius: 8px;
	height: 352px;
	object-fit: contain;
	width: 181px;
}

/* Country_2 — same float wrap as main content image (540×300). */
.main-content__img--country-2,
.main-content img.main-content__img--country-2.alignright {
	float: right;
	height: 300px;
	margin: 0 0 24px 62px;
	max-width: calc(100% - 62px);
	object-fit: contain;
	width: 540px;
}

/* App page only — image left, text wraps. */
.main-content__img--app-2,
.main-content img.main-content__img--app-2.alignright {
	float: left;
	margin-left: 0;
	margin-right: 62px;
}

.main-content__table {
	clear: both;
	margin: 62px auto 20px;
	max-width: 1300px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}

.main-content table {
	border: 1px solid var(--table-border, rgba(255, 255, 255, 0.4));
	border-collapse: collapse;
	box-sizing: border-box;
	display: table;
	width: 100%;
}

.main-content th,
.main-content td {
	border: 1px solid var(--table-border, rgba(255, 255, 255, 0.4));
	box-sizing: border-box;
	color: var(--table-text, #ffffff);
	font-family: var(--main-content-font);
	letter-spacing: 0;
	line-height: 1;
	padding: 14px 16px;
	text-align: left;
	vertical-align: middle;
}

.main-content th {
	font-size: 16px;
	font-weight: 700;
}

.main-content td {
	font-size: 14px;
	font-weight: 600;
}

/* Variant 1 — solid: #006AC7 head / #30416B body, centered */
.main-content__table--table-1 table,
body.table-skin-table-1 .main-content__table table {
	background: var(--table-body-bg, #30416b);
	border: 1px solid var(--table-border, #ffffff);
	border-collapse: separate;
	border-radius: 8px;
	border-spacing: 0;
	overflow: hidden;
}

.main-content__table--table-1 th,
.main-content__table--table-1 td,
body.table-skin-table-1 .main-content__table th,
body.table-skin-table-1 .main-content__table td {
	border-bottom: 1px solid var(--table-border, #ffffff);
	border-left: 0;
	border-right: 1px solid var(--table-border, #ffffff);
	border-top: 0;
	padding: 0 8px;
	text-align: center;
}

.main-content__table--table-1 th:last-child,
.main-content__table--table-1 td:last-child,
body.table-skin-table-1 .main-content__table th:last-child,
body.table-skin-table-1 .main-content__table td:last-child {
	border-right: 0;
}

.main-content__table--table-1 tbody tr:last-child td,
body.table-skin-table-1 .main-content__table tbody tr:last-child td {
	border-bottom: 0;
}

.main-content__table--table-1 th,
body.table-skin-table-1 .main-content__table th {
	background: var(--table-header-bg, #006ac7);
	font-size: 16px;
	font-weight: 700;
	height: 49px;
	line-height: 16px;
	text-transform: capitalize;
}

.main-content__table--table-1 thead th:first-child,
body.table-skin-table-1 .main-content__table thead th:first-child {
	border-top-left-radius: 11px;
}

.main-content__table--table-1 thead th:last-child,
body.table-skin-table-1 .main-content__table thead th:last-child {
	border-top-right-radius: 11px;
}

.main-content__table--table-1 tbody tr:last-child td:first-child,
body.table-skin-table-1 .main-content__table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 8px;
}

.main-content__table--table-1 tbody tr:last-child td:last-child,
body.table-skin-table-1 .main-content__table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 8px;
}

.main-content__table--table-1 td,
body.table-skin-table-1 .main-content__table td {
	background: var(--table-body-bg, #30416b);
	font-size: 14px;
	font-weight: 600;
	height: 42px;
	line-height: 13px;
}

/* Variant 2 — outline: transparent fill, left-aligned */
.main-content__table--table-2 table,
body.table-skin-table-2 .main-content__table table {
	background: transparent;
	border: 1px solid var(--table-border, #ffffff);
	border-collapse: separate;
	border-radius: 8px;
	border-spacing: 0;
	overflow: hidden;
}

.main-content__table--table-2 th,
.main-content__table--table-2 td,
body.table-skin-table-2 .main-content__table th,
body.table-skin-table-2 .main-content__table td {
	background: transparent;
	border-bottom: 1px solid var(--table-border, #ffffff);
	border-left: 0;
	border-right: 1px solid var(--table-border, #ffffff);
	border-top: 0;
	padding: 14px 16px;
	text-align: left;
}

.main-content__table--table-2 th:last-child,
.main-content__table--table-2 td:last-child,
body.table-skin-table-2 .main-content__table th:last-child,
body.table-skin-table-2 .main-content__table td:last-child {
	border-right: 0;
}

.main-content__table--table-2 tbody tr:last-child td,
body.table-skin-table-2 .main-content__table tbody tr:last-child td {
	border-bottom: 0;
}

.main-content__table--table-2 thead th:first-child,
body.table-skin-table-2 .main-content__table thead th:first-child {
	border-top-left-radius: 8px;
}

.main-content__table--table-2 thead th:last-child,
body.table-skin-table-2 .main-content__table thead th:last-child {
	border-top-right-radius: 8px;
}

.main-content__table--table-2 tbody tr:last-child td:first-child,
body.table-skin-table-2 .main-content__table tbody tr:last-child td:first-child {
	border-bottom-left-radius: 8px;
}

.main-content__table--table-2 tbody tr:last-child td:last-child,
body.table-skin-table-2 .main-content__table tbody tr:last-child td:last-child {
	border-bottom-right-radius: 8px;
}

.main-content__table--table-2 th,
body.table-skin-table-2 .main-content__table th {
	font-size: 16px;
	font-weight: 700;
}

.main-content__table--table-2 td,
body.table-skin-table-2 .main-content__table td {
	font-size: 14px;
	font-weight: 600;
}

@media (max-width: 1200px) {
	.main-content {
		padding: 40px 24px;
	}

	.main-content__img,
	.main-content img.alignright,
	.main-content .alignright {
		height: auto;
		max-width: 42%;
		width: 420px;
	}

	.main-content__img--2,
	.main-content img.main-content__img--2.alignright {
		height: auto;
		max-width: 181px;
		width: 181px;
	}
}

@media (max-width: 768px) {
	.main-content > .container {
		max-width: none;
	}

	.main-content {
		--main-content-text-max: 100%;
		padding: 24px 16px 10px;
	}

	.main-content ~ .main-content {
		padding-bottom: 30px;
	}

	.main-content h1 {
		font-size: 30px;
	}

	.main-content h2,
	.main-content h3,
	.main-content h4,
	.main-content h5,
	.main-content h6 {
		font-size: 25px;
		line-height: 100%;
		margin-bottom: 16px;
	}

	.main-content p {
		font-size: 14px;
		font-weight: 400;
		line-height: 15px;
		margin-bottom: 15px;
	}

	.main-content li {
		font-size: 12px;
		font-weight: 400;
		line-height: 15px;
		margin-bottom: 15px;
	}

	.main-content__img,
	.main-content img.alignright,
	.main-content .alignright {
		display: block;
		float: none;
		height: auto;
		margin: 0 auto 15px;
		max-width: 100%;
		width: 100%;
	}

	.main-content__img--2,
	.main-content img.main-content__img--2.alignright {
		display: block;
		float: none;
		height: auto;
		margin: 15px auto 12px;
		max-width: 181px;
		width: 181px;
	}

	.main-content__img--country-2,
	.main-content img.main-content__img--country-2.alignright {
		display: block;
		float: none;
		height: auto;
		margin: 0 auto 15px;
		max-width: 100%;
		width: 100%;
	}

	.main-content__img--app-2,
	.main-content img.main-content__img--app-2.alignright {
		display: block;
		float: none;
		margin: 15px auto 12px;
	}

	/* Float off on mobile — do not keep desktop beside-img max-width (was 0px). */
	.main-content__img.alignright + p,
	.main-content__img.alignright + p + p,
	.main-content__img.alignright + p.full-width,
	.main-content__img.alignright + p.full-width + p,
	.main-content__img.alignright + h2,
	.main-content__img.alignright + h2 + p,
	.main-content h2 + .main-content__img.alignright + p,
	.main-content h2 + .main-content__img.alignright + p + p,
	.main-content__img--2.alignright + p,
	.main-content__img--2.alignright + p + p,
	.main-content img.main-content__img--2.alignright + p,
	.main-content img.main-content__img--2.alignright + p + p,
	.main-content__img--country-2.alignright + p,
	.main-content__img--country-2.alignright + p + p,
	.main-content img.main-content__img--country-2.alignright + p,
	.main-content img.main-content__img--country-2.alignright + p + p,
	.main-content__img--2.main-content__img--app-2.alignright + p,
	.main-content img.main-content__img--2.main-content__img--app-2.alignright + p,
	.main-content__img.alignright + .content-list,
	.main-content__img.alignright + p + .content-list,
	.main-content__img--2.alignright + .content-list,
	.main-content__img--2.alignright + p + .content-list,
	.main-content img.main-content__img--2.alignright + p + .content-list {
		clear: none;
		max-width: 100%;
		width: auto;
	}

	.main-content__table {
		margin-bottom: 20px;
		margin-top: 24px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.main-content table {
		min-width: 600px;
		width: 100%;
	}
}
