/* Homepage Popup Banner - front end */

.hpb-modal {
	--hpb-max-width: 600px;
	--hpb-btn-bg: #d81f26;
	--hpb-btn-color: #ffffff;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	overflow-y: auto;
}

.hpb-modal[hidden] {
	display: none;
}

.hpb-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.hpb-modal__dialog {
	position: relative;
	width: 100%;
	max-width: var(--hpb-max-width);
	margin: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transform: translateY(20px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.hpb-modal.is-visible .hpb-modal__overlay {
	opacity: 1;
}

.hpb-modal.is-visible .hpb-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.hpb-modal__close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: #222;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.hpb-modal__close:hover,
.hpb-modal__close:focus-visible {
	background: #222;
	color: #fff;
	outline: none;
}

.hpb-modal__body {
	overflow: hidden;
	border-radius: 10px;
}

.hpb-modal__image-link {
	display: block;
	line-height: 0;
}

.hpb-modal__image {
	display: block;
	width: 100%;
	height: auto;
}

.hpb-modal__footer {
	padding: 18px 20px 22px;
	text-align: center;
	background: #fff;
}

.hpb-modal__button {
	display: inline-block;
	min-width: 200px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	letter-spacing: 0.02em;
	color: var(--hpb-btn-color);
	background: var(--hpb-btn-bg);
	border-radius: 6px;
	transition: filter 0.2s ease, transform 0.2s ease;
}

.hpb-modal__button:hover,
.hpb-modal__button:focus-visible {
	color: var(--hpb-btn-color);
	filter: brightness(0.9);
	transform: translateY(-1px);
	text-decoration: none;
}

body.hpb-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.hpb-modal {
		padding: 40px 14px 24px;
	}

	.hpb-modal__close {
		top: -34px;
		right: 0;
		background: #fff;
	}

	.hpb-modal__button {
		width: 100%;
		min-width: 0;
		padding: 13px 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hpb-modal__overlay,
	.hpb-modal__dialog,
	.hpb-modal__button {
		transition: none;
	}
}
