/**
 * Izolacja stylów SRNiKC od motywów i innych wtyczek.
 * Ładowane jako ostatnie — !important tylko tam, gdzie motywy zwykle nadpisują.
 */

html body .srnikc-ui,
html body .srnikc-calendar-wrap,
html body .srnikc-form-wrap,
html body .srnikc-event-single,
html body .srnikc-form-modal,
html body .srnikc-calendar-picker,
html body .srnikc-modal,
html body #srnikc-admin-app {
	--srnikc-primary: #003366;
	--srnikc-primary-hover: #004d99;
	--srnikc-accent: #e8b923;
	--srnikc-border: #d9e2ec;
	--srnikc-bg: #f7f9fc;
	--srnikc-text: #1a202c;
	--srnikc-muted: #64748b;
	--srnikc-radius: 10px;
	--srnikc-shadow: 0 8px 24px rgba(0, 51, 102, 0.08);
	isolation: isolate;
	box-sizing: border-box;
	color: var(--srnikc-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	text-size-adjust: 100%;
}

html body .srnikc-ui *,
html body .srnikc-ui *::before,
html body .srnikc-ui *::after,
html body .srnikc-calendar-wrap *,
html body .srnikc-calendar-wrap *::before,
html body .srnikc-calendar-wrap *::after,
html body .srnikc-form-wrap *,
html body .srnikc-form-wrap *::before,
html body .srnikc-form-wrap *::after,
html body .srnikc-event-single *,
html body .srnikc-event-single *::before,
html body .srnikc-event-single *::after,
html body .srnikc-form-modal *,
html body .srnikc-form-modal *::before,
html body .srnikc-form-modal *::after,
html body .srnikc-calendar-picker *,
html body .srnikc-calendar-picker *::before,
html body .srnikc-calendar-picker *::after,
html body .srnikc-modal *,
html body .srnikc-modal *::before,
html body .srnikc-modal *::after,
html body #srnikc-admin-app *,
html body #srnikc-admin-app *::before,
html body #srnikc-admin-app *::after {
	box-sizing: border-box;
}

html body .srnikc-ui img,
html body .srnikc-calendar-wrap img,
html body .srnikc-form-wrap img,
html body .srnikc-event-single img,
html body .srnikc-modal img {
	max-width: 100% !important;
	height: auto;
	border: 0;
	box-shadow: none;
	background: none;
}

html body .srnikc-ui p,
html body .srnikc-ui h1,
html body .srnikc-ui h2,
html body .srnikc-ui h3,
html body .srnikc-ui h4,
html body .srnikc-ui ul,
html body .srnikc-ui ol,
html body .srnikc-ui dl,
html body .srnikc-calendar-wrap p,
html body .srnikc-calendar-wrap h1,
html body .srnikc-calendar-wrap h2,
html body .srnikc-calendar-wrap h3,
html body .srnikc-form-wrap p,
html body .srnikc-form-wrap h2,
html body .srnikc-event-single p,
html body .srnikc-event-single h1,
html body .srnikc-event-single h2,
html body .srnikc-event-single h3,
html body .srnikc-event-single ul,
html body .srnikc-event-single dl,
html body .srnikc-calendar-picker p,
html body .srnikc-calendar-picker h4,
html body .srnikc-calendar-picker ul,
html body .srnikc-modal p,
html body .srnikc-modal h3,
html body .srnikc-form-modal p,
html body .srnikc-form-modal h3 {
	float: none !important;
	max-width: none !important;
	text-transform: none;
	letter-spacing: normal;
}

html body .srnikc-ui a,
html body .srnikc-calendar-wrap a,
html body .srnikc-form-wrap a,
html body .srnikc-event-single a,
html body .srnikc-modal a,
html body .srnikc-calendar-picker a {
	background: transparent;
	box-shadow: none;
}

