/*!
 * Storzen — Back in Stock Notifier — Front-end Styles
 *
 * @package storzen
 * @since   1.3.0
 */

/* ── Wrapper ── */
.sz-bis-wrap {
	margin: 16px 0;
	padding: 20px;
	background: var(--sz-bis-bg, #f9fafb);
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-sizing: border-box;
}

.sz-bis-wrap * {
	box-sizing: inherit;
}

/* ── Intro text ── */
.sz-bis-intro {
	margin: 0 0 14px;
	font-size: 0.9em;
	line-height: 1.5;
	color: #374151;
}

/* ── Input row ── */
.sz-bis-fields {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sz-bis-email {
	flex: 1 1 200px;
	padding: 10px 14px;
	font-size: 0.9em;
	line-height: 1.4;
	color: #111827;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 5px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	appearance: none;
}

.sz-bis-email:focus {
	border-color: var(--sz-bis-btn, #111827);
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}

.sz-bis-email::placeholder {
	color: #9ca3af;
}

/* ── Submit button ── */
.sz-bis-btn.button {
	flex-shrink: 0;
	padding: 10px 20px;
	font-size: 0.9em;
	font-weight: 600;
	line-height: 1.4;
	background: var(--sz-bis-btn, #111827);
	color: var(--sz-bis-btn-text, #ffffff);
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.sz-bis-btn.button:hover {
	opacity: 0.9;
}

.sz-bis-btn.button:active {
	transform: scale(0.98);
}

.sz-bis-btn.button:disabled,
.sz-bis-btn.button[aria-busy="true"] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Consent checkbox ── */
.sz-bis-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 10px;
	font-size: 0.82em;
	line-height: 1.5;
	color: #6b7280;
	cursor: pointer;
}

.sz-bis-consent-chk {
	flex-shrink: 0;
	margin-top: 2px;
	width: 15px;
	height: 15px;
	accent-color: var(--sz-bis-btn, #111827);
	cursor: pointer;
}

/* ── Response message ── */
.sz-bis-message {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 5px;
	font-size: 0.875em;
	line-height: 1.5;
}

.sz-bis-message.is-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.sz-bis-message.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ── Admin list page status badges ── */
.sz-bis-status {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sz-bis-status--pending   { background: #fef9c3; color: #854d0e; }
.sz-bis-status--confirmed { background: #dbeafe; color: #1e40af; }
.sz-bis-status--notified  { background: #dcfce7; color: #166534; }

/* ── RTL ── */
[dir="rtl"] .sz-bis-fields {
	flex-direction: row-reverse;
}
