.rsmspark-footer {
	background: var(--rf-bg, #0b1220);
	box-sizing: border-box;
	color: var(--rf-text, #94a3b8);
	font-size: var(--rf-body-font-size, 0.75rem);
	line-height: 1.6;
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	padding: var(--rf-pad-y, 48px) 0;
	width: 100vw;
}

.rsmspark-footer__inner {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: var(--rf-content-width, 90%);
	padding-inline: 0;
	width: var(--rf-content-width, 90%);
}

.rsmspark-footer__grid {
	display: grid;
	gap: var(--rf-column-gap, 32px);
	grid-template-columns: repeat(var(--rf-footer-columns, 4), minmax(0, 1fr));
}

@media (max-width: 960px) {
	.rsmspark-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.rsmspark-footer {
		margin-inline: calc(50% - 50vw);
		width: 100vw;
	}

	.rsmspark-footer__inner {
		max-width: min(var(--rf-content-width, 90%), calc(100% - 32px));
		width: min(var(--rf-content-width, 90%), calc(100% - 32px));
	}

	.rsmspark-footer__grid {
		grid-template-columns: 1fr;
	}
}

.rsmspark-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.rsmspark-footer__brand-head {
	align-items: center;
	display: flex;
	gap: 0.65rem;
}

.rsmspark-footer__brand-logo {
	display: block;
	flex-shrink: 0;
	height: 28px;
	object-fit: contain;
	width: 28px;
}

.rsmspark-footer__brand-name {
	color: var(--rf-heading, #fff);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.rsmspark-footer .rsmspark-footer__brand-text {
	font-size: var(--rf-body-font-size, 0.75rem);
	margin: 0;
	max-width: 28rem;
}

.rsmspark-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
}

.rsmspark-footer .rsmspark-footer__social-link {
	align-items: center;
	color: var(--rf-link, #cbd5e1);
	display: inline-flex;
	font-size: var(--rf-social-font-size, 1.125rem);
	height: 2rem;
	justify-content: center;
	text-decoration: none;
	transition: color 0.2s ease;
	width: 2rem;
}

.rsmspark-footer__social-link:hover,
.rsmspark-footer__social-link:focus {
	color: var(--rf-link-hover, #fff);
}

.rsmspark-footer__column {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

.rsmspark-footer .rsmspark-footer__column-title {
	color: var(--rf-heading, #fff);
	font-size: var(--rf-heading-font-size, 0.8125rem);
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	margin: 0;
	text-transform: uppercase;
}

.rsmspark-footer .rsmspark-footer__column-text,
.rsmspark-footer .rsmspark-footer__copyright {
	font-size: var(--rf-body-font-size, 0.75rem);
	margin: 0;
	white-space: pre-line;
}

.rsmspark-footer__copyright {
	margin-top: auto;
	padding-top: 0.5rem;
}

.rsmspark-footer__links {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rsmspark-footer .rsmspark-footer__link {
	color: var(--rf-link, #cbd5e1);
	font-size: var(--rf-body-font-size, 0.75rem);
	text-decoration: none;
	transition: color 0.2s ease;
}

.rsmspark-footer__link:hover,
.rsmspark-footer__link:focus {
	color: var(--rf-link-hover, #fff);
}

.widget_rsm_footer,
.rsmspark-footer-widget-wrap {
	margin: 0;
	max-width: none;
	padding: 0;
	width: 100%;
}

.widget_rsm_footer .widget-title,
.widget_rsm_footer > .widget-title {
	display: none;
}

.rsmspark-footer-widget-wrap > .widget {
	margin-bottom: 0;
}

.rsmspark-footer--sticky-bar {
	bottom: 0;
	box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.18);
	left: 0;
	margin-inline: 0;
	position: fixed;
	right: 0;
	transform: translateY(0);
	transition: transform 0.25s ease, opacity 0.25s ease;
	width: 100%;
	z-index: 100;
}

.rsmspark-footer--sticky-bar.rsmspark-footer--is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(100%);
}

.rsmspark-footer--sticky-compact {
	padding-block: 12px;
}

.rsmspark-footer--sticky-compact .rsmspark-footer__brand-text,
.rsmspark-footer--sticky-compact .rsmspark-footer__column-text {
	display: none;
}

.rsmspark-footer--sticky-compact .rsmspark-footer__grid {
	gap: 16px;
}

.rsmspark-footer__back-to-top {
	align-items: center;
	background: var(--rf-heading, #fff);
	border: 0;
	border-radius: 999px;
	bottom: calc(100% + 12px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
	color: var(--rf-bg, #0b1220);
	cursor: pointer;
	display: inline-flex;
	height: 2.5rem;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	width: 2.5rem;
}

.rsmspark-footer--has-back-to-top .rsmspark-footer__inner {
	position: relative;
}

.rsmspark-footer__back-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.rsmspark-footer__back-to-top:hover,
.rsmspark-footer__back-to-top:focus {
	transform: translateY(-2px);
}

.rsmspark-footer__back-to-top .dashicons {
	font-size: 1.25rem;
	height: 1.25rem;
	width: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
	.rsmspark-footer--sticky-bar,
	.rsmspark-footer__back-to-top {
		transition: none;
	}
}

body.rsmspark-footer-has-sticky-bar {
	padding-bottom: var(--rsmspark-footer-sticky-offset, 0px);
}
