.adz-chat {
	--adz-ink: #111111;
	--adz-accent: #ed174c;
	--adz-accent-dark: #c80f3d;
	--adz-panel: #ffffff;
	--adz-soft: #fff0f3;
	--adz-border: #dedede;
	--adz-shadow: 0 18px 55px rgba(0, 0, 0, .28);
	color: var(--adz-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.45;
	position: relative;
	z-index: 99999;
}

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

.adz-chat__launcher {
	align-items: center;
	background: var(--adz-accent);
	border: 0;
	border-radius: 999px;
	bottom: 22px;
	box-shadow: var(--adz-shadow);
	color: #fff;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-weight: 700;
	gap: 10px;
	min-height: 56px;
	padding: 0 20px;
	position: fixed;
	right: 22px;
}

.adz-chat__launcher:hover, .adz-chat__launcher:focus-visible { background: var(--adz-accent-dark); }
.adz-chat__launcher:focus-visible, .adz-chat__close:focus-visible, .adz-chat__choice:focus-visible { outline: 3px solid #f2b84b; outline-offset: 3px; }
.adz-chat__launcher-logo { background: #fff; border-radius: 50%; height: 28px; object-fit: contain; padding: 2px; width: 28px; }

.adz-chat__panel {
	background: var(--adz-panel);
	border: 1px solid var(--adz-border);
	border-radius: 18px;
	bottom: 92px;
	box-shadow: var(--adz-shadow);
	display: flex;
	flex-direction: column;
	max-height: min(650px, calc(100vh - 120px));
	max-width: calc(100vw - 28px);
	overflow: hidden;
	position: fixed;
	right: 22px;
	width: 370px;
}

.adz-chat__panel[hidden] { display: none; }
.adz-chat__header { align-items: center; background: var(--adz-accent); color: #fff; display: flex; justify-content: space-between; padding: 16px 18px; }
.adz-chat__brand { align-items: center; display: flex; gap: 11px; }
.adz-chat__logo { background: #fff; border-radius: 9px; height: 38px; object-fit: contain; padding: 3px; width: 38px; }
.adz-chat__eyebrow { color: #ffe0e8; font-size: 12px; font-weight: 700; letter-spacing: .12em; margin: 0 0 3px; }
.adz-chat__header h2 { color: #fff; font-size: 20px; line-height: 1.25; margin: 0; }
.adz-chat__close { background: transparent; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font: inherit; font-size: 28px; line-height: 1; min-height: 40px; min-width: 40px; }
.adz-chat__messages { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 170px; overflow-y: auto; padding: 18px; }
.adz-chat__bubble { border-radius: 14px; margin: 0; max-width: 92%; padding: 11px 13px; white-space: pre-wrap; }
.adz-chat__bubble--assistant { align-self: flex-start; background: var(--adz-soft); }
.adz-chat__bubble--visitor { align-self: flex-end; background: var(--adz-ink); color: #fff; }
.adz-chat__options { border-top: 1px solid var(--adz-border); display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; padding: 14px 18px; }
.adz-chat__choice { background: #fff; border: 1px solid var(--adz-ink); border-radius: 10px; color: var(--adz-ink); cursor: pointer; display: block; font: inherit; font-size: 15px; font-weight: 650; padding: 10px 12px; text-align: left; text-decoration: none; }
.adz-chat__choice:hover { background: var(--adz-soft); border-color: var(--adz-accent); color: var(--adz-accent-dark); }
.adz-chat__choice--primary { background: var(--adz-accent); color: #fff; text-align: center; }
.adz-chat__choice--primary:hover { background: var(--adz-accent-dark); color: #fff; }
.adz-chat__note { border-top: 1px solid var(--adz-border); color: #536878; font-size: 13px; margin: 0; padding: 10px 18px; }

@media (max-width: 480px) {
	.adz-chat__launcher { bottom: 14px; right: 14px; }
	.adz-chat__panel { bottom: 82px; max-height: calc(100vh - 100px); right: 14px; width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
	.adz-chat *, .adz-chat *::before, .adz-chat *::after { scroll-behavior: auto !important; }
}
