/* [top_bonuses] / [bbc_top_bonuses] shortcode. */
.mgb-top-bonuses {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1120px;
	width: 100%;
}

.mgb-top-bonus {
	background: #fffefa;
	border: 1px solid rgba(26, 28, 37, 0.07);
	border-radius: 12px;
	box-shadow: 0 10px 24px rgba(26, 28, 37, 0.08);
	box-sizing: border-box;
	color: #1a1c25;
	overflow: hidden;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mgb-top-bonus,
.mgb-top-bonus * {
	box-sizing: border-box;
}

.mgb-top-bonus:hover {
	border-color: rgba(53, 212, 127, 0.7);
	box-shadow: 0 16px 34px rgba(26, 28, 37, 0.12);
	transform: translateY(-3px);
}

.mgb-top-bonus__head {
	align-items: center;
	display: grid;
	gap: 12px;
	grid-template-columns: 46px minmax(0, 1fr);
	min-height: 82px;
	padding: 16px 18px 14px;
}

.mgb-top-bonus__logo {
	align-items: center;
	background: #2fc777;
	border-radius: 9px;
	color: #fff;
	display: inline-flex;
	font-size: 14px;
	font-weight: 950;
	height: 44px;
	justify-content: center;
	line-height: 1;
	overflow: hidden;
	width: 44px;
}

.mgb-top-bonus__logo img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.mgb-top-bonus:nth-child(2) .mgb-top-bonus__logo {
	background: #249e94;
}

.mgb-top-bonus:nth-child(3) .mgb-top-bonus__logo {
	background: #9d53cf;
}

.mgb-top-bonus__head h3 {
	color: #1d2029;
	font-size: 18px;
	font-weight: 950;
	line-height: 1.1;
	margin: 0 0 8px;
}

.mgb-top-bonus__badge {
	align-items: center;
	background: #e8f7ed;
	border-radius: 5px;
	color: #16824a;
	display: inline-flex;
	font-size: 9px;
	font-weight: 950;
	letter-spacing: 1px;
	line-height: 1;
	padding: 7px 10px;
	text-transform: uppercase;
}

.mgb-top-bonus__badge::before {
	background: #21b969;
	border-radius: 999px;
	content: "";
	height: 5px;
	margin-right: 6px;
	width: 5px;
}

.mgb-top-bonus__offer {
	background: linear-gradient(180deg, #f4f7ee 0%, #eef3e7 100%);
	border-top: 1px solid #e1e8dd;
	display: grid;
	justify-items: center;
	min-height: 88px;
	padding: 16px 18px;
	text-align: center;
}

.mgb-top-bonus__offer strong {
	color: #14171f;
	font-size: 26px;
	font-weight: 950;
	line-height: 1.05;
}

.mgb-top-bonus__offer span {
	color: #0f9f58;
	font-size: 9px;
	font-weight: 950;
	letter-spacing: 1.8px;
	line-height: 1.2;
	margin-top: 10px;
	text-transform: uppercase;
}

.mgb-top-bonus__terms {
	display: grid;
	padding: 8px 18px;
}

.mgb-top-bonus__term {
	align-items: center;
	border-bottom: 1px solid #e4eadf;
	display: flex;
	justify-content: space-between;
	min-height: 34px;
}

.mgb-top-bonus__term span {
	color: #a2a5ac;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.4px;
}

.mgb-top-bonus__term strong {
	color: #20232b;
	font-size: 14px;
	font-weight: 950;
}

.mgb-top-bonus__code {
	align-items: center;
	border: 1px dashed #35d47f;
	border-radius: 7px;
	display: flex;
	justify-content: space-between;
	margin: 9px 18px 0;
	min-height: 37px;
	padding: 0 12px;
}

.mgb-top-bonus__code strong {
	color: #333743;
	font-size: 12px;
	font-weight: 950;
	letter-spacing: 1px;
}

.mgb-top-bonus__code button {
	appearance: none;
	background: transparent;
	border: 0;
	color: #0f9f58;
	cursor: pointer;
	font-size: 11px;
	font-weight: 950;
	letter-spacing: 1px;
	padding: 0;
	text-transform: uppercase;
	transition: color 160ms ease, transform 160ms ease;
}

.mgb-top-bonus__code button:hover,
.mgb-top-bonus__code button:focus-visible {
	color: #0b7b43;
	transform: translateY(-1px);
}

.mgb-top-bonus__cta {
	align-items: center;
	background: linear-gradient(180deg, #50e692 0%, #35d47f 100%);
	border-radius: 999px;
	box-shadow: 0 10px 18px rgba(33, 185, 105, 0.24);
	color: #0b1215 !important;
	display: flex;
	font-size: 15px;
	font-weight: 950;
	justify-content: center;
	margin: 11px 18px 17px;
	min-height: 47px;
	text-decoration: none;
	transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.mgb-top-bonus__cta:hover,
.mgb-top-bonus__cta:focus-visible {
	box-shadow: 0 14px 26px rgba(33, 185, 105, 0.34);
	filter: saturate(1.08);
	transform: translateY(-2px);
}

@media screen and (max-width: 1023px) {
	.mgb-top-bonuses {
		grid-template-columns: 1fr;
		max-width: 520px;
	}
}
