/* ========== Floating assist (chat + back to top) ========== */
html.is-assist-scrolling,
html.is-assist-scrolling body {
	scroll-behavior: auto !important;
}

html.is-assist-scrolling [data-reveal],
html.is-assist-scrolling [data-reveal-section],
html.is-assist-scrolling [data-parallax-layer] {
	transition: none !important;
	animation: none !important;
}

.woerland-assist {
	position: fixed;
	right: clamp(0.85rem, 2vw, 1.35rem);
	bottom: clamp(0.85rem, 2vw, 1.35rem);
	z-index: 10050;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.65rem;
	pointer-events: none;
}

.woerland-assist__dock,
.woerland-assist__panel,
.woerland-assist__nudge {
	pointer-events: auto;
}

.woerland-assist__dock {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
}

.woerland-assist__btn {
	width: 3.55rem;
	height: 3.55rem;
	border-radius: 50%;
	border: 0;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: #fff;
	box-shadow: 0 12px 30px rgba(8, 54, 71, 0.22);
	transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.woerland-assist__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(8, 54, 71, 0.3);
}

.woerland-assist__btn--chat {
	background: linear-gradient(145deg, #e9784f, #d75b32 55%, #c24e2a);
	animation: woerland-assist-softpulse 2.8s ease-in-out infinite;
}

.woerland-assist__btn--chat.is-open {
	background: #083647;
	animation: none;
}

.woerland-assist__btn--top {
	background: #0d5064;
	opacity: 0;
	transform: translateY(8px) scale(0.92);
}

.woerland-assist__btn--top.is-visible {
	opacity: 1;
	transform: none;
}

.woerland-assist__btn--top[hidden] {
	display: none;
}

@keyframes woerland-assist-softpulse {
	0%, 100% { box-shadow: 0 12px 30px rgba(215, 91, 50, 0.28); }
	50% { box-shadow: 0 12px 34px rgba(215, 91, 50, 0.48), 0 0 0 8px rgba(215, 91, 50, 0.12); }
}

.woerland-assist__nudge {
	width: min(22rem, calc(100vw - 1.7rem));
	padding: 1.15rem 1.2rem 1.1rem;
	background: #fffaf3;
	border: 1px solid rgba(215, 91, 50, 0.18);
	border-radius: 1.1rem 1.1rem 0.35rem 1.1rem;
	box-shadow: 0 16px 40px rgba(8, 54, 71, 0.16);
	position: relative;
}

.woerland-assist__nudge[hidden] {
	display: none !important;
}

.woerland-assist__nudge-x {
	position: absolute;
	top: 0.45rem;
	right: 0.55rem;
	width: 1.5rem;
	height: 1.5rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7a80;
	font-size: 1.05rem;
	cursor: pointer;
}

.woerland-assist__nudge-title {
	margin: 0 1.2rem 0.35rem 0;
	font-family: var(--w-display, "Cormorant Garamond", Georgia, serif);
	font-size: 1.15rem;
	font-weight: 600;
	color: #083647;
}

.woerland-assist__nudge-body {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: #4a5f6a;
}

.woerland-assist__nudge-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.woerland-assist__nudge-yes,
.woerland-assist__nudge-no {
	border: 0;
	cursor: pointer;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
}

.woerland-assist__nudge-yes {
	background: #d75b32;
	color: #fff;
}

.woerland-assist__nudge-no {
	background: rgba(13, 80, 100, 0.08);
	color: #0d5064;
}

.woerland-assist__panel {
	width: min(28rem, calc(100vw - 1.5rem));
	height: min(42rem, calc(100vh - 6.5rem));
	max-height: min(42rem, calc(100vh - 6.5rem));
	min-height: min(34rem, calc(100vh - 7.5rem));
	display: flex;
	flex-direction: column;
	background: #fffaf3;
	border: 1px solid rgba(13, 80, 100, 0.1);
	border-radius: 1.25rem 1.25rem 0.45rem 1.25rem;
	box-shadow: 0 20px 50px rgba(8, 54, 71, 0.18);
	overflow: hidden;
}

.woerland-assist__panel[hidden] {
	display: none !important;
}

.woerland-assist__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1.05rem 1.1rem;
	background: linear-gradient(120deg, #0d5064 0%, #164d65 55%, #1a5a6e 100%);
	color: #f7f3ea;
}

.woerland-assist__agent {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.woerland-assist__avatar {
	width: 2.7rem;
	height: 2.7rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: linear-gradient(145deg, #f0c4a8, #d75b32);
	color: #fff;
	font-family: var(--w-display, "Cormorant Garamond", Georgia, serif);
	font-size: 1.15rem;
	font-weight: 600;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.woerland-assist__title {
	display: block;
	font-family: var(--w-display, "Cormorant Garamond", Georgia, serif);
	font-size: 1.12rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.1;
}

.woerland-assist__status {
	display: block;
	margin-top: 0.18rem;
	font-size: 0.62rem;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.woerland-assist__status::before {
	content: "";
	display: inline-block;
	width: 0.4rem;
	height: 0.4rem;
	margin-right: 0.35rem;
	border-radius: 50%;
	background: #8fd4a8;
	vertical-align: 0.05rem;
}

.woerland-assist__x {
	width: 1.8rem;
	height: 1.8rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.woerland-assist__log {
	flex: 1;
	overflow: auto;
	padding: 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	min-height: 18rem;
	background: linear-gradient(180deg, #fff6ea 0%, #fffaf3 40%, #fffaf3 100%);
}

.woerland-assist__msg {
	max-width: 90%;
	padding: 0.62rem 0.78rem;
	font-size: 0.8rem;
	line-height: 1.5;
	border-radius: 1rem;
}

.woerland-assist__msg--bot {
	align-self: flex-start;
	background: #fff;
	color: #2a3f48;
	border: 1px solid rgba(13, 80, 100, 0.08);
	border-bottom-left-radius: 0.25rem;
	box-shadow: 0 4px 14px rgba(8, 54, 71, 0.05);
}

.woerland-assist__msg--user {
	align-self: flex-end;
	background: linear-gradient(145deg, #1a5f74, #0d5064);
	color: #f7f3ea;
	border-bottom-right-radius: 0.25rem;
}

.woerland-assist__typing {
	align-self: flex-start;
	font-size: 0.68rem;
	color: #6b7a80;
	font-style: italic;
	padding: 0.15rem 0.35rem;
}

.woerland-assist__quote-link {
	align-self: flex-start;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #d75b32;
	text-decoration: none;
	margin: -0.1rem 0 0.2rem 0.15rem;
}

.woerland-assist__quote-link:hover {
	text-decoration: underline;
}

.woerland-assist__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding: 0 0.9rem 0.7rem;
}

.woerland-assist__chip {
	border: 1px solid rgba(215, 91, 50, 0.28);
	background: #fff;
	color: #0d5064;
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 0.38rem 0.65rem;
	border-radius: 999px;
	cursor: pointer;
}

.woerland-assist__chip:hover {
	background: rgba(215, 91, 50, 0.08);
	border-color: #d75b32;
	color: #c24e2a;
}

.woerland-assist__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.45rem;
	padding: 0.7rem 0.8rem 0.85rem;
	border-top: 1px solid rgba(13, 80, 100, 0.08);
	background: #fff;
}

.woerland-assist__form input {
	border: 1px solid rgba(13, 80, 100, 0.14);
	border-radius: 999px;
	padding: 0.58rem 0.9rem;
	font: inherit;
	font-size: 0.8rem;
	color: #083647;
	background: #fffaf3;
}

.woerland-assist__form input:focus {
	outline: 2px solid rgba(215, 91, 50, 0.35);
	outline-offset: 1px;
}

.woerland-assist__form button {
	border: 0;
	border-radius: 999px;
	background: #d75b32;
	color: #fff;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 0 1rem;
	cursor: pointer;
}

@media (max-width: 640px) {
	.woerland-assist__btn {
		width: 3.15rem;
		height: 3.15rem;
	}

	.woerland-assist__panel {
		width: min(100vw - 1rem, 28rem);
		height: min(78vh, 36rem);
		max-height: min(78vh, 36rem);
		min-height: min(68vh, 30rem);
	}

	.woerland-assist__log {
		min-height: 14rem;
	}
}
