.elook-lang-switcher {
	position: static !important;
	margin-left: auto;
	z-index: 100;
}

.space-header,
.space-header-ins {
	overflow: visible;
}

.space-header-ins.space-wrapper {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	gap: 16px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 0 15px;
	min-height: 80px;
}

.space-header-ins .space-header-logo,
.space-header-ins .space-header-menu,
.space-header-ins .elook-lang-switcher {
	float: none !important;
}

.space-header-ins .space-header-logo {
	width: auto !important;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.space-header-ins .space-header-logo-ins {
	margin: 0 !important;
	display: flex;
	align-items: center;
}

.space-header-ins .space-header-logo-ins:after,
.space-header-height .space-header-logo-ins:after,
.space-header-height.dark .space-header-logo-ins:after {
	display: none !important;
	content: none !important;
}

.space-header-ins .space-header-logo a {
	padding: 0 !important;
	display: flex;
	align-items: center;
	line-height: 0;
}

.space-header-ins .space-header-logo img {
	display: block;
	max-height: 40px;
	width: auto;
	height: auto;
}

.space-header-ins .space-header-menu {
	width: auto !important;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.space-header-ins .space-header-menu ul.main-menu {
	display: flex !important;
	align-items: center;
	flex-wrap: wrap;
	padding-right: 8px !important;
	margin: 0;
	line-height: 1;
	width: 100%;
}

.space-header-ins .space-header-menu ul.main-menu > li {
	float: none !important;
	display: flex;
	align-items: center;
}

.space-header-ins .space-header-menu ul.main-menu > li > a {
	padding: 10px 14px !important;
	display: flex;
	align-items: center;
}

.space-header-ins .space-header-menu ul.main-menu > li.top > a:before,
.space-header-ins .space-header-menu ul.main-menu > li.best > a:before,
.space-header-ins .space-header-menu ul.main-menu > li.new > a:before,
.space-header-ins .space-header-menu ul.main-menu > li.hot > a:before,
.space-header-ins .space-header-menu ul.main-menu > li.fair > a:before {
	top: -4px !important;
}

.space-header-ins .elook-lang-switcher {
	position: static !important;
	top: auto !important;
	right: auto !important;
	transform: none !important;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.elook-lang-switcher {
	--gls-bg-color: #1a2b22;
	--gls-text-color: #ffffff;
	--gls-border-color: rgba(46, 204, 113, 0.35);
	--gls-hover-bg: rgba(46, 204, 113, 0.18);
	--gls-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	--gls-button-bg: #2ecc71;
	--gls-button-hover: #27ae60;
	--gls-button-text: #ffffff;
	--gls-flag-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.elook-lang-switcher .gls-switcher {
	position: relative;
	display: inline-block;
	vertical-align: middle;
}

.elook-lang-switcher .gls-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	border: 0;
	background: var(--gls-button-bg);
	color: var(--gls-button-text);
	padding: 7px 10px;
	border-radius: 4px;
	cursor: pointer;
	white-space: nowrap;
	font: 500 14px/1 Roboto, sans-serif;
	box-sizing: border-box;
	min-height: 0;
	appearance: none;
	-webkit-appearance: none;
}

.elook-lang-switcher .gls-button:hover,
.elook-lang-switcher .gls-button:focus {
	background: var(--gls-button-hover);
	color: var(--gls-button-text);
}

.elook-lang-switcher .gls-button:focus {
	outline: 2px solid var(--gls-border-color);
	outline-offset: 2px;
}

.elook-lang-switcher .gls-chevron {
	flex-shrink: 0;
	display: block;
}

.elook-lang-switcher .gls-menu {
	position: absolute;
	z-index: 1000;
	min-width: 100%;
	width: max-content;
	max-height: 70vh;
	overflow: auto;
	top: calc(100% + 8px);
	right: 0;
	left: auto;
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;
	border: 1px solid var(--gls-border-color);
	background: var(--gls-bg-color);
	color: var(--gls-text-color);
	border-radius: 8px;
	box-shadow: var(--gls-shadow);
}

.elook-lang-switcher .gls-menu[hidden] {
	display: none !important;
}

.elook-lang-switcher .gls-switcher.open .gls-menu {
	display: block;
}

.elook-lang-switcher .gls-menu li {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	position: static !important;
	width: auto !important;
}

.elook-lang-switcher .gls-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.375rem 0.75rem;
	text-decoration: none !important;
	color: inherit !important;
	border: 0 !important;
	font: 500 15px/1 Roboto, sans-serif;
	box-sizing: border-box;
}

.elook-lang-switcher .gls-flag.fi {
	width: 20px !important;
	height: 20px !important;
	min-width: 20px;
	border-radius: 50%;
	box-shadow: var(--gls-flag-shadow);
	background-size: cover !important;
	background-repeat: no-repeat !important;
	line-height: 20px;
	flex-shrink: 0;
}

.elook-lang-switcher .gls-item:hover,
.elook-lang-switcher .gls-item:focus {
	background: var(--gls-hover-bg);
}

.elook-lang-switcher .gls-item--current {
	opacity: 0.85;
	background: #ccc;
}

.elook-lang-switcher .gls-label,
.elook-lang-switcher .gls-text {
	text-transform: uppercase;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

.space-header-search,
.space-header-search-block {
	display: none !important;
}

.space-title-box,
.space-archive-title-box {
	background-color: #121315 !important;
}

.space-title-box-h1 h1,
.space-archive-title-box-h1 h1 {
	color: #ffffff !important;
}

.elook-hero-title {
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	margin: 0;
}

.elook-section-label {
	font-style: italic;
	font-weight: 900;
	text-transform: uppercase;
	text-align: center;
	margin-bottom: 50px;
}

.elook-home-content {
	max-width: 960px;
	margin: 0 auto 60px;
	padding: 0 20px;
}

/* Equal-height casino cards on all pages (home + internal) */
.space-companies-archive-items,
.space-organizations-4-archive-items,
.space-companies-2-archive-items,
.elook-casino-cards-grid__items {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.space-companies-archive-item,
.space-organizations-4-archive-item,
.space-companies-2-archive-item,
.elook-casino-cards-grid__items > .elook-casino-card {
	display: flex;
	float: none !important;
}

/* Stretch via flex, not height:100% — the card's own bottom margin is the row gutter */
.space-companies-archive-item-ins,
.space-organizations-4-archive-item-ins,
.space-companies-2-archive-item-ins,
.elook-casino-card .space-companies-2-archive-item-ins,
.elook-casino-card .space-organizations-4-archive-item-ins {
	flex: 1 1 auto;
	width: 100%;
}

.space-companies-archive-item-ins,
.space-companies-archive-item-wrap,
.elook-casino-card .space-companies-2-archive-item-ins,
.elook-casino-card .space-organizations-4-archive-item-ins,
.space-organizations-4-archive-item-ins {
	display: flex;
	flex-direction: column;
}

.space-companies-archive-item-wrap {
	flex: 1 1 auto;
	height: 100%;
}

.space-companies-archive-item-short-desc,
.elook-casino-card .space-organizations-4-archive-item-desc,
.elook-casino-card .space-companies-2-archive-item-desc,
.space-organizations-4-archive-item-desc,
.space-companies-2-archive-item-desc {
	flex-grow: 1;
}

.space-organizations-4-archive-item-buttons {
	margin-top: auto;
}

/*
 * Keep star-row height even when rating is 0 and aces_star_rating() outputs nothing.
 * Otherwise cards without stars become shorter than neighbours in the same row.
 */
.space-companies-archive-item-rating {
	min-height: 1em; /* stars are font-size: 1em */
}

.space-companies-2-archive-item-rating {
	min-height: 1em;
}

.space-organizations-4-archive-item-title {
	min-height: calc(1.25em + 3px + 0.75em);
}

/* Keep casino title (strong) on its own line in ranking cards */
.space-organizations-3-archive-item-terms-ins > strong:first-child,
.space-organizations-3-archive-item-terms-ins strong:first-child {
	display: block;
	margin: 0 0 8px;
}

/* Top-3 rank badges: gold / silver / bronze (rest stay purple from theme) */
.space-organizations-3-archive-item:nth-child(1) .space-organizations-3-archive-item-count,
.space-organizations-3-archive-item:nth-child(1) .space-organizations-3-archive-item-count-2 {
	background-color: #d4af37;
}

.space-organizations-3-archive-item:nth-child(2) .space-organizations-3-archive-item-count,
.space-organizations-3-archive-item:nth-child(2) .space-organizations-3-archive-item-count-2 {
	background-color: #a8a9ad;
}

.space-organizations-3-archive-item:nth-child(3) .space-organizations-3-archive-item-count,
.space-organizations-3-archive-item:nth-child(3) .space-organizations-3-archive-item-count-2 {
	background-color: #cd7f32;
}

/* Equal-height bonus/offer cards + aligned CTA */
.space-offers-archive-items {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

.space-offers-archive-item {
	display: flex;
	float: none !important;
}

.space-offers-archive-item-ins {
	flex: 1 1 auto;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.space-offers-archive-item-wrap {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

.space-offers-archive-item-title {
	min-height: 2.3em; /* keep 1–2 line titles aligned */
}

.space-offers-archive-item-short-desc {
	flex-grow: 0;
	min-height: 2.9em;
}

/* Same gap between description and button on every card */
.space-offers-archive-item-button {
	margin-top: 30px;
}

/* Reserve T&Cs line when missing so cards stay visually even */
.space-offers-archive-item-wrap:not(:has(.space-organization-header-button-notice)):not(:has(.space-offers-archive-item-button-notice)) .space-offers-archive-item-button {
	margin-bottom: calc(5px + 1.35em);
}

.elook-char-hint {
	font-size: 12px;
	color: #7f8c8d;
	margin: 8px 0 0;
}

.elook-char-hint.is-warning {
	color: #e67e22;
}

.elook-casino-card-editor,
.elook-casino-cards-grid-editor {
	border: 1px dashed #ccc;
	padding: 16px;
	margin: 8px 0;
}

/* ---------- Hero banner ---------- */

.elook-hero {
	position: relative;
	overflow: hidden;
	background: #0f1114;
	border-radius: 12px;
	margin: 0 0 40px;
}

.elook-hero:before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse at 75% 30%, rgba(46, 204, 113, 0.22), transparent 50%),
		radial-gradient(ellipse at 20% 80%, rgba(39, 174, 96, 0.28), transparent 55%);
}

.elook-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 32px;
	min-height: 340px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px;
}

.elook-hero__title,
.space-page-content .elook-hero__title,
.space-page-content h1.elook-hero__title,
.space-page-content h2.elook-hero__title,
.space-page-content p.elook-hero__title {
	margin: 0 0 14px;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-size: clamp(1.75rem, 4.5vw, 3rem);
	font-weight: 900;
	font-style: italic;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.elook-hero__subtitle,
.space-page-content .elook-hero__subtitle,
.space-page-content p.elook-hero__subtitle {
	margin: 0 0 24px;
	padding: 0;
	max-width: 46ch;
	color: #b9c2c9;
	font-size: clamp(15px, 2vw, 18px);
	font-weight: 400;
	font-style: normal;
	line-height: 1.45;
	text-transform: none;
	letter-spacing: normal;
}

.elook-hero__cta {
	display: inline-block;
	align-self: flex-start;
	padding: 14px 32px;
	border-radius: 100px;
	background: #2ecc71;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background 0.25s ease-in-out;
}

.elook-hero__cta:hover {
	background: #27ae60;
}

.elook-hero__media {
	line-height: 0;
	text-align: center;
}

.elook-hero__media img {
	max-height: 320px;
	width: auto;
	max-width: 100%;
	border-radius: 8px;
}

.elook-hero--full .elook-hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	line-height: 0;
}

.elook-hero--full .elook-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
	opacity: 0.55;
}

.elook-hero--full .elook-hero__inner {
	grid-template-columns: 1fr;
}

.elook-hero--full .elook-hero__content {
	max-width: 640px;
}

/* editor preview */
.elook-hero-editor {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 24px;
	padding: 32px 24px;
	border-radius: 12px;
	background: #0f1114;
}

.elook-hero-editor--full {
	grid-template-columns: 1fr;
}

.elook-hero-editor__title {
	margin: 0 0 10px;
	color: #fff;
	font-size: 32px;
	font-weight: 900;
	font-style: italic;
	line-height: 1.1;
	text-transform: uppercase;
}

.elook-hero-editor__subtitle {
	margin: 0 0 18px;
	color: #b9c2c9;
	font-size: 16px;
	line-height: 1.45;
}

.elook-hero-editor__cta {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 100px;
	background: #2ecc71;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

.elook-hero-editor__media img {
	max-height: 220px;
	width: auto;
	max-width: 100%;
	border-radius: 8px;
}

.elook-hero-editor__media.is-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 140px;
	border: 1px dashed #4a5158;
	border-radius: 8px;
	color: #8a949c;
	font-size: 13px;
}

@media screen and (max-width: 991px) {
	.space-header-ins .elook-lang-switcher {
		margin-left: auto;
		margin-right: 40px;
	}

	.space-header-ins .space-header-menu ul.main-menu {
		display: none !important;
	}
}

@media screen and (max-width: 767px) {
	.elook-hero__inner,
	.elook-hero-editor {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 36px 20px;
		min-height: 0;
	}

	.elook-hero__subtitle {
		margin-left: auto;
		margin-right: auto;
	}

	.elook-hero__media {
		order: -1;
	}

	.elook-hero__media img {
		max-height: 200px;
	}
}

@media screen and (max-width: 479px) {
	.space-header-ins.space-wrapper {
		padding: 0 12px;
		gap: 10px;
	}

	.space-header-ins .elook-lang-switcher {
		margin-right: 36px;
	}

	.elook-lang-switcher .gls-button {
		padding: 6px 8px;
		font-size: 12px;
	}

	.elook-lang-switcher .gls-label,
	.elook-lang-switcher .gls-text {
		font-size: 13px;
	}
}
