/* Popup cadastro Black Friday — max ~400px, mobile-friendly */
.kk-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
}

.kk-popup-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.kk-popup {
	position: relative;
	width: 100%;
	max-width: 400px;
	max-height: 94vh;
	overflow: hidden;
	border-radius: 4px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
	background-color: #1a1a1a;
	background-image: var(--kk-popup-bg);
	background-size: cover;
	background-position: center;
	transform: translateY(12px) scale(0.98);
	transition: transform 0.28s ease;
}

.kk-popup-overlay.is-open .kk-popup {
	transform: translateY(0) scale(1);
}

.kk-popup__veil {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.55) 0%,
		rgba(0, 0, 0, 0.72) 45%,
		rgba(0, 0, 0, 0.82) 100%
	);
	pointer-events: none;
}

.kk-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.kk-popup__close:hover,
.kk-popup__close:focus {
	background: rgba(255, 255, 255, 0.25);
	outline: none;
}

.kk-popup__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 36px 22px 24px;
	color: #fff;
	text-align: center;
	overflow: visible;
}

.kk-popup__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	opacity: 0.85;
}

.kk-popup__title {
	margin: 0 0 10px;
	font-size: clamp(1.15rem, 4vw, 1.35rem);
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.kk-popup__text {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
}

.kk-popup__text strong {
	font-weight: 700;
	color: #fff;
}

.kk-popup__note {
	margin: 0 0 16px;
	font-size: 12px;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.8);
}

.kk-popup__form .wpcf7 {
	margin: 0;
}

.kk-popup__form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: left;
}

.kk-popup__form label {
	display: block;
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.kk-popup__form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 4px;
}

.kk-popup__form input[type="text"],
.kk-popup__form input[type="email"],
.kk-popup__form input[type="tel"] {
	width: 100%;
	height: 40px;
	padding: 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.95);
	color: #111;
	font-size: 14px;
	line-height: 40px;
	box-shadow: none;
}

.kk-popup__form input:focus {
	border-color: #fff;
	outline: none;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.kk-popup__form .wpcf7-not-valid {
	border-color: #ff6b6b;
}

.kk-popup__form .wpcf7-not-valid-tip {
	font-size: 11px;
	color: #ffb4b4;
}

.kk-popup__form .wpcf7-submit {
	width: 100%;
	height: 42px;
	margin-top: 4px;
	padding: 0 16px;
	border: 0;
	border-radius: 2px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.kk-popup__form .wpcf7-submit:hover {
	background: #f0f0f0;
}

.kk-popup__form .wpcf7-spinner {
	margin: 0 auto;
}

.kk-popup__form .wpcf7-response-output {
	display: none !important;
}

.kk-popup__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	animation: kk-popup-fade-in 0.35s ease;
}

.kk-popup__success[hidden] {
	display: none !important;
}

.kk-popup__content[hidden] {
	display: none !important;
}

.kk-popup__ok {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	height: 42px;
	margin-top: 8px;
	padding: 0 20px;
	border: 0;
	border-radius: 2px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.kk-popup__ok:hover,
.kk-popup__ok:focus {
	background: #f0f0f0;
	outline: none;
}

@keyframes kk-popup-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 420px) {
	.kk-popup {
		max-height: 94vh;
	}

	.kk-popup__inner {
		padding: 36px 18px 20px;
	}
}

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