/**
 * Section Collapse — arrow button inside Elementor title bars (the green boxes).
 *
 * Only additive: the bar keeps its own Elementor background, typography and spacing.
 * The button is absolutely positioned, so the centred title never shifts; symmetric
 * padding keeps long titles from running under the arrow.
 */

/* ------------------------------------------------------------------ the bar */

.wbtm-sc-bar {
	position: relative;
	cursor: pointer;
}

.wbtm-sc-bar > .elementor-widget-container {
	position: relative;
}

.wbtm-sc-title {
	padding-right: 2.75rem;
	padding-left: 2.75rem;
}

/* --------------------------------------------------------------- the button */

/* Reset defensively: themes style every <button> on the site. */
.wbtm-sc-bar > .wbtm-sc-toggle {
	position: absolute;
	top: 50%;
	right: 0.75rem;
	transform: translateY(-50%);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	width: 2.25rem !important;
	height: 2.25rem !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 3px !important;
	background: transparent none !important;
	box-shadow: none !important;
	text-shadow: none;
	line-height: 0 !important;
	letter-spacing: normal;
	cursor: pointer;
	opacity: 0.92;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	-webkit-transition: background-color 0.2s ease, opacity 0.2s ease;
	transition: background-color 0.2s ease, opacity 0.2s ease;
	z-index: 2;
}

.wbtm-sc-bar > .wbtm-sc-toggle:hover,
.wbtm-sc-bar > .wbtm-sc-toggle:focus {
	background: rgba(255, 255, 255, 0.18) !important;
	opacity: 1;
}

.wbtm-sc-bar > .wbtm-sc-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Arrow: points down when the section is closed, up when it is open. */
.wbtm-sc-bar > .wbtm-sc-toggle .wbtm-sc-arrow {
	display: block;
	width: 20px;
	height: 20px;
	-webkit-transform: rotate(180deg);
	transform: rotate(180deg);
	-webkit-transition: -webkit-transform 0.25s ease;
	transition: transform 0.25s ease;
}

.wbtm-sc-bar.wbtm-sc-closed > .wbtm-sc-toggle .wbtm-sc-arrow {
	-webkit-transform: rotate(0deg);
	transform: rotate(0deg);
}

@media (max-width: 767px) {
	.wbtm-sc-title {
		padding-right: 2.25rem;
		padding-left: 2.25rem;
	}

	.wbtm-sc-bar > .wbtm-sc-toggle {
		right: 0.35rem;
		width: 2rem !important;
		height: 2rem !important;
	}
}

/* ------------------------------------------------------- collapsed content */

.wbtm-sc-hidden {
	display: none !important;
}

@-webkit-keyframes wbtm-sc-in {
	from { opacity: 0; -webkit-transform: translateY(-8px); }
	to   { opacity: 1; -webkit-transform: none; }
}

@keyframes wbtm-sc-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: none; }
}

.wbtm-sc-in {
	-webkit-animation: wbtm-sc-in 0.28s ease both;
	animation: wbtm-sc-in 0.28s ease both;
}

@media (prefers-reduced-motion: reduce) {
	.wbtm-sc-bar > .wbtm-sc-toggle,
	.wbtm-sc-bar > .wbtm-sc-toggle .wbtm-sc-arrow {
		-webkit-transition: none;
		transition: none;
	}

	.wbtm-sc-in {
		-webkit-animation: none;
		animation: none;
	}
}

/* Printing must never lose content the visitor happened to have closed. */
@media print {
	.wbtm-sc-hidden {
		display: revert !important;
	}

	.wbtm-sc-bar > .wbtm-sc-toggle {
		display: none !important;
	}
}
