/**
 * Sitewide PAYG promo bar — sits above Divi’s fixed header rows.
 */

:root {
	--unimax-promo-h: 0px;
}

html:not(.unimax-promo-dismissed) body.unimax-has-promo {
	--unimax-promo-h: 2.5rem;
}

.unimax-payg-promo {
	background: #0a4f6e;
	box-sizing: border-box;
	color: #fff;
	font-family: Poppins, "Open Sans", sans-serif;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	width: 100%;
	z-index: 100000;
}

body.unimax-promo-dismissed .unimax-payg-promo,
html.unimax-promo-dismissed .unimax-payg-promo {
	display: none !important;
}

.unimax-payg-promo__inner {
	align-items: center;
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: center;
	margin: 0 auto;
	max-width: 1200px;
	min-height: 2.5rem;
	padding: 0.4rem 2.5rem 0.4rem 1rem;
	position: relative;
	text-align: center;
}

.unimax-payg-promo__text {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.35;
	margin: 0;
}

.unimax-payg-promo__cta {
	background: #ed1c24;
	border-radius: 2px;
	color: #fff !important;
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 0.45rem 0.85rem;
	text-decoration: none !important;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.unimax-payg-promo__cta:hover,
.unimax-payg-promo__cta:focus {
	background: #c4161d;
	color: #fff !important;
}

.unimax-payg-promo__dismiss {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	font-size: 1.35rem;
	line-height: 1;
	padding: 0.25rem 0.4rem;
	position: absolute;
	right: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
}

.unimax-payg-promo__dismiss:hover,
.unimax-payg-promo__dismiss:focus {
	color: #fff;
}

/* Push Divi Theme Builder fixed header rows down while promo is visible. */
html:not(.unimax-promo-dismissed) body.unimax-has-promo .et_pb_row_0_tb_header {
	top: var(--unimax-promo-h) !important;
}

html:not(.unimax-promo-dismissed) body.unimax-has-promo .et_pb_row_1_tb_header {
	top: calc(23px + var(--unimax-promo-h)) !important;
}

/* Admin bar stacking. */
html:not(.unimax-promo-dismissed) body.admin-bar.unimax-has-promo .unimax-payg-promo {
	top: 32px;
}

@media screen and (max-width: 782px) {
	html:not(.unimax-promo-dismissed) body.admin-bar.unimax-has-promo .unimax-payg-promo {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.unimax-payg-promo__inner {
		padding-right: 2.25rem;
	}

	.unimax-payg-promo__text {
		font-size: 0.8125rem;
	}
}
