.wh-webhook-cf-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.wh-webhook-cf-popup[hidden] {
	display: none !important;
}

.wh-webhook-cf-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(2px);
}

.wh-webhook-cf-popup__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 420px);
	padding: 40px 32px 32px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
	text-align: center;
}

.wh-webhook-cf-popup__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #6b7280;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.wh-webhook-cf-popup__close:hover,
.wh-webhook-cf-popup__close:focus {
	background: #e5e7eb;
	color: #374151;
}

.wh-webhook-cf-popup__title {
	margin: 0 0 12px;
	color: #485daa;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.35;
}

.wh-webhook-cf-popup--error .wh-webhook-cf-popup__title {
	color: #dc2626;
}

.wh-webhook-cf-popup__message {
	margin: 0 0 28px;
	color: #6b7280;
	font-size: 0.98rem;
	line-height: 1.65;
}

.wh-webhook-cf-popup__ok {
	display: block;
	width: 100%;
	padding: 14px 24px;
	border: 0;
	border-radius: 14px;
	background: #485daa;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.wh-webhook-cf-popup__ok:hover,
.wh-webhook-cf-popup__ok:focus {
	background: #3b4d91;
}

.wh-webhook-cf-popup--error .wh-webhook-cf-popup__ok {
	background: #dc2626;
}

.wh-webhook-cf-popup--error .wh-webhook-cf-popup__ok:hover,
.wh-webhook-cf-popup--error .wh-webhook-cf-popup__ok:focus {
	background: #b91c1c;
}

.wh-webhook-cf-popup-enabled--success form.sent .wpcf7-response-output,
.wh-webhook-cf-popup-enabled--error form.failed .wpcf7-response-output {
	display: none !important;
}

body.wh-webhook-cf-popup-open {
	overflow: hidden;
}
