/**
 * CTA Button module — layout and module-specific features only.
 * Button styles live in the theme: .site-cta
 */

/* Holder layout */
div.cta-button-holder.no-trans.stack-no {
	display: flex;
	align-items: center;
	align-content: center;
}

div.cta-button-holder.no-trans.stack-no .cta-button-footer {
	margin: 0 0 0 2rem;
}

div.cta-button-holder.no-trans.stack-no
	.cta-button-footer
	img.cta-rating-badge {
	max-width: 6rem;
}

/* Button group alignment */
.cta-button-holder .cta-buttons.align-left {
	display: flex;
	justify-content: flex-start;
}

.cta-button-holder .cta-buttons.align-center {
	display: flex;
	justify-content: center;
}

.cta-button-holder .cta-buttons.align-right {
	display: flex;
	justify-content: flex-end;
}

.cta-button-holder .cta-buttons a + a {
	margin-left: 1rem;
}

/* Holder alignment */
.cta-button-holder.align-left {
	text-align: left;
}

.cta-button-holder.align-center {
	text-align: center;
}

.cta-button-holder.align-right {
	text-align: right;
}

@media screen and (max-width: 768px) {
	.cta-button-holder.align-r-left {
		text-align: left !important;
	}

	.cta-button-holder.align-r-center {
		text-align: center !important;
	}

	.cta-button-holder.align-r-right {
		text-align: right !important;
	}

	.cta-button-holder .cta-buttons {
		flex-wrap: wrap;
	}

	.cta-button-holder .cta-buttons a + a {
		margin-left: 0;
		margin-top: 1.5rem;
	}

	div.cta-button-holder {
		text-align: center;
	}

	div.cta-button-holder.no-trans {
		flex-wrap: wrap;
		justify-content: center;
	}

	div.cta-button-holder.no-trans .cta-button-footer {
		margin: 1rem 0 0 0 !important;
		width: 100%;
		text-align: center;
	}

	div.cta-button-holder.no-trans .cta-button-footer img.cta-rating-badge {
		max-width: 6rem;
		margin: auto;
	}
}

/* Google rating badge */
.cta-button-footer {
	margin-top: 1.5rem;
	display: flex;
	justify-content: flex-start;
}

.align-left .cta-button-footer {
	justify-content: flex-start;
}

.align-center .cta-button-footer {
	justify-content: center;
}

.align-right .cta-button-footer {
	justify-content: flex-end;
}

@media screen and (max-width: 768px) {
	.cta-button-footer,
	.align-left .cta-button-footer,
	.align-center .cta-button-footer,
	.align-right .cta-button-footer {
		justify-content: center;
	}
}

.fl-module img.cta-rating-badge {
	max-width: 7rem;
	position: relative;
	z-index: 1;
}

.cta-rating-badge.position-bottom {
	text-align: center;
	margin-top: -0.1rem;
	display: block;
}

.cta-rating-badge.background-white {
	background-color: #f1f1f1;
	padding: 0.75rem 1.5rem;
	box-sizing: initial;
}

.cta-rating-badge.background-white.position-bottom {
	border-radius: 0 0 0.25rem 0.25rem;
}
