/* =========================================================
   SafeBox Waitlist — Frontend Styles
   ========================================================= */

/* Trigger button — matches .single_add_to_cart_button.button.alt sizing exactly */
.sbw-trigger-btn {
	display: block !important;
	width: 80% !important;
	max-width: 800px !important;
	height: 50px !important;
	padding: 0 30px !important;
	margin: 10px auto 0 auto !important;

	background: transparent !important;
	color: #333333 !important;
	border: 2px solid #333333 !important;
	border-radius: 4px !important;

	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	line-height: normal !important;
	letter-spacing: inherit !important;

	cursor: pointer !important;
	text-align: center !important;
	transition: all 0.3s ease !important;

	/* reset any theme button overrides */
	box-shadow: none !important;
	text-shadow: none !important;
	text-decoration: none !important;
}

.sbw-trigger-btn:hover,
.sbw-trigger-btn:focus {
	background: #333333 !important;
	color: #fff !important;
	border-color: #333333 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	outline: none !important;
}

/* =========================================================
   Overlay / backdrop
   ========================================================= */
.sbw-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	/* animation */
	opacity: 0;
	transition: opacity 0.2s ease;
}

.sbw-overlay.sbw-visible {
	opacity: 1;
}

/* =========================================================
   Modal box
   ========================================================= */
.sbw-modal {
	position: relative;
	background: #fff;
	border-radius: 8px;
	width: 100%;
	max-width: 440px;
	padding: 36px 32px 28px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	/* slide-up animation */
	transform: translateY(16px);
	transition: transform 0.25s ease;
}

.sbw-overlay.sbw-visible .sbw-modal {
	transform: translateY(0);
}

/* Close button */
.sbw-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: color 0.15s;
	box-shadow: none !important;
	text-shadow: none !important;
}

.sbw-close:hover,
.sbw-close:focus {
	color: #333;
	outline: none;
	background: #f0f0f0;
	box-shadow: none !important;
	text-shadow: none !important;
}

/* Heading */
.sbw-modal h2 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 700;
	color: #1a1a1a;
}

/* Subtitle */
.sbw-subtitle {
	margin: 0 0 22px;
	font-size: 14px;
	color: #666;
	line-height: 1.55;
}

/* Email field */
.sbw-field {
	margin-bottom: 14px;
}

.sbw-field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	border: 1.5px solid #d0d0d0;
	border-radius: 4px;
	font-size: 14px;
	color: #222;
	background: #fafafa;
	transition: border-color 0.2s;
}

.sbw-field input[type="email"]:focus {
	outline: none;
	border-color: #2271b1;
	background: #fff;
}

.sbw-field input[type="email"].sbw-input-error {
	border-color: #cc1818;
}

/* Feedback message */
.sbw-message {
	margin-bottom: 12px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
}

.sbw-message.sbw-error {
	background: #fce8e8;
	color: #8b1a1a;
	border: 1px solid #f5c2c2;
}

.sbw-message.sbw-success {
	background: #e7f5ea;
	color: #1a5c2a;
	border: 1px solid #b8dfc0;
}

/* Submit button — same dark fill as Add to Cart */
.sbw-submit-btn {
	display: block;
	width: 100%;
	padding: 0 30px;
	height: 50px;
	background: #333333;
	color: #fff;
	border: 2px solid #333333;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	text-align: center;
	transition: all 0.3s ease;
	box-sizing: border-box;
	box-shadow: none !important;
	text-shadow: none !important;
}

.sbw-submit-btn:hover,
.sbw-submit-btn:focus {
	background: #94db21;
	border-color: #94db21;
	color: #fff;
	outline: none;
	box-shadow: none !important;
	text-shadow: none !important;
}

.sbw-submit-btn:disabled {
	background: #d3d3d3;
	border-color: #d3d3d3;
	color: #999;
	cursor: not-allowed;
	opacity: 0.6;
	box-shadow: none !important;
	text-shadow: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 480px) {
	.sbw-modal {
		padding: 28px 20px 22px;
	}
}
