/* CompuShift public login — critical standalone styles. */
:root {
	--chss-bg: #f6f6f7;
	--chss-text: #111111;
	--chss-muted: #66666d;
	--chss-border: #dedee2;
	--chss-primary: #d71920;
	--chss-primary-2: #b80f16;
	--chss-shadow: 0 14px 34px rgba(17, 17, 17, .09);
}

/* v0.118.4 — isolate the scheduler from the host WordPress theme. */
body.chss-scheduler-page {
	margin: 0 !important;
	background: #f6f6f7 !important;
}

body:has(.chss-app) {
	margin: 0 !important;
	background: #f6f6f7 !important;
}

body.chss-scheduler-page > header,
body.chss-scheduler-page > footer,
body.chss-scheduler-page > .wp-site-blocks > header,
body.chss-scheduler-page > .wp-site-blocks > footer,
body.chss-scheduler-page > .wp-site-blocks > .wp-block-template-part:has(footer),
body.chss-scheduler-page .site-footer,
body.chss-scheduler-page .wp-block-site-logo + .wp-block-navigation {
	display: none !important;
}

body:has(.chss-app) > header,
body:has(.chss-app) > footer,
body:has(.chss-app) > .wp-site-blocks > header,
body:has(.chss-app) > .wp-site-blocks > footer,
body:has(.chss-app) .site-footer {
	display: none !important;
}

