/**
 * PB Early Birds - frontend styles.
 */

.pbeb-shortcode-wrapper .pbeb-open-link {
	display: inline-block;
	cursor: pointer;
	font-weight: 600;
	text-decoration: underline;
}

/* Modal overlay */
.pbeb-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	padding: 20px;
	box-sizing: border-box;
}

.pbeb-modal.pbeb-open {
	display: flex;
}

.pbeb-modal-content {
	position: relative;
	background: #ffffff;
	color: #1d2327;
	width: 100%;
	max-width: 460px;
	margin: auto;
	padding: 30px 28px;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	animation: pbeb-fade-in 0.2s ease-out;
}

@keyframes pbeb-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.pbeb-modal-content h3 {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.pbeb-close {
	position: absolute;
	top: 10px;
	right: 16px;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
	background: none;
	border: none;
}

.pbeb-close:hover {
	color: #000;
}

.pbeb-intro {
	margin-bottom: 16px;
}

.pbeb-intro p {
	margin: 0 0 8px;
}

.pbeb-register-form input[type="text"],
.pbeb-register-form input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	margin-bottom: 12px;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.pbeb-register-form input:focus {
	outline: none;
	border-color: #4CAF50;
	box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.pbeb-submit,
.pbeb-order-button {
	display: inline-block;
	width: 100%;
	padding: 13px 18px;
	background: #4CAF50;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.pbeb-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.pbeb-message {
	margin-top: 14px;
	font-size: 14px;
}

.pbeb-message.pbeb-success {
	color: #1a7f37;
}

.pbeb-message.pbeb-error {
	color: #d63638;
}

.pbeb-ended .pbeb-ended-message {
	margin-bottom: 16px;
	font-size: 15px;
}

/* Honeypot: keep visually hidden but present */
.pbeb-honeypot {
	position: absolute !important;
	left: -9999px !important;
	height: 0;
	width: 0;
	opacity: 0;
}
