/*
 * Skyline Cookie Consent - the nuviewtreatment.com cookie banner and
 * preferences window, styled as part of skylinerecoverycenter.com:
 *
 *   colors   Elementor kit: primary #DD9158, text #212321
 *   body     Poppins 18px / 300 / 1.5   (16px on tablet and mobile)
 *   headings 20px / 600 small heading, 48px / 200 section title
 *            (18 / 36 on tablet, 18 / 32 on mobile)
 *   button   "Call for a Confidential Assessment": orange pill, 14px / 500
 *            (12px on tablet and mobile), arrow in a 48px white circle,
 *            floats up on hover
 *
 * Everything is scoped under #slcc so theme/Elementor styles for button, h2,
 * p and a don't leak in (Hello Elementor colors every <button> pink).
 */

#slcc {
	--slcc-primary: #DD9158;
	--slcc-primary-soft: #FFF3EA;
	--slcc-text: #212321;
	--slcc-muted: #7B7D7B;
	--slcc-border: #EDEDED;
	--slcc-surface: #F5F5F5;
	--slcc-white: #FFFFFF;
	--slcc-font: "Poppins", sans-serif;
	font-family: var(--slcc-font);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--slcc-text);
	-webkit-font-smoothing: antialiased;
}

#slcc *,
#slcc *::before,
#slcc *::after {
	box-sizing: border-box;
}

#slcc [hidden] {
	display: none !important;
}

#slcc p {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--slcc-font);
	color: var(--slcc-text);
	letter-spacing: normal;
	text-transform: none;
}

#slcc a {
	color: var(--slcc-primary);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	font-weight: 500;
	text-decoration: none;
	box-shadow: none;
}

#slcc a:hover,
#slcc a:focus-visible {
	text-decoration: underline;
}

#slcc button {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: var(--slcc-font);
	letter-spacing: normal;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

#slcc button:focus-visible,
#slcc a:focus-visible {
	outline: 2px solid var(--slcc-text);
	outline-offset: 3px;
}

/* ---------- Bottom banner (page stays usable) ---------- */

#slcc .slcc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	/* Highest possible layer: above the Tawk chat bubble and the OneTap
	   accessibility button, which also use the maximum (later element wins). */
	z-index: 2147483647;
	display: flex;
	justify-content: center;
	pointer-events: none; /* clicks pass through the empty space around the card */
}

#slcc .slcc-banner__content {
	pointer-events: auto;
	width: 100%;
	max-width: 1280px;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 32px;
	border-radius: 16px;
	background-color: var(--slcc-white);
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	text-align: left;
}

#slcc .slcc-banner__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	margin: 0;
	border: 0;
	box-shadow: none;
}

#slcc .slcc-banner__text {
	flex: 1;
	min-width: 0;
}

#slcc .slcc-banner__text p {
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5;
}

#slcc .slcc-banner__text p:last-child {
	margin-bottom: 0;
}

#slcc .slcc-banner__title {
	font-size: 20px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

/* ---------- Text link buttons ("Manage Settings", "Reject Non-Essential Cookies") ---------- */

#slcc .slcc-link {
	padding: 0;
	color: var(--slcc-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

#slcc .slcc-link:hover {
	color: var(--slcc-primary);
	background: none;
}

/* ---------- Primary button: orange pill, arrow in a white circle inside it ---------- */

#slcc .slcc-btn {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	gap: 12px;
	padding: 4px 4px 4px 16px;
	border-radius: 50px;
	background-color: var(--slcc-primary);
	color: var(--slcc-white);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: transform 0.3s ease-out;
}

/* Elementor "Float" hover animation, same as the site's buttons. */
#slcc .slcc-btn:hover,
#slcc .slcc-btn:focus-visible {
	transform: translateY(-8px);
	background-color: var(--slcc-primary);
	color: var(--slcc-white);
}

#slcc .slcc-btn__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--slcc-white);
	color: var(--slcc-primary);
}

#slcc .slcc-btn__icon svg {
	display: block;
	width: 24px;
	height: 24px;
}

/* ---------- Preferences window ---------- */

#slcc .slcc-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background-color: rgba(0, 0, 0, 0.4);
}

#slcc .slcc-modal {
	position: relative;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	border-radius: 16px;
	background-color: var(--slcc-white);
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
	text-align: center;
	outline: none;
}

#slcc .slcc-modal__header {
	position: relative;
	padding: 40px 48px 0;
}

