/* TS - Back In Stock Notifier — frontend form (panel style, like the old plugin) */
.tsbis-form-wrap {
	margin: 1.5rem 0;
}

.tsbis-panel {
	border: 1px solid #2271b1;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.tsbis-panel-heading {
	background: #2271b1;
	padding: 12px 16px;
	text-align: center;
}
.tsbis-panel-heading h4 {
	margin: 0;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
}

.tsbis-panel-body {
	padding: 14px 16px;
	background: #fff;
}

/* Beat any theme default form margin so nothing extra appears below the button. */
.tsbis-form,
.tsbis-form .tsbis-submit {
	display: block;
	margin: 0;
}
.tsbis-form > *:last-child { margin-bottom: 0; }

.tsbis-email {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	margin: 0 0 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: .95rem;
	text-align: center;
	background: #fff;
	color: #1f2937;
}
.tsbis-email:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, .2);
}

/* Submit button — dark theme colour, fuller side padding.
   Doubled selector for higher specificity than theme defaults. */
.tsbis-submit.tsbis-submit {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 32px;
	background: #171A20;
	color: #fff;
	border: 0;
	border-radius: 3px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	transition: background .15s, opacity .15s;
}
.tsbis-submit.tsbis-submit:hover  { background: #2a2e36; color: #fff; }
.tsbis-submit.tsbis-submit:active { background: #000; color: #fff; }
.tsbis-submit.tsbis-submit:disabled { opacity: .65; cursor: wait; }

/* Message line — collapsed entirely until JS writes text into it.
   :empty + display:none AND height:0 to beat any aria-live styling from the theme. */
.tsbis-msg {
	font-size: .9rem;
	text-align: center;
	margin: 0;
}
.tsbis-msg:empty {
	display: none !important;
	height: 0;
	margin: 0;
	padding: 0;
}
.tsbis-msg:not(:empty) { margin-top: 10px; }
.tsbis-msg.is-ok  { color: #1a7f37; font-weight: 600; }
.tsbis-msg.is-err { color: #b3261e; font-weight: 600; }
