/* Shared call-to-action button. A section tunes its size through the
   --sl-btn-* properties instead of restyling the button itself. */
.sl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-width: var(--sl-btn-min-width, 0);
	padding: var(--sl-btn-pad-y, 1rem) var(--sl-btn-pad-x, 1.5rem);
	border: none;
	border-radius: var(--sl-radius-md);
	font-family: var(--theme-font);
	font-size: var(--sl-btn-font-size, 1rem);
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s;
}

.sl-btn--primary {
	background: var(--sl-black);
	color: var(--sl-white);
}

.sl-btn--primary:hover,
.sl-btn--primary:focus-visible {
	background: var(--theme-reverse);
	color: var(--sl-white);
}

.sl-btn--secondary {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--sl-black);
	color: var(--sl-black);
}

.sl-btn--secondary:hover,
.sl-btn--secondary:focus-visible {
	background: var(--sl-black);
	color: var(--sl-white);
}

/* Pause / resume for the sliders that move on their own (inc/theme.js: themeSliderPause). */
.sl-pause {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: var(--sl-radius-pill);
	background: transparent;
	color: var(--sl-grey-900);
	cursor: pointer;
}

.sl-pause:hover {
	color: var(--sl-grey-600);
}

.sl-pause:focus-visible {
	outline: 2px solid var(--sl-grey-900);
	outline-offset: 2px;
}

.sl-pause-icon {
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url("../template-img/icon_pause.svg") no-repeat center / contain;
	mask: url("../template-img/icon_pause.svg") no-repeat center / contain;
}

.sl-pause.is-paused .sl-pause-icon {
	-webkit-mask-image: url("../template-img/icon_play.svg");
	mask-image: url("../template-img/icon_play.svg");
}
