/*
 * Baza samodzielnych szablonów (logowanie, panele, strony gościa). Style motywu są na nich
 * odpinane (CM_Standalone_Page), a widoki dopasowano do Figmy na motywie twentytwentyfive,
 * więc jego reguły bazowe, na których polegamy, są tu odtworzone. :where() ma zerową
 * specyficzność, dlatego każda reguła komponentu wygrywa z tą bazą.
 */
:where(body.cm-auth-page-body, body.cm-dash-page-body, body.cm-guest-page-body) {
	margin: 0;
	background-color: #fff;
	color: #111;
	font-family: Manrope, sans-serif;
	font-size: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.392), 1.375rem);
	font-weight: 300;
	letter-spacing: -0.1px;
	line-height: 1.4;
}

:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(h1, h2, h3, h4, h5, h6) {
	font-weight: 400;
	letter-spacing: -0.1px;
	line-height: 1.125;
}

:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(h1) { font-size: clamp(2.15rem, 2.15rem + ((1vw - 0.2rem) * 1.333), 3rem); }
:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(h2) { font-size: clamp(1.75rem, 1.75rem + ((1vw - 0.2rem) * 0.392), 2rem); }
:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(h3) { font-size: clamp(1.125rem, 1.125rem + ((1vw - 0.2rem) * 0.392), 1.375rem); }
:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(h4) { font-size: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.196), 1.125rem); }
:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(h5) { font-size: 0.875rem; letter-spacing: 0.5px; }
:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(h6) { font-size: 0.875rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }

:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(blockquote, caption, figcaption, h1, h2, h3, h4, h5, h6, p) {
	text-wrap: pretty;
}

:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(a) {
	color: currentColor;
	text-decoration-thickness: 1px;
	text-underline-offset: .1em;
}

:where(.cm-auth-page-body, .cm-dash-page-body, .cm-guest-page-body) :where(a:hover) {
	text-decoration: none;
}

.cm-form {
	max-width: 640px;
	margin: 0 0 2em;
}

.cm-field {
	margin-bottom: 1em;
}

.cm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}

.cm-field input[type="text"],
.cm-field input[type="email"],
.cm-field input[type="tel"],
.cm-field input[type="date"],
.cm-field input[type="number"],
.cm-field input[type="password"],
.cm-field select,
.cm-field textarea {
	width: 100%;
	max-width: 420px;
	padding: 0.5em;
	box-sizing: border-box;
}

.cm-field--checkbox label {
	font-weight: 400;
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
}

.cm-notice {
	padding: 0.8em 1em;
	margin-bottom: 1em;
	border-left: 4px solid #666;
	background: #f6f6f6;
}

.cm-notice--success { border-color: #2e7d32; background: #eef7ee; }
.cm-notice--error { border-color: #c62828; background: #fbeaea; }
.cm-notice--info { border-color: #0073aa; background: #eaf3fb; }

.cm-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

.cm-table th,
.cm-table td {
	text-align: left;
	padding: 0.5em 0.7em;
	border-bottom: 1px solid #ddd;
}

.cm-button {
	display: inline-block;
	padding: 0.6em 1.4em;
	background: #0073aa;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 1em;
}

.cm-button:hover {
	background: #005a87;
}

/* Link do PDF regulaminu w zgodzie formularza zapisu (CM_Public::terms_link). */
.cm-terms-link,
.cm-terms-link:visited {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cm-terms-link:hover,
.cm-terms-link:focus-visible {
	color: #ec147a;
}
