.copthill-popup .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.copthill-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

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

.copthill-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(8, 22, 38, 0.65);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.copthill-popup__dialog {
	position: relative;
	display: flex;
	width: min(920px, 100%);
	max-height: calc(100vh - 48px);
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	animation: copthill-popup-in 0.35s ease both;
}

.copthill-popup__media {
	flex: 0 0 30%;
	max-width: 280px;
}

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

.copthill-popup__content {
	flex: 1 1 auto;
	min-width: 0;
	padding: clamp(24px, 4vw, 56px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow-y: auto;
}

.copthill-popup__title {
	margin: 0 0 0.6em;
	color: #1c3b5a;
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	font-weight: 700;
	line-height: 1.15;
}

.copthill-popup__body {
	margin: 0 0 1.8em;
	color: #1c3b5a;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.6;
}

.copthill-popup__body p {
	margin: 0 0 1em;
}

.copthill-popup__body p:last-child {
	margin-bottom: 0;
}

.copthill-popup__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.copthill-popup__btn {
	display: inline-block;
	padding: 0.85em 1.6em;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.copthill-popup__btn:focus-visible {
	outline: 3px solid #1c3b5a;
	outline-offset: 2px;
}

.copthill-popup__btn--primary {
	background: #b9bd5b;
	color: #1c3b5a;
}

.copthill-popup__btn--primary:hover,
.copthill-popup__btn--primary:focus {
	background: #a8ac49;
	color: #1c3b5a;
}

.copthill-popup__btn--secondary {
	background: #ececec;
	color: #1c3b5a;
}

.copthill-popup__btn--secondary:hover,
.copthill-popup__btn--secondary:focus {
	background: #dedede;
	color: #1c3b5a;
}

.copthill-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	color: #1c3b5a;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.copthill-popup__close:hover,
.copthill-popup__close:focus {
	background: #fff;
}

html.copthill-popup-open {
	overflow: hidden;
}

@media (max-width: 720px) {
	.copthill-popup {
		padding: 12px;
	}

	.copthill-popup__dialog {
		flex-direction: column;
		max-height: calc(100vh - 24px);
	}

	.copthill-popup__media {
		flex: none;
		max-width: none;
		height: 170px;
	}

	.copthill-popup__media img {
		height: 170px;
	}

	.copthill-popup__content {
		padding: 24px 20px 28px;
	}

	.copthill-popup__actions .copthill-popup__btn {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.copthill-popup__dialog {
		animation: none;
	}

	.copthill-popup__btn {
		transition: none;
	}
}

@keyframes copthill-popup-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
