/**
 * WhatsApp Checkout Pro - Email Capture popup styles (Task 1).
 */

.wacp-ec-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 19, 0.55);
}

body.wacp-ec-open {
	overflow: hidden;
}

.wacp-ec-modal {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px 24px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.wacp-ec-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: none;
	font-size: 22px;
	line-height: 1;
	color: #8a9089;
	cursor: pointer;
	padding: 6px;
}

.wacp-ec-close:hover {
	color: #1f2620;
}

.wacp-ec-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #1f2620;
}

.wacp-ec-subtitle {
	margin: 0 0 18px;
	font-size: 13px;
	color: #767b78;
}

.wacp-ec-field {
	margin: 0 0 14px;
}

.wacp-ec-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #1f2620;
	margin-bottom: 6px;
}

.wacp-ec-field input {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1.5px solid #dcdfdd;
	border-radius: 8px;
	font-size: 14px;
}

.wacp-ec-field input:focus {
	outline: none;
	border-color: #25d366;
	box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.15);
}

.wacp-ec-error {
	margin: 6px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: #d23c3c;
}

.wacp-ec-error[hidden] {
	display: none !important;
}

.wacp-ec-continue {
	display: block;
	width: 100%;
	padding: 13px 18px;
	border: none;
	border-radius: 8px;
	background: linear-gradient(135deg, #1faa59 0%, #25d366 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wacp-ec-continue:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(31, 170, 89, 0.28);
}

@media (max-width: 420px) {
	.wacp-ec-modal {
		padding: 22px 18px 20px;
	}
}
