/* ==========================================================================
   Top 3 Brokers Selling Points Component (.ctam-top3)
   ========================================================================== */

/* Wrapper - handles outer spacing so autop-wrapped <p> margins don't stack */
.ctam-top3-wrapper {
	margin: 1.25em 0 !important;
}

.ctam-top3-wrapper > .ctam-top3 {
	margin: 0 !important;
	padding: 0 !important;
}

.ctam-top3-wrapper .ctam-top3__list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

/* Theme injects .entry-content ol li{margin-bottom:30px} which stacks on top of
   the flex gap. Zero it out for every card in the list, not just the last. */
.ctam-top3-wrapper .ctam-top3__list .ctam-top3__item,
.entry-content .ctam-top3-wrapper ol.ctam-top3__list li.ctam-top3__item {
	margin: 0 !important;
}

/* Intro sentence - inherits theme paragraph size */
.ctam-top3-wrapper > p.ctam-top3__intro {
	margin: 0 0 0.75em !important;
	padding: 0 !important;
	color: #212529;
}

.ctam-top3__intro a {
	color: #109bf8;
	text-decoration: none;
}

.ctam-top3__intro a:hover {
	text-decoration: underline;
}

.ctam-top3 {
	margin: 0;
}

.ctam-top3__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ctam-top3__item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px;
}

/* Logo */
.ctam-top3__logo-wrap {
	flex-shrink: 0;
	display: block;
}

.ctam-top3__logo {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: contain;
	border: 1px solid #f0f0f0;
	background: #fff;
	display: block;
}

/* Body */
.ctam-top3__body {
	flex: 1;
	min-width: 0;
}

.ctam-top3__header {
	margin-bottom: 4px;
}

.ctam-top3__name {
	font-weight: 700;
	font-size: 1rem;
	color: #212529;
	text-decoration: none;
}

.ctam-top3__name:hover {
	color: #109bf8;
	text-decoration: underline;
}

.ctam-top3__blurb {
	font-size: 0.875rem;
	color: #495057;
	margin: 0 0 10px;
	line-height: 1.45;
}

/* Actions column - right side, stacked vertically */
.ctam-top3__actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	margin-left: auto;
	padding-left: 12px;
}

/* Visit Broker CTA - overrides .button base styles */
.ctam-top3__cta.button {
	background-color: #cd4a3b;
	color: #fff !important;
	border-radius: 24px;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.2625rem;
	padding: 8px 16px;
	white-space: nowrap;
	display: inline-block;
	text-decoration: none;
	min-width: 130px;
	text-align: center;
}

.ctam-top3__cta.button:hover,
.ctam-top3__cta.button:focus {
	background-color: #a83428;
	color: #fff !important;
	text-decoration: none;
}

/* Read review link - centered under the button */
.ctam-top3__review-link {
	font-size: 0.8125rem;
	color: #109bf8;
	text-decoration: none;
	white-space: nowrap;
	text-align: center;
	display: block;
}

.ctam-top3__review-link:hover {
	text-decoration: underline;
	color: #0b72b7;
}

/* Footer link - "Compare all regulated brokers in {country}" */
.ctam-top3-wrapper > p.ctam-top3__footer,
.ctam-top3-wrapper .ctam-top3__footer {
	font-size: 0.875rem;
	margin: 0 !important;
	padding: 0.5em 0 0 !important;
	color: #495057;
	line-height: 1.4 !important;
}

.ctam-top3__footer a {
	color: #109bf8;
	text-decoration: none;
}

.ctam-top3__footer a:hover {
	text-decoration: underline;
}

/* Mobile - stack vertically, hide logo, full-width button */
@media (max-width: 480px) {
	.ctam-top3__item {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px;
	}

	.ctam-top3__logo-wrap {
		display: none;
	}

	.ctam-top3__body {
		flex: 1 1 100%;
	}

	.ctam-top3__actions {
		flex: 1 1 100%;
		align-items: stretch;
		margin-left: 0;
		padding-left: 0;
	}

	.ctam-top3__cta.button {
		width: 100%;
		text-align: center;
		min-width: 0;
	}

	.ctam-top3__review-link {
		text-align: center;
	}
}
