/* Smart Event Banner
---------------------------------------- */
.smart-event-container {
	display: flex;
	justify-content: center;
	column-gap: 12px;
	row-gap: 4px;
	margin: 6px 0 8px 0;
	flex-wrap: wrap;
	width: 100%;
}

.smart-event-banner {
	box-sizing: border-box;
	width: var(--smart-event-grid-width, 46%);
	min-width: var(--smart-event-min-width, 300px);
	max-width: var(--smart-event-max-width, 700px);
	margin: 0;
	padding: 8px 12px;
	background: #dfdfdf;
	background-image: none;
	border: 2px solid #505050;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,.35);
	line-height: 1.25;
	text-align: center;
	position: relative;
	z-index: 0;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: normal;
}


.smart-event-banner.smart-event-has-gradient {
	background-image: var(--smart-event-gradient);
}

.smart-event-banner.smart-event-has-hover {
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.smart-event-banner.smart-event-has-hover:hover {
	background-color: var(--smart-event-bg-hover);
	border-color: var(--smart-event-border-hover);
	box-shadow: 0 4px 12px rgba(0,0,0,.45);
}

.smart-event-banner.smart-event-has-hover:hover,
.smart-event-banner.smart-event-has-hover:hover a,
.smart-event-banner.smart-event-has-hover:hover a:visited {
	color: var(--smart-event-text-hover) !important;
}

.smart-event-banner a,
.smart-event-banner a:visited {
	text-decoration: none;
	display: block;
}

.smart-event-banner a:hover {
	color: #000 !important;
	text-decoration: none;
}

.smart-event-banner-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--smart-event-image-gap, 8px);
	max-width: 100%;
}

.smart-event-banner-text {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.smart-event-banner-main {
	display: inline-block;
	max-width: 100%;
}

.smart-event-countdown {
	display: block;
	font-size: 60%;
	line-height: 1.15;
	margin-top: 2px;
	opacity: 0.9;
}

.smart-event-banner-img {
	display: inline-block;
	width: auto;
	height: 1.6em;
	max-height: var(--smart-event-img-max-size, 64px);
	flex: 0 0 auto;
	object-fit: contain;
}

.smart-event-img-right .smart-event-banner-inner {
	flex-direction: row-reverse;
}

.smart-event-img-top .smart-event-banner-inner {
	flex-direction: column;
	gap: 4px;
}

.smart-event-img-top .smart-event-banner-img {
	width: auto;
	height: 2.2em;
	max-height: var(--smart-event-img-max-size, 64px);
}

.smart-event-width-auto .smart-event-banner {
	width: fit-content;
	width: -moz-fit-content;
	min-width: var(--smart-event-min-width, 300px);
	max-width: min(var(--smart-event-max-width, 700px), 95%);
}

.smart-event-slider {
	position: relative;
	width: 100%;
	margin: 6px 0 8px 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.smart-event-slider-track {
	width: var(--smart-event-slider-width, 46%);
	min-width: var(--smart-event-min-width, 300px);
	max-width: var(--smart-event-max-width, 700px);
	position: relative;
}

.smart-event-width-auto .smart-event-slider-track {
	width: fit-content;
	width: -moz-fit-content;
	min-width: var(--smart-event-min-width, 300px);
	max-width: min(var(--smart-event-max-width, 700px), 95%);
}

.smart-event-slider .smart-event-banner {
	display: none;
	width: 100%;
	min-width: 0;
	max-width: none;
}

.smart-event-slider .smart-event-banner.is-active {
	display: block;
}

.smart-event-slider-prev,
.smart-event-slider-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #505050;
	background: #dfdfdf;
	color: #c00;
	font-size: 22px;
	font-weight: bold;
	line-height: 22px;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

.smart-event-slider-prev {
	left: calc(-1 * var(--smart-event-arrow-offset, 5px));
	transform: translate(-100%, -50%);
}

.smart-event-slider-next {
	right: calc(-1 * var(--smart-event-arrow-offset, 5px));
	transform: translate(100%, -50%);
}

.smart-event-slider-prev:hover,
.smart-event-slider-next:hover {
	color: #000;
	box-shadow: 0 2px 8px rgba(0,0,0,.45);
}

@media only screen and (max-width: 700px) {
	.smart-event-banner {
		width: 90%;
		min-width: 0;
		max-width: none;
		font-size: 13px;
		padding: 8px 10px;
	}

	.smart-event-slider-track {
		width: 90%;
		min-width: 0;
		max-width: none;
	}

	.smart-event-slider-prev {
		left: 2px;
		transform: translate(0, -50%);
	}

	.smart-event-slider-next {
		right: 2px;
		transform: translate(0, -50%);
	}
}
