/* Offers FAB + modal */

.eqc-offers-btn {
	--eqc-offers-red: #e53935;
	position: fixed;
	right: 70px;
	bottom: 20px;
	z-index: 10001;
	width: 88px;
	height: 88px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
	-webkit-tap-highlight-color: transparent;
}

.eqc-offers-btn__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
	filter: drop-shadow(0 4px 10px rgba(26, 31, 60, 0.28));
	transition: transform 0.2s ease;
}

.eqc-offers-btn:hover .eqc-offers-btn__img,
.eqc-offers-btn:focus-visible .eqc-offers-btn__img {
	transform: scale(1.06);
}

.eqc-offers-btn:focus-visible {
	outline: 2px solid #3fa9f5;
	outline-offset: 4px;
	border-radius: 50%;
}

/* Keep WhatsApp clear of Offers on small screens */
@media (max-width: 1024px) {
	body:has(.eqc-offers-btn) .whatsapp-cta {
		bottom: 110px;
	}
}

body.eqc-offers-modal-open {
	overflow: hidden;
}

body.eqc-offers-modal-open .eqc-offers-btn {
	visibility: hidden;
	pointer-events: none;
}

body.eqc-offers-modal-open .mkdf-page-header,
body.eqc-offers-modal-open .mkdf-sticky-header,
body.eqc-offers-modal-open .mkdf-mobile-header {
	z-index: 1;
}

.eqc-offers-modal {
	--eqc-navy: #1a1f3c;
	--eqc-blue: #3fa9f5;
	--eqc-red: #e53935;
	--eqc-font-hand: "Caveat", "Segoe Print", cursive;
	--eqc-font-body: "Muli", "Nunito Sans", sans-serif;
	position: fixed;
	inset: 0;
	z-index: 1000100;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.eqc-offers-modal.is-open,
.eqc-offers-modal:not([hidden]) {
	display: flex;
}

.eqc-offers-modal[hidden] {
	display: none !important;
}

.eqc-offers-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(26, 31, 60, 0.55);
}

.eqc-offers-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: min(92vh, 760px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 48px rgba(26, 31, 60, 0.28);
	overflow: hidden;
}

.eqc-offers-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--eqc-navy);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.eqc-offers-modal__close:hover {
	opacity: 0.7;
}

.eqc-offers-modal__torn {
	flex: 0 0 auto;
	height: 22px;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	pointer-events: none;
}

.eqc-offers-modal__torn--top {
	background-image: url("../img/homepage-v2/torn-top.svg");
}

.eqc-offers-modal__torn--bottom {
	background-image: url("../img/homepage-v2/torn-bottom.svg");
}

.eqc-offers-modal__inner {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 4px 28px 20px;
	box-sizing: border-box;
}

.eqc-offers-modal__title {
	margin: 4px 0 14px;
	padding-right: 36px;
	font-family: var(--eqc-font-hand);
	font-weight: 700;
	font-size: clamp(2.6rem, 6vw, 3.4rem);
	line-height: 0.95;
	color: #2f6fad;
	text-align: center;
}

.eqc-offers-modal__banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 10px;
	min-height: 2.6em;
	max-width: 100%;
}

.eqc-offers-modal__banner--blue {
	width: min(100%, 380px);
}

.eqc-offers-modal__banner--red {
	width: min(92%, 300px);
	margin-bottom: 22px;
}

.eqc-offers-modal__brush {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 112%;
	max-width: none;
	height: auto;
	pointer-events: none;
	z-index: 0;
	user-select: none;
}

.eqc-offers-modal__banner--red .eqc-offers-modal__brush {
	width: 118%;
}

.eqc-offers-modal__banner-text {
	position: relative;
	z-index: 1;
	padding: 0.45em 1.1em 0.4em;
	color: #fff;
	font-family: var(--eqc-font-body);
	font-size: clamp(0.95rem, 2.4vw, 1.1rem);
	font-weight: 700;
	font-style: italic;
	line-height: 1.25;
	text-align: center;
	white-space: nowrap;
}

.eqc-offers-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.eqc-offers-list__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(26, 31, 60, 0.1);
}

.eqc-offers-list__icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.eqc-offers-list__text {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-family: var(--eqc-font-body);
	color: var(--eqc-navy);
}

.eqc-offers-list__title {
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.25;
}

.eqc-offers-list__desc {
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.35;
}

.eqc-offers-list__title em,
.eqc-offers-list__desc em {
	font-style: normal;
	font-weight: 700;
	color: var(--eqc-red);
}

@media (max-width: 520px) {
	.eqc-offers-btn {
		width: 76px;
		height: 76px;
		right: 64px;
		bottom: 14px;
	}

	.eqc-offers-modal {
		padding: 10px;
		align-items: stretch;
	}

	.eqc-offers-modal__dialog {
		max-height: 100%;
		border-radius: 14px;
	}

	.eqc-offers-modal__inner {
		padding: 2px 16px 16px;
	}

	.eqc-offers-modal__banner-text {
		white-space: normal;
		font-size: 0.92rem;
	}

	.eqc-offers-list__icon {
		width: 48px;
		height: 48px;
	}

	.eqc-offers-list__item {
		gap: 10px;
		padding: 10px 12px;
	}
}