#slcc .slcc-modal__title {
	margin: 0;
	padding: 0;
	font-family: var(--slcc-font);
	font-size: 48px;
	font-weight: 200;
	line-height: 1.2;
	color: var(--slcc-text);
	letter-spacing: normal;
	text-transform: none;
}

#slcc .slcc-close {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
	padding: 8px 12px;
	border-radius: 0 16px 0 8px;
	background-color: var(--slcc-surface);
	color: var(--slcc-text);
}

#slcc .slcc-close:hover {
	background-color: var(--slcc-border);
	color: var(--slcc-text);
}

#slcc .slcc-close svg {
	width: 16px;
	height: 16px;
}

#slcc .slcc-modal__body {
	padding: 32px 48px;
}

#slcc .slcc-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: -1px;
	padding: 16px;
	border: 1px solid var(--slcc-border);
}

#slcc .slcc-option__info {
	flex: 1;
	min-width: 0;
	text-align: left;
}

#slcc .slcc-option__title {
	margin-bottom: 4px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

#slcc .slcc-option__desc {
	margin-bottom: 0;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5;
}

#slcc .slcc-modal__actions {
	padding: 0 48px 40px;
}

#slcc .slcc-actions,
#slcc .slcc-modal__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
}

#slcc .slcc-actions {
	flex-shrink: 0;
}

/* ---------- On/off switch ---------- */

#slcc .slcc-switch {
	position: relative;
	display: block;
	flex-shrink: 0;
	width: 56px;
	height: 28px;
	margin: 0;
	cursor: pointer;
}

#slcc .slcc-switch__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: inherit;
	z-index: 1;
}

#slcc .slcc-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 50px;
	background-color: var(--slcc-surface);
	transition: background-color 0.3s ease-in-out;
}

#slcc .slcc-switch__track::after {
	content: "";
	position: absolute;
	top: 4px;
	left: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: var(--slcc-muted);
	transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

#slcc .slcc-switch__input:checked + .slcc-switch__track {
	background-color: var(--slcc-primary-soft);
}

#slcc .slcc-switch__input:checked + .slcc-switch__track::after {
	transform: translateX(28px);
	background-color: var(--slcc-primary);
}

#slcc .slcc-switch__input:focus-visible + .slcc-switch__track {
	outline: 2px solid var(--slcc-text);
	outline-offset: 3px;
}

#slcc .slcc-switch--locked {
	cursor: not-allowed;
}

/* ---------- Responsive ---------- */

/* Skyline's tablet type scale (Elementor tablet breakpoint). */
@media screen and (max-width: 1024px) {
	#slcc {
		font-size: 16px;
	}

	#slcc .slcc-banner__text p,
	#slcc .slcc-option__desc {
		font-size: 16px;
	}

	#slcc .slcc-banner__title {
		font-size: 18px !important;
	}

	#slcc .slcc-option__title {
		font-size: 18px;
	}

	#slcc .slcc-modal__title {
		font-size: 36px;
	}

	#slcc .slcc-btn {
		font-size: 12px;
	}
}

@media screen and (max-width: 991.98px) {
	#slcc .slcc-banner__content {
		flex-wrap: wrap;
		gap: 16px;
		padding: 20px 24px;
	}

	#slcc .slcc-banner__text {
		flex-basis: calc(100% - 72px);
	}

	#slcc .slcc-actions {
		width: 100%;
		justify-content: space-around;
		gap: 16px;
	}

	#slcc .slcc-modal__header {
		padding: 24px 24px 0;
	}

	#slcc .slcc-modal__body {
		padding: 24px;
	}

	#slcc .slcc-modal__actions {
		padding: 0 24px 24px;
		gap: 16px;
	}
}

@media screen and (max-width: 767.98px) {
	#slcc .slcc-banner {
		left: 8px;
		right: 8px;
		bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	}

	#slcc .slcc-banner__content {
		padding: 16px;
	}

	#slcc .slcc-banner__icon {
		display: none;
	}

	#slcc .slcc-banner__text {
		flex-basis: 100%;
	}

	#slcc .slcc-actions,
	#slcc .slcc-modal__actions {
		justify-content: space-between;
		gap: 10px;
	}

	#slcc .slcc-modal__actions {
		flex-wrap: wrap-reverse;
		justify-content: center;
		row-gap: 16px;
	}

	#slcc .slcc-link {
		font-size: 14px;
	}

	#slcc .slcc-modal__title {
		padding: 0 24px;
		font-size: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#slcc *,
	#slcc *::before,
	#slcc *::after {
		transition: none !important;
	}
}
