/* YMCA location page alerts — matches CHILD WATCH editorial carousel band */
.ymca-alert-container {
	width: 100%;
	max-width: none;
	margin: 0;
	background: #f2fbfe;
	box-sizing: border-box;
}

.elementor .e-con-inner > .ymca-alert-container,
.elementor.elementor-8106 > .ymca-alert-container {
	margin-top: 0;
	margin-bottom: 0;
}

.ymca-alert-container-wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 35px 15px 12px;
	box-sizing: border-box;
}

.ymca-alert-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

.ymca-alert-container--carousel .ymca-alert-container-wrap {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.ymca-alert-container--carousel .ymca-alert-controls {
	margin-bottom: 10px;
}

.ymca-alert-container--single .ymca-alert-container-wrap {
	padding-bottom: 35px;
}

.ymca-alert-container--single .ymca-alert {
	align-items: center;
}

.ymca-alert-track {
	display: flex;
	align-items: stretch;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.ymca-alert {
	min-width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 50px;
	box-sizing: border-box;
}

.ymca-alert-col-left {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0;
	flex: 0 0 40%;
	max-width: 40%;
	box-sizing: border-box;
}

.ymca-alert-icon {
	flex-shrink: 0;
	display: block;
	line-height: 0;
	text-align: start;
}

.ymca-alert-icon img {
	width: 60px;
	height: auto;
	max-width: 60px;
	display: block;
}

.ymca-alert-label-wrap {
	padding: 10px 0 0 15px;
	box-sizing: border-box;
}

.ymca-alert-container p.ymca-alert-label.elementor-heading-title {
	font-family: "Verdana", Verdana, sans-serif;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 20px;
	color: #3273c2;
	margin: 0;
	padding: 0;
}

.ymca-alert-col-right {
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
}

.ymca-alert-container .ymca-alert-body-copy,
.ymca-alert-container .ymca-alert-body-copy p {
	font-family: "Cachet Pro", Verdana, sans-serif;
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 25px;
	color: var(--e-global-color-text, #666666);
	margin: 0;
	padding: 0;
}

.ymca-alert-container .ymca-alert-body-copy p:last-child {
	margin-bottom: 0;
}

.ymca-alert-container .ymca-alert-body-copy a,
.ymca-alert-container .ymca-alert-body-copy a:hover {
	color: inherit;
	text-decoration: underline;
}

/* Nav sits on its own row below slides, flush right (CHILD WATCH 532cc3e). */
.ymca-alert-controls {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	align-self: flex-end;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	margin: 14px 0 0;
	padding: 0;
	box-sizing: border-box;
	pointer-events: none;
}

.ymca-alert-controls > * {
	position: static;
	flex-shrink: 0;
	pointer-events: auto;
}

.ymca-alert-container :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 10px;
	border: 1px solid #0060af;
	border-radius: 100px;
	background: transparent;
	color: #0a0a0a;
	cursor: pointer;
	box-sizing: border-box;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
}

.ymca-alert-container :is(.elementor-swiper-button-prev, .elementor-swiper-button-next):disabled {
	opacity: 0.7;
	cursor: default;
}

.ymca-alert-container :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) i {
	display: block;
	font-size: 22px;
	line-height: 1;
}

.ymca-alert-container .ymca-alert-controls .swiper-pagination-fraction {
	position: static;
	inset: auto;
	transform: none;
	width: auto;
}

.ymca-alert-container .ymca-alert-counter.swiper-pagination-fraction {
	margin: 0;
	padding: 0;
	font-family: "Cachet Pro", Verdana, sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ymca-alert-container :is(.elementor-swiper-button-prev.is-disabled, .elementor-swiper-button-next.is-disabled) {
	opacity: 0.7;
	cursor: default;
}

/*
 * Branch alert band: Elementor nested carousel (carousel-alert-slider) can render locked
 * div-based swiper arrows beside Alert Centre controls. Alerts use button.ymca-alert-controls;
 * hide only those redundant locked Elementor arrows when the alert carousel is on the page.
 */
body:has(.ymca-alert-container--carousel) .elementor-element.carousel-alert-slider div.elementor-swiper-button.swiper-button-lock {
	display: none !important;
	pointer-events: none;
}

@media (max-width: 767px) {
	.ymca-alert-container-wrap {
		padding: 35px 15px 12px;
	}

	.ymca-alert {
		flex-direction: column;
		gap: 16px;
	}

	.ymca-alert-col-left {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.ymca-alert-container p.ymca-alert-label.elementor-heading-title {
		font-size: 14px;
		line-height: 20px;
	}

	.ymca-alert-label-wrap {
		padding: 8px 0 0 10px;
	}

	.ymca-alert-icon img {
		width: 45px;
		max-width: 45px;
	}

	.ymca-alert-col-right {
		flex: 1 1 100%;
	}

	.ymca-alert-container .ymca-alert-body-copy,
	.ymca-alert-container .ymca-alert-body-copy p {
		font-size: 14px;
		line-height: 20px;
	}

	.ymca-alert-container :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) {
		width: 38px;
		height: 38px;
	}

	.ymca-alert-container :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) i {
		font-size: 20px;
	}

	.ymca-alert-container .ymca-alert-counter.swiper-pagination-fraction {
		font-size: 15px;
	}
}
