.fixed-cta-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
	font-size: var(--fixed-cta-font-size, 16px);
	line-height: 1.5;
	box-sizing: border-box;
}

.fixed-cta-bar *,
.fixed-cta-bar *::before,
.fixed-cta-bar *::after {
	box-sizing: border-box;
}

.fixed-cta-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
}

.fixed-cta-inner--width-full {
	max-width: none;
	width: 100%;
}

.fixed-cta-text {
	flex: 1 1 auto;
	min-width: 0;
}

.fixed-cta-text :where(p, div, span) {
	font-size: inherit;
}

.fixed-cta-text p {
	margin: 0 0 0.35em;
}

.fixed-cta-text p:last-child {
	margin-bottom: 0;
}

.fixed-cta-text a {
	color: inherit;
	text-decoration: underline;
}

.fixed-cta-button {
	display: inline-block;
	flex: 0 0 auto;
	padding: 10px 22px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.2;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
	white-space: nowrap;
}

.fixed-cta-button-group {
	display: contents;
}

.fixed-cta-button:not(.fixed-cta-button--hover-bg):not(.fixed-cta-button--hover-color):hover,
.fixed-cta-button:not(.fixed-cta-button--hover-bg):not(.fixed-cta-button--hover-color):focus {
	opacity: 0.9;
	transform: translateY(-1px);
	text-decoration: none;
}

.fixed-cta-button--hover-bg:hover,
.fixed-cta-button--hover-bg:focus {
	opacity: 1;
	transform: translateY(-1px);
	text-decoration: none;
	background-color: var(--fixed-cta-btn-hover-bg) !important;
}

.fixed-cta-button--hover-color:hover,
.fixed-cta-button--hover-color:focus {
	opacity: 1;
	transform: translateY(-1px);
	text-decoration: none;
	color: var(--fixed-cta-btn-hover-color) !important;
}

/* Body spacing so the bar never covers content. The inline custom property
   is set by cta-bar.js based on the visible bar's measured height. */
body.fixed-cta-has-bar {
	padding-bottom: var(--fixed-cta-height, 0px);
}

/* Device-targeted bars (separate mobile bar mode) and per-element hiding.
   The 782px breakpoint matches WordPress' own mobile boundary. */
@media (min-width: 783px) {
	.fixed-cta-bar--mobile {
		display: none !important;
	}

	.fixed-cta-hide-desktop {
		display: none !important;
	}

	.fixed-cta-inner--align-left {
		justify-content: flex-start;
	}

	.fixed-cta-inner--align-left .fixed-cta-text {
		flex: 0 1 auto;
		text-align: left;
	}

	.fixed-cta-inner--align-left .fixed-cta-text :where(p, div, span) {
		text-align: left !important;
	}

	.fixed-cta-inner--align-center {
		justify-content: center;
	}

	.fixed-cta-inner--align-center .fixed-cta-text {
		flex: 0 1 auto;
		text-align: center;
	}

	.fixed-cta-inner--align-center .fixed-cta-text :where(p, div, span) {
		text-align: center !important;
	}

	.fixed-cta-inner--align-right {
		justify-content: flex-end;
	}

	.fixed-cta-inner--align-right .fixed-cta-text {
		flex: 0 1 auto;
		text-align: right;
	}

	.fixed-cta-inner--align-right .fixed-cta-text :where(p, div, span) {
		text-align: right !important;
	}

	.fixed-cta-inner--align-justify {
		justify-content: flex-start;
	}

	.fixed-cta-inner--align-justify .fixed-cta-text {
		flex: 1 1 auto;
		text-align: justify;
		text-align-last: left;
	}

	.fixed-cta-inner--align-justify .fixed-cta-text :where(p, div) {
		text-align: justify !important;
		text-align-last: left !important;
	}
}

@media (max-width: 782px) {
	.fixed-cta-bar--desktop {
		display: none !important;
	}

	.fixed-cta-hide-mobile {
		display: none !important;
	}

	.fixed-cta-bar {
		font-size: var(--fixed-cta-mobile-font-size, var(--fixed-cta-font-size, 16px));
	}

	.fixed-cta-inner {
		padding: 12px 16px;
		flex-direction: column;
	}

	.fixed-cta-inner .fixed-cta-text {
		align-self: stretch;
		width: 100%;
	}

	.fixed-cta-inner--mobile-align-left {
		align-items: flex-start;
	}

	.fixed-cta-inner--mobile-align-left .fixed-cta-text,
	.fixed-cta-inner--mobile-align-left .fixed-cta-button {
		text-align: left;
		text-align-last: left;
	}

	.fixed-cta-inner--mobile-align-left .fixed-cta-text :where(p, div, span) {
		text-align: left !important;
		text-align-last: left !important;
	}

	.fixed-cta-inner--mobile-align-center {
		align-items: center;
	}

	.fixed-cta-inner--mobile-align-center .fixed-cta-text,
	.fixed-cta-inner--mobile-align-center .fixed-cta-button {
		text-align: center;
		text-align-last: center;
	}

	.fixed-cta-inner--mobile-align-center .fixed-cta-text :where(p, div, span) {
		text-align: center !important;
		text-align-last: center !important;
	}

	.fixed-cta-inner--mobile-align-right {
		align-items: flex-end;
	}

	.fixed-cta-inner--mobile-align-right .fixed-cta-text,
	.fixed-cta-inner--mobile-align-right .fixed-cta-button {
		text-align: right;
		text-align-last: right;
	}

	.fixed-cta-inner--mobile-align-right .fixed-cta-text :where(p, div, span) {
		text-align: right !important;
		text-align-last: right !important;
	}

	.fixed-cta-inner--mobile-align-justify {
		align-items: stretch;
	}

	.fixed-cta-inner--mobile-align-justify .fixed-cta-text {
		width: 100%;
		text-align: justify;
		text-align-last: left;
	}

	.fixed-cta-inner--mobile-align-justify .fixed-cta-text :where(p, div) {
		text-align: justify !important;
		text-align-last: left !important;
	}

	.fixed-cta-inner--mobile-align-justify .fixed-cta-button-group--inline {
		width: 100%;
	}

	.fixed-cta-inner--mobile-align-justify .fixed-cta-button-group--inline .fixed-cta-button {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
		text-align: center;
	}

	.fixed-cta-button-group {
		display: flex;
		gap: 12px;
		width: 100%;
	}

	.fixed-cta-button-group--stack {
		flex-direction: column;
	}

	.fixed-cta-button-group--stack .fixed-cta-button {
		flex: 1 1 auto;
		width: 100%;
		text-align: center;
	}

	.fixed-cta-button-group--inline {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.fixed-cta-inner--mobile-align-left .fixed-cta-button-group--inline {
		justify-content: flex-start;
	}

	.fixed-cta-inner--mobile-align-center .fixed-cta-button-group--inline {
		justify-content: center;
	}

	.fixed-cta-inner--mobile-align-right .fixed-cta-button-group--inline {
		justify-content: flex-end;
	}

	.fixed-cta-button-group--inline .fixed-cta-button {
		flex: 0 1 auto;
		width: auto;
	}
}
