/******************************************************************************\
*** "Math Gave Me..." response wall  [math_gave_me]
*** Bar styling mirrors the homepage "Latest News" PowerPack content ticker.
\******************************************************************************/

.mgm__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------------------------------------- */
/* Bar (pp-content-ticker-container)        */
/* ---------------------------------------- */
.mgm-bar {
	display: flex;
	overflow: hidden;
	background-color: #eef9fd;
	border-radius: 10px;
}

.mgm-bar + .mgm-bar {
	margin-top: 20px;
}

.mgm-bar__heading {
	display: flex;
	flex-direction: row;
	flex-shrink: 0;
	align-items: center;
	justify-content: flex-start;
	padding: 10px 15px;
	background-color: #00a2e0;
	color: #ffffff;
	font-size: 18px;
	position: relative;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
}

.mgm-bar__heading:after {
	content: '';
	position: absolute;
	right: -20px;
	border: 10px solid transparent;
	border-left-color: #00a2e0;
	top: 50%;
	transform: translateY(-50%);
}

.mgm-bar__wrap {
	display: flex;
	align-items: center;
	overflow: hidden;
	padding: 10px 15px;
	width: 100%;
	min-width: 0;
}

/* ---------------------------------------- */
/* Ticker                                   */
/* ---------------------------------------- */
.mgm-ticker {
	overflow: hidden;
	width: 100%;
	margin: 0;
}

.mgm-ticker .swiper-wrapper {
	align-items: center;
}

.mgm-ticker__item {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 10px;
	box-sizing: border-box;
	background-color: #eef9fd;
}

/* Without Swiper (or with one response) just show the first */
.mgm-ticker:not(.swiper-initialized):not(.mgm-ticker--measuring) .mgm-ticker__item:not(:first-child) {
	display: none;
}

.mgm-ticker__title {
	font-family: "Bree Serif", serif;
	font-size: 20px;
	line-height: 1.4;
	color: #111111;
	margin: 0;
	overflow-wrap: anywhere;
}

.mgm-bar__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
}

.mgm .mgm-bar__arrow,
.mgm .mgm-bar__arrow:hover,
.mgm .mgm-bar__arrow:focus {
	display: inline-flex;
	align-items: center;
	margin: auto 10px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: #00a2e0;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: 0.3s;
}

.mgm .mgm-bar__arrow svg {
	display: block;
	width: 18px;
	height: 18px;
}

.mgm .mgm-bar__arrow:focus-visible {
	outline: 2px solid #00a2e0;
	outline-offset: 2px;
	border-radius: 50%;
}

.mgm .mgm-bar__arrow.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

/* ---------------------------------------- */
/* Form (Gravity Forms, gravity-theme)      */
/* ---------------------------------------- */
.mgm-bar--form .mgm-bar__wrap {
	padding-left: 25px;
}

.mgm .mgm-bar .gform_wrapper.gravity-theme,
.mgm .mgm-bar .gform_wrapper {
	width: 100%;
	margin: 0;
	padding: 0;
}

.mgm .mgm-bar .gform_wrapper .gform_heading,
.mgm .mgm-bar .gform_wrapper .gform_required_legend,
.mgm .mgm-bar .gform_wrapper .gform_validation_errors,
.mgm .mgm-bar .gform_wrapper .gform_validation_container {
	display: none !important;
}

.mgm .mgm-bar .gform_wrapper form {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	width: 100%;
}

.mgm .mgm-bar .gform_wrapper .gform_body {
	flex: 1 1 auto;
	min-width: 0;
}

.mgm .mgm-bar .gform_wrapper .gform_fields {
	display: block !important;
}

.mgm .mgm-bar .gform_wrapper .gfield {
	margin: 0;
	padding: 0;
}

.mgm .mgm-bar .gform_wrapper .gfield_label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.mgm .mgm-bar .gform_wrapper input[type="text"] {
	width: 100%;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid #b9e6f7;
	border-radius: 6px;
	background: #ffffff;
	font-family: "Bree Serif", serif;
	font-size: 20px;
	line-height: 1.4;
	color: #111111;
	box-shadow: none;
}

.mgm .mgm-bar .gform_wrapper input[type="text"]:focus {
	border-color: #00a2e0;
	outline: 2px solid rgba(0, 162, 224, 0.35);
	outline-offset: 0;
}

.mgm .mgm-bar .gform_wrapper .ginput_counter,
.mgm .mgm-bar .gform_wrapper .gfield_description,
.mgm .mgm-bar .gform_wrapper .validation_message {
	margin: 4px 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	line-height: 1.3;
}

.mgm .mgm-bar .gform_wrapper .validation_message {
	color: #c02b0a;
}

.mgm .mgm-bar .gform_wrapper .gform_footer {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.mgm .mgm-bar .gform_wrapper .gform_footer input[type="submit"] {
	margin: 0;
	padding: 10px 22px;
	border: 0;
	border-radius: 6px;
	background: #00a2e0;
	color: #ffffff;
	font-family: "Lato", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.3s;
}

.mgm .mgm-bar .gform_wrapper .gform_footer input[type="submit"]:hover,
.mgm .mgm-bar .gform_wrapper .gform_footer input[type="submit"]:focus {
	background: #0b87bd;
}

.mgm .gform_confirmation_message {
	font-family: "Bree Serif", serif;
	font-size: 20px;
	color: #111111;
	padding: 6px 0;
}

/* ---------------------------------------- */
/* Mobile (BB responsive breakpoint)        */
/* ---------------------------------------- */
@media (max-width: 768px) {
	.mgm-bar {
		flex-direction: column;
	}

	.mgm-bar__heading {
		width: 100%;
		box-sizing: border-box;
		border-radius: 10px 10px 0 0;
	}

	.mgm-bar__heading:after {
		right: auto;
		left: 50%;
		top: 100%;
		margin-left: -10px;
		transform: none;
		border-left-color: transparent;
		border-top-color: #00a2e0;
	}

	.mgm-bar__wrap,
	.mgm-bar--form .mgm-bar__wrap {
		padding: 20px 15px 10px;
	}

	.mgm-ticker__item {
		padding-left: 0;
	}

	.mgm-bar__nav {
		padding: 0 10px 10px;
	}

	.mgm .mgm-bar .gform_wrapper form {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.mgm .mgm-bar .gform_wrapper .gform_footer input[type="submit"] {
		width: 100%;
	}
}
