.gcp-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.gcp-popup[hidden] {
	display: none;
}

.gcp-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.62);
}

.gcp-popup__dialog {
	position: relative;
	width: min(100%, 560px);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 32px;
	border-radius: 16px;
	background: #ffffff;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
	box-sizing: border-box;
}

.gcp-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #1f2937;
}

.gcp-popup__coupon {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 16px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #041e42;
	color: #ffffff;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 12px;
}

.gcp-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gcp-popup__title {
	margin: 0 0 16px;
	font-size: 30px;
	line-height: 1.1;
	color: #111827;
}

.gcp-popup__content {
	color: #374151;
	font-size: 16px;
	line-height: 1.6;
}

.gcp-popup__content p:first-child {
	margin-top: 0;
}

.gcp-popup__content p:last-child {
	margin-bottom: 0;
}

.gcp-popup__actions {
	margin: 24px 0 0;
}

.gcp-popup__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border-radius: 999px;
	background: #b71c1c;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
}

body.gcp-popup-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.gcp-popup {
		padding: 16px;
	}

	.gcp-popup__dialog {
		padding: 24px;
	}

	.gcp-popup__title {
		font-size: 24px;
	}
}

/* ── Image Hero layout ─────────────────────────────────── */

.gcp-popup--image-hero .gcp-popup__dialog {
	padding: 0;
	overflow: hidden;
}

.gcp-popup__hero {
	width: 100%;
	max-height: 260px;
	overflow: hidden;
	line-height: 0;
}

.gcp-popup__hero-img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.gcp-popup--image-hero .gcp-popup__body {
	padding: 28px 32px 32px;
}

.gcp-popup--image-hero .gcp-popup__close,
.gcp-popup--split .gcp-popup__close {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
	text-shadow: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.gcp-popup--image-hero .gcp-popup__close:hover,
.gcp-popup--image-hero .gcp-popup__close:focus,
.gcp-popup--split .gcp-popup__close:hover,
.gcp-popup--split .gcp-popup__close:focus {
	background: rgba(17, 24, 39, 0.96);
	outline: none;
}

.gcp-popup--image-hero .gcp-popup__close:focus,
.gcp-popup--split .gcp-popup__close:focus {
	border: 2px solid red;
}

@media (max-width: 640px) {
	.gcp-popup__hero,
	.gcp-popup__hero-img {
		max-height: 180px;
		height: 180px;
	}

	.gcp-popup--image-hero .gcp-popup__body {
		padding: 20px 20px 24px;
	}
}

/* ── Split layout ──────────────────────────────────────── */

.gcp-popup--split .gcp-popup__dialog {
	padding: 0;
	overflow: hidden;
	width: min(100%, 760px);
}

.gcp-popup__dialog--split {
	display: flex;
	flex-direction: row;
}

.gcp-popup__split-image {
	flex: 0 0 42%;
	min-height: 100%;
	overflow: hidden;
	line-height: 0;
}

.gcp-popup__split-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gcp-popup--split .gcp-popup__body {
	flex: 1 1 0;
	padding: 40px 32px;
	overflow: auto;
	max-height: calc(100vh - 48px);
	box-sizing: border-box;
}

@media (max-width: 640px) {
	.gcp-popup__dialog--split {
		flex-direction: column;
	}

	.gcp-popup__split-image {
		flex: 0 0 auto;
		height: 160px;
	}

	.gcp-popup--split .gcp-popup__body {
		padding: 20px 20px 24px;
	}
}
