/* Olynk Core - formularz newslettera */

:root {
	--olynk-ink: #000000;
	--olynk-paper: #ffffff;
	--olynk-sand: #e9e5d9;
	--olynk-success: #2e7d4f;
	--olynk-error: #b3261e;
}

.olynk-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* formularze */
.olynk-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.olynk-form {
	position: relative;
}

.olynk-form .wpcf7-spinner {
	display: none;
	width: 18px;
	height: 18px;
	margin-left: 10px;
	vertical-align: middle;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: olynk-spin 0.7s linear infinite;
}

.olynk-form.submitting .wpcf7-spinner {
	display: inline-block;
}

.olynk-form button[type=submit][disabled] {
	opacity: 0.7;
	cursor: wait;
}

.olynk-form .wpcf7-not-valid-tip {
	display: block;
	padding-top: 5px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--olynk-error);
	text-align: left;
}

.olynk-form .wpcf7-not-valid {
	border-color: var(--olynk-error) !important;
}

.olynk-form .wpcf7-response-output {
	margin: 15px 0 0 0;
	padding: 10px 15px;
	font-size: 14px;
	line-height: 1.4;
	border: 2px solid var(--olynk-sand);
	background: var(--olynk-paper);
	color: var(--olynk-ink);
}

.olynk-form .wpcf7-response-output[hidden] {
	display: none;
}

.olynk-form.sent .wpcf7-response-output {
	border-color: var(--olynk-success);
}

.olynk-form.invalid .wpcf7-response-output,
.olynk-form.failed .wpcf7-response-output {
	border-color: var(--olynk-error);
}

.olynk-form-noscript {
	font-size: 14px;
}

@keyframes olynk-spin {
	to {
		transform: rotate(360deg);
	}
}

/* checkbox zgody na newsletter */
.olynk-consent-field {
display: flex;
align-items: flex-start;
gap: 10px;
cursor: pointer;
text-align: left;
}

.olynk-consent-field input[type=checkbox] {
float: none;
position: static;
top: auto;
flex: 0 0 16px;
width: 16px;
height: 16px;
margin: 1px 0 0 0;
accent-color: #000000;
cursor: pointer;
}

.olynk-consent-field input[type=checkbox]:focus-visible {
outline: 2px solid #6c4e4e;
outline-offset: 2px;
}

.olynk-consent-field input[type=checkbox].wpcf7-not-valid {
outline: 2px solid var(--olynk-error);
outline-offset: 1px;
}

.olynk-consent-text a {
color: inherit;
text-decoration: underline;
}
