.zsk-brief-chat {
	--zsk-chat-accent: #ff4d2e;
	--zsk-chat-bg: rgba(26, 3, 131, 0.8);
	--zsk-chat-panel: rgb(0 0 0 / 14%);
	--zsk-chat-bubble: rgb(0 0 0 / 20%);
	width: min(100%, 760px);
	height: min(720px, 82vh);
	min-height: 560px;
	display: grid;
	grid-template-rows: auto 1fr auto;
	overflow: hidden;
	background: var(--zsk-chat-bg);
	color: #fff;
	box-shadow: 0 20px 70px rgb(0 0 0 / 18%);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
}

.zsk-brief-chat *,
.zsk-brief-chat *::before,
.zsk-brief-chat *::after {
	box-sizing: border-box;
}

.zsk-brief-chat .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.zsk-brief-chat__header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--zsk-chat-panel);
}

.zsk-brief-chat__header strong,
.zsk-brief-chat__header small {
	display: block;
}

.zsk-brief-chat__header small {
	color: #23df81;
	font-size: 12px;
}

.zsk-brief-chat__avatar {
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 50%;
	object-fit: cover;
}

.zsk-brief-chat__messages {
	overflow: auto;
	padding: 34px 20px;
	scrollbar-color: #777 transparent;
	scrollbar-width: thin;
}

.zsk-brief-chat__bubble {
	width: fit-content;
	max-width: min(82%, 560px);
	margin: 0 0 14px;
	padding: 13px 16px;
	border: 1px solid rgb(255 255 255 / 7%);
	border-radius: 15px;
	background: var(--zsk-chat-bubble);
	white-space: pre-wrap;
}

.zsk-brief-chat__bubble--user {
	margin-left: auto;
	background: var(--zsk-chat-accent);
	border-color: transparent;
}

.zsk-brief-chat__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 22px;
}

.zsk-brief-chat__choice,
.zsk-brief-chat__submit,
.zsk-brief-chat__restart {
	appearance: none;
	border: 1px solid var(--zsk-chat-accent);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	font: inherit;
}

.zsk-brief-chat__choice {
	padding: 10px 15px;
}

.zsk-brief-chat__choice:hover,
.zsk-brief-chat__choice:focus-visible,
.zsk-brief-chat__submit:hover,
.zsk-brief-chat__submit:focus-visible {
	background: var(--zsk-chat-accent);
	outline: none;
}

.zsk-brief-chat__composer {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 16px 20px;
	border-top: 1px solid rgb(255 255 255 / 8%);
	background: var(--zsk-chat-panel);
}

.zsk-brief-chat__composer[hidden] {
	display: none;
}

.zsk-brief-chat__input {
	width: 100%;
	min-height: 46px;
	max-height: 120px;
	resize: none;
	padding: 11px 16px;
	border: 1px solid var(--zsk-chat-accent);
	border-radius: 24px;
	background: transparent;
	color: #fff;
	font: inherit;
	outline: none;
}

.zsk-brief-chat__input:focus {
	box-shadow: 0 0 0 3px rgb(255 77 46 / 20%);
}

.zsk-brief-chat__input::placeholder {
	color: rgb(255 255 255 / 72%);
	opacity: 1;
}

.zsk-brief-chat-modal {
	width: min(760px, calc(100% - 32px));
	max-width: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.zsk-brief-chat-modal::backdrop {
	background: rgb(0 0 0 / 62%);
}

.zsk-brief-chat-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #362096;
	color: #fff;
	cursor: pointer;
	transition: background-color 180ms ease;
}

.zsk-brief-chat-modal__close::before,
.zsk-brief-chat-modal__close::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	border-radius: 999px;
	background: currentcolor;
	transform-origin: center;
}

.zsk-brief-chat-modal__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.zsk-brief-chat-modal__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.zsk-brief-chat-modal__close:hover,
.zsk-brief-chat-modal__close:focus-visible {
	background: #ff4d2e;
}

.zsk-brief-chat-modal__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.zsk-brief-chat-modal .zsk-brief-chat {
	width: 100%;
	height: min(720px, calc(100vh - 32px));
	min-height: 0;
}

.zsk-brief-chat__send {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--zsk-chat-accent);
	color: #fff;
	cursor: pointer;
}

.zsk-brief-chat__send svg {
	width: 25px;
	height: 25px;
	fill: currentcolor;
	transform: translateX(1px);
}

.zsk-brief-chat__website {
	position: absolute !important;
	left: -9999px !important;
}

.zsk-brief-chat__summary {
	margin: 8px 0 20px;
	padding: 18px;
	border: 1px solid rgb(255 255 255 / 12%);
	border-radius: 15px;
	background: var(--zsk-chat-bubble);
}

.zsk-brief-chat__summary p {
	margin: 0 0 13px;
}

.zsk-brief-chat__consent {
	display: block;
	margin: 18px 0 14px;
	font-size: 13px;
}

.zsk-brief-chat__consent a {
	color: #fff;
	text-decoration: underline;
}

.zsk-brief-chat__consent.is-error {
	color: #ff8a78;
}

.zsk-brief-chat__submit,
.zsk-brief-chat__restart {
	padding: 11px 18px;
	background: var(--zsk-chat-accent);
}

.zsk-brief-chat__submit:disabled {
	opacity: .65;
	cursor: wait;
}

.zsk-brief-chat__restart {
	display: block;
	margin: 0 0 20px;
}

@media (max-width: 640px) {
	.zsk-brief-chat {
		height: 78vh;
		min-height: 520px;
	}

	.zsk-brief-chat__messages {
		padding: 24px 14px;
	}

	.zsk-brief-chat__composer,
	.zsk-brief-chat__header {
		padding: 14px;
	}

	.zsk-brief-chat__bubble {
		max-width: 90%;
	}

	.zsk-brief-chat-modal {
		width: calc(100% - 16px);
	}

	.zsk-brief-chat-modal .zsk-brief-chat {
		height: calc(100vh - 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zsk-brief-chat * {
		scroll-behavior: auto !important;
	}
}