/* Pola formularza — motywy (Elementor, Divi, Gutenberg) często dają max-width/height !important */
html body .srnikc-ui input[type="text"],
html body .srnikc-ui input[type="email"],
html body .srnikc-ui input[type="tel"],
html body .srnikc-ui input[type="number"],
html body .srnikc-ui input[type="search"],
html body .srnikc-ui input[type="url"],
html body .srnikc-ui input[type="date"],
html body .srnikc-ui input[type="datetime-local"],
html body .srnikc-ui input[type="file"],
html body .srnikc-ui select,
html body .srnikc-ui textarea,
html body .srnikc-form-wrap input[type="text"],
html body .srnikc-form-wrap input[type="email"],
html body .srnikc-form-wrap input[type="tel"],
html body .srnikc-form-wrap input[type="number"],
html body .srnikc-form-wrap input[type="search"],
html body .srnikc-form-wrap input[type="date"],
html body .srnikc-form-wrap input[type="datetime-local"],
html body .srnikc-form-wrap input[type="file"],
html body .srnikc-form-wrap select,
html body .srnikc-form-wrap textarea,
html body .srnikc-calendar-wrap input[type="search"] {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0.65rem 0.85rem !important;
	border: 1px solid var(--srnikc-border, #d9e2ec) !important;
	border-radius: 8px !important;
	background: #fff !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--srnikc-text, #1a202c) !important;
	font-family: inherit !important;
	font-size: 0.95rem !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-align: left !important;
	outline: none !important;
}

html body .srnikc-form-wrap input[type="file"] {
	padding: 0.5rem 0.65rem !important;
}

html body .srnikc-ui input:focus,
html body .srnikc-ui select:focus,
html body .srnikc-ui textarea:focus,
html body .srnikc-form-wrap input:focus,
html body .srnikc-form-wrap select:focus,
html body .srnikc-form-wrap textarea:focus,
html body .srnikc-calendar-wrap input[type="search"]:focus {
	border-color: #93c5fd !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
	outline: none !important;
}

html body .srnikc-form-wrap .srnikc-form__field.is-link-overridden input,
html body .srnikc-form-wrap .srnikc-form__field.is-link-overridden textarea,
html body .srnikc-form-wrap .srnikc-form__field.is-link-overridden select {
	border-color: #93c5fd !important;
	background: #f8fbff !important;
}

html body .srnikc-ui input[type="checkbox"],
html body .srnikc-ui input[type="radio"],
html body .srnikc-form-wrap input[type="checkbox"],
html body .srnikc-form-wrap input[type="radio"] {
	display: inline-block !important;
	width: 1.05rem !important;
	height: 1.05rem !important;
	min-width: 1.05rem !important;
	max-width: 1.05rem !important;
	min-height: 1.05rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--srnikc-border, #d9e2ec) !important;
	box-shadow: none !important;
	accent-color: var(--srnikc-primary, #003366);
	flex-shrink: 0;
}

html body .srnikc-ui button.srnikc-btn,
html body .srnikc-ui a.srnikc-btn,
html body .srnikc-calendar-wrap button.srnikc-btn,
html body .srnikc-calendar-wrap a.srnikc-btn,
html body .srnikc-form-wrap button.srnikc-btn,
html body .srnikc-form-wrap a.srnikc-btn,
html body .srnikc-event-single button.srnikc-btn,
html body .srnikc-event-single a.srnikc-btn,
html body .srnikc-modal button.srnikc-btn,
html body .srnikc-modal a.srnikc-btn,
html body .srnikc-form-modal button.srnikc-btn,
html body .srnikc-calendar-picker button {
	appearance: none !important;
	-webkit-appearance: none !important;
	float: none !important;
	font-family: inherit !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	background-image: none !important;
	cursor: pointer !important;
	line-height: 1.2 !important;
}

html body .srnikc-ui button.srnikc-btn,
html body .srnikc-ui a.srnikc-btn,
html body .srnikc-calendar-wrap button.srnikc-btn,
html body .srnikc-calendar-wrap a.srnikc-btn,
html body .srnikc-form-wrap button.srnikc-btn,
html body .srnikc-form-wrap a.srnikc-btn,
html body .srnikc-event-single button.srnikc-btn,
html body .srnikc-event-single a.srnikc-btn,
html body .srnikc-modal button.srnikc-btn,
html body .srnikc-modal a.srnikc-btn,
html body .srnikc-form-modal button.srnikc-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: auto !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0.65rem 1.25rem !important;
	border-radius: 0.5rem !important;
	border-style: solid !important;
	border-width: 1px !important;
	font-size: 0.95rem !important;
}

html body .srnikc-ui .srnikc-btn--primary,
html body .srnikc-calendar-wrap .srnikc-btn--primary,
html body .srnikc-form-wrap .srnikc-btn--primary,
html body .srnikc-event-single .srnikc-btn--primary,
html body .srnikc-modal .srnikc-btn--primary,
html body .srnikc-form-modal .srnikc-btn--primary {
	background: var(--srnikc-primary, #003366) !important;
	border-color: var(--srnikc-primary, #003366) !important;
	color: #fff !important;
}

html body .srnikc-ui .srnikc-btn--primary:hover,
html body .srnikc-calendar-wrap .srnikc-btn--primary:hover,
html body .srnikc-form-wrap .srnikc-btn--primary:hover,
html body .srnikc-event-single .srnikc-btn--primary:hover,
html body .srnikc-modal .srnikc-btn--primary:hover,
html body .srnikc-form-modal .srnikc-btn--primary:hover {
	background: var(--srnikc-primary-hover, #004d99) !important;
	border-color: var(--srnikc-primary-hover, #004d99) !important;
	color: #fff !important;
}

html body .srnikc-ui .srnikc-btn--ghost,
html body .srnikc-calendar-wrap .srnikc-btn--ghost,
html body .srnikc-form-wrap .srnikc-btn--ghost {
	background: #fff !important;
	border-color: var(--srnikc-border, #d9e2ec) !important;
	color: var(--srnikc-text, #1a202c) !important;
}

html body .srnikc-ui .srnikc-btn--calendar,
html body .srnikc-event-single .srnikc-btn--calendar,
html body .srnikc-modal .srnikc-btn--calendar {
	background: #fff !important;
	border-color: var(--srnikc-border, #d9e2ec) !important;
	color: var(--srnikc-primary, #003366) !important;
}

html body .srnikc-form-wrap .srnikc-btn--lg {
	padding: 0.85rem 1.5rem !important;
	font-size: 1rem !important;
}

html body .srnikc-form-wrap .srnikc-form__link-resync {
	display: inline-flex !important;
	width: auto !important;
	height: auto !important;
	margin: 0 0 0 auto !important;
	padding: 0.2rem 0.55rem !important;
	border: 1px solid #bfdbfe !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #1d4ed8 !important;
	font-size: 0.78rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

html body .srnikc-calendar-wrap .fc,
html body .srnikc-calendar-wrap .fc-scrollgrid,
html body .srnikc-calendar-wrap .fc-theme-standard td,
html body .srnikc-calendar-wrap .fc-theme-standard th,
html body .srnikc-calendar-wrap .fc-col-header-cell,
html body .srnikc-calendar-wrap .fc-daygrid-day {
	border-color: var(--srnikc-border, #d9e2ec) !important;
	font-family: inherit !important;
}

html body .srnikc-calendar-wrap .fc-button,
html body .srnikc-calendar-wrap .fc-button-primary {
	appearance: none !important;
	-webkit-appearance: none !important;
	height: auto !important;
	min-height: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-weight: 600 !important;
}

html body .srnikc-calendar-wrap .srnikc-custom-select__trigger {
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	font-family: inherit !important;
	text-transform: none !important;
}

html body .srnikc-form-modal,
html body .srnikc-calendar-picker,
html body .srnikc-modal {
	font-family: inherit !important;
}

html body .srnikc-form-modal__dialog,
html body .srnikc-calendar-picker__dialog,
html body .srnikc-modal__dialog {
	background: #fff !important;
	max-width: none;
}

html body #srnikc-admin-app {
	max-width: none !important;
	width: auto !important;
}

html body #srnikc-admin-app .wff-name-input,
html body #srnikc-admin-app .wff-label-input,
html body #srnikc-admin-app .wff-field-type,
html body #srnikc-admin-app .wff-options-input,
html body #srnikc-admin-app .wff-content-input,
html body #srnikc-admin-app input.regular-text,
html body #srnikc-admin-app textarea.large-text,
html body #srnikc-admin-app select {
	max-width: none;
	font-family: inherit;
}