body.chss-scheduler-page > .wp-site-blocks,
body.chss-scheduler-page .wp-site-blocks,
body.chss-scheduler-page .wp-block-post-content,
body.chss-scheduler-page .entry-content {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.chss-scheduler-page .chss-app {
	min-height: 100vh;
	margin: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
}

body.chss-scheduler-page .chss-app :where(h1, h2, h3, p, label, input, button, select, textarea) {
	font-family: inherit !important;
}

.chss-app,
.chss-app * {
	box-sizing: border-box;
}

.chss-app {
	width: 100%;
	min-height: 78vh;
	padding: 28px;
	background: #f6f6f7;
	color: var(--chss-text);
	font-family: inherit;
}

.chss-app .chss-skip-link {
	position: absolute;
	left: 12px;
	top: 8px;
	z-index: 100000;
	padding: 9px 12px;
	border-radius: 10px;
	background: #111;
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transform: translateY(-160%);
}

.chss-app .chss-skip-link:focus {
	transform: translateY(0);
}

.chss-auth-shell {
	display: grid;
	min-height: calc(70vh - 64px);
	place-items: center;
	color: #111;
}

.chss-auth-card {
	width: min(100%, 480px);
	padding: 38px;
	border: 1px solid var(--chss-border);
	border-radius: 20px;
	background: rgba(255,255,255,.98);
	box-shadow: var(--chss-shadow);
}

.chss-brand-logo {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	line-height: 0;
}

.chss-brand-logo img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.chss-brand-logo-auth {
	display: flex;
	width: min(260px, 80%);
	margin: 0 auto 20px;
}

.chss-auth-card h1 {
	margin: 0;
	color: #111;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.05;
	letter-spacing: -.04em;
}

.chss-muted {
	margin: 10px 0 0;
	color: var(--chss-muted);
	line-height: 1.65;
}

.chss-form {
	display: grid;
	gap: 12px;
	margin-top: 22px;
}

.chss-form > label:not(.chss-checkbox) {
	display: grid;
	gap: 6px;
	margin: 0;
	color: var(--chss-muted);
	font-size: 13px;
	font-weight: 900;
}

.chss-form input[type="text"],
.chss-form input[type="password"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	border: 1px solid #d8d9de;
	border-radius: 14px;
	background: #fff;
	color: #111318;
	font: inherit;
	outline: 0;
	box-shadow: none;
}

.chss-form input[type="text"]:focus,
.chss-form input[type="password"]:focus {
	border-color: var(--chss-primary);
	box-shadow: 0 0 0 3px rgba(237,28,36,.12);
}

.chss-auth-card .chss-checkbox {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	margin: 2px 0 0;
	padding: 11px 12px;
	border: 1px solid #e1e7ef;
	border-radius: 13px;
	background: #f8fafc;
	color: #334155;
	cursor: pointer;
}

.chss-auth-card .chss-checkbox input[type="checkbox"] {
	appearance: auto;
	-webkit-appearance: checkbox;
	display: inline-block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	min-height: 20px;
	margin: 0;
	padding: 0;
	accent-color: var(--chss-primary);
	cursor: pointer;
}

.chss-auth-card .chss-checkbox > span {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.chss-auth-card .chss-checkbox strong {
	color: #334155;
	font-size: 13px;
	line-height: 1.25;
}

.chss-auth-card .chss-checkbox small {
	color: #596474;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.35;
}

.chss-auth-card .chss-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid #c81018;
	border-radius: 15px;
	background: linear-gradient(135deg, #d71920, #b80f16);
	color: #fff;
	font: inherit;
	font-weight: 900;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(200,16,24,.18);
	transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
}

.chss-auth-card .chss-button:hover {
	background: linear-gradient(135deg, #c81018, #970b10);
	color: #fff;
	box-shadow: 0 13px 28px rgba(200,16,24,.25);
}

.chss-auth-card .chss-button:active {
	transform: scale(.985);
}

.chss-auth-card form[data-chss-login-form] button[type="submit"]:disabled {
	cursor: wait;
	opacity: .82;
	transform: none;
}

.chss-auth-shell :where(button, a, input):focus-visible {
	outline: 3px solid rgba(200,16,24,.42);
	outline-offset: 2px;
}

.chss-notice {
	width: min(100%, 1320px);
	margin: 0 auto 16px;
	padding: 14px 16px;
	border-radius: 16px;
	font-weight: 900;
}

.chss-notice-success { background: #dcfce7; color: #166534; }
.chss-notice-error { background: #fee2e2; color: #991b1b; }

/* Keep saved accessibility text-size preferences working on the login screen. */
html[data-chss-font-size="xsmall"] .chss-app :where(p,label,input,button,small,strong) { font-size: 12px !important; }
html[data-chss-font-size="small"] .chss-app :where(p,label,input,button,small,strong) { font-size: 13px !important; }
html[data-chss-font-size="large"] .chss-app :where(p,label,input,button,small,strong) { font-size: 15.5px !important; line-height: 1.52; }
html[data-chss-font-size="xlarge"] .chss-app :where(p,label,input,button,small,strong) { font-size: 17px !important; line-height: 1.55; }
html[data-chss-font-size="xsmall"] .chss-app h1 { font-size: 26px !important; }
html[data-chss-font-size="small"] .chss-app h1 { font-size: 28px !important; }
html[data-chss-font-size="large"] .chss-app h1 { font-size: 34px !important; }
html[data-chss-font-size="xlarge"] .chss-app h1 { font-size: 38px !important; }

html[data-chss-high-contrast="true"] .chss-app,
html[data-chss-high-contrast="true"] .chss-auth-shell {
	--chss-bg: #000;
	--chss-text: #fff;
	--chss-muted: #fff;
	--chss-border: #fff;
	background: #000 !important;
	color: #fff !important;
}

html[data-chss-high-contrast="true"] .chss-auth-card {
	border-color: #fff !important;
	background: #000 !important;
	color: #fff !important;
}

html[data-chss-high-contrast="true"] .chss-auth-card :where(h1,p,label,strong,small) {
	color: #fff !important;
}

html[data-chss-high-contrast="true"] .chss-auth-card :where(input,.chss-checkbox) {
	border-color: #fff !important;
	background: #000 !important;
	color: #fff !important;
}

@media (max-width: 480px) {
	html,
	body {
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: hidden !important;
	}

	.chss-app {
		box-sizing: border-box !important;
		position: relative !important;
		left: 50% !important;
		width: 100vw !important;
		max-width: 100vw !important;
		margin: 0 !important;
		padding: 10px max(10px, env(safe-area-inset-right)) 10px max(10px, env(safe-area-inset-left)) !important;
		transform: translateX(-50%) !important;
		overflow-x: clip !important;
	}

	@supports (width: 100dvw) {
		.chss-app {
			width: 100dvw !important;
			max-width: 100dvw !important;
		}
	}

	.chss-auth-card {
		padding: 20px;
		border-radius: 20px;
	}

	.chss-brand-logo-auth {
		width: min(230px, 82%);
		margin-bottom: 16px;
	}

	.chss-auth-card .chss-checkbox {
		padding: 10px 11px;
	}
}

/* v0.107 — Android/iOS login consistency. */
.chss-app,
.chss-auth-shell,
.chss-auth-card,
.chss-auth-card :where(input, button, label) {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media (max-width: 480px) {
	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
	}

	body {
		background: #f7f7f8;
	}

	.chss-app {
		padding-top: max(10px, env(safe-area-inset-top)) !important;
		padding-right: max(12px, env(safe-area-inset-right)) !important;
		padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
		padding-left: max(12px, env(safe-area-inset-left)) !important;
		background: #f7f7f8 !important;
	}

	.chss-auth-shell {
		width: 100%;
		min-height: 0;
		padding: 10px 0;
	}

	.chss-auth-card {
		width: min(100%, 430px);
		margin: 0 auto;
		padding: 22px 18px;
		border-color: #e2e3e7;
		border-radius: 22px;
		box-shadow: 0 8px 24px rgba(17, 17, 17, .07);
	}

	.chss-form input[type="text"],
	.chss-form input[type="password"] {
		min-height: 50px;
		font-size: 16px !important;
		border-radius: 16px;
	}

	.chss-auth-card .chss-button {
		min-height: 48px;
		border-radius: 16px;
	}
}
