/* cs-bis-style override.css - dopasowanie BIS plugin do Botiga theme */

/* Container - usun Bootstrap panel border + cien, miekkie zaokraglenie */
.cwginstock-subscribe-form .panel.cwginstock-panel-primary {
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	box-shadow: none;
	margin-top: 16px;
	overflow: hidden;
	background: #fafafa;
}

/* Heading - zamiast Bootstrap niebieskiego paska -> czarny minimalistyczny */
.cwginstock-subscribe-form .panel-heading.cwginstock-panel-heading {
	background: #222;
	color: #fff;
	border-bottom: none;
	padding: 14px 18px;
}
.cwginstock-subscribe-form .panel-heading h4 {
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.3px;
	margin: 0;
	text-align: center;
	text-transform: uppercase;
	font-family: inherit;
}

/* Body padding */
.cwginstock-subscribe-form .panel-body.cwginstock-panel-body {
	padding: 18px;
	background: #fafafa;
}

/* Form row reset - usun Bootstrap col-md-12 padding chaos */
.cwginstock-subscribe-form .panel-body .row,
.cwginstock-subscribe-form .panel-body .col-md-12 {
	margin: 0;
	padding: 0;
	width: 100%;
}

/* Inputs - match Botiga input styling */
.cwginstock-subscribe-form input.cwgstock_name,
.cwginstock-subscribe-form input.cwgstock_email {
	width: 100% !important;
	padding: 10px 12px !important;
	margin-bottom: 10px !important;
	border: 1px solid #ddd !important;
	border-radius: 3px !important;
	font-size: 14px !important;
	font-family: inherit !important;
	background: #fff !important;
	color: #333 !important;
	text-align: left !important;
	box-sizing: border-box !important;
	transition: border-color 0.2s ease;
}
.cwginstock-subscribe-form input.cwgstock_name:focus,
.cwginstock-subscribe-form input.cwgstock_email:focus {
	border-color: #222 !important;
	outline: none !important;
}

/* Submit button - match Botiga primary button (#222 bg, white text) */
.cwginstock-subscribe-form input.cwgstock_button {
	background: #222 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 3px !important;
	padding: 11px 24px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	font-family: inherit !important;
	transition: background 0.2s ease;
	margin-top: 10px;
	width: auto;
	min-width: 180px;
}
.cwginstock-subscribe-form input.cwgstock_button:hover:not([disabled]) {
	background: #333 !important;
}
.cwginstock-subscribe-form input.cwgstock_button[disabled],
.cwginstock-subscribe-form input.cwgstock_button:disabled {
	background: #aaa !important;
	cursor: not-allowed;
	opacity: 0.7;
}

/* iAgree checkbox - position:absolute checkbox + block label.
 * HTML BIS: <label><input/>Tekst (<a>polityka</a>).</label>
 * INPUT + text node + <a> + text node sa DIRECT CHILDREN labelu.
 * Display:grid traktuje kazdy direct child jako osobny grid item -
 * <a>polityka prywatnosci</a> ladowal w nowym rzedzie grid'a, niewyrowniony
 * z tekstem powyzej. Display:flex ma ten sam problem.
 * Fix: block label + position:absolute checkbox - caly tekst (text+anchor+
 * text) jest jednym continuous text flow, wraps poprawnie jako block content.
 */
.cwginstock-subscribe-form .cwg_iagree_checkbox {
	margin: 12px 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}
.cwginstock-subscribe-form .cwg_iagree_checkbox label {
	display: block;
	position: relative;
	padding-left: 26px;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
}
.cwginstock-subscribe-form .cwg_iagree_checkbox_input {
	position: absolute;
	left: 0;
	top: 3px;
	margin: 0;
}
.cwginstock-subscribe-form .cwg_iagree_checkbox a {
	color: #222;
	text-decoration: underline;
}
.cwginstock-subscribe-form .cwg_iagree_checkbox a:hover {
	text-decoration: none;
}

/* Turnstile container - center */
.cwginstock-subscribe-form .cf-turnstile {
	margin: 12px 0;
	display: flex;
	justify-content: center;
}

/* Output (success/error messages) */
.cwginstock-subscribe-form .cwgstock_output {
	margin-top: 12px;
	font-size: 14px;
	text-align: center;
	font-family: inherit;
}
.cwginstock-subscribe-form .cwgstock_output:not(:empty) {
	padding: 10px;
	border-radius: 3px;
}
