.dsc-widget,
.dsc-widget * {
	box-sizing: border-box;
}

.dsc-widget {
	--dsc-black: #111111;
	--dsc-soft-black: #1b1b1b;
	--dsc-text: #181818;
	--dsc-muted: #6d6d6d;
	--dsc-border: #dddddd;
	position: fixed !important;
	bottom: 20px !important;
	width: 64px;
	height: 64px;
	z-index: 2147483000 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.dsc-widget--right { right: 20px; }
.dsc-widget--left { left: 20px; }

.dsc-widget .dsc-launcher {
	display: grid;
	width: 64px !important;
	min-width: 64px !important;
	max-width: 64px !important;
	height: 64px !important;
	min-height: 64px !important;
	max-height: 64px !important;
	margin: 0 !important;
	padding: 0 !important;
	place-items: center !important;
	border: 0 !important;
	border-width: 0 !important;
	border-radius: 100px !important;
	background: var(--dsc-black) !important;
	background-image: none !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .16) !important;
	color: #fff !important;
	cursor: pointer !important;
	font-size: 0 !important;
	line-height: 0 !important;
	overflow: hidden !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	user-select: none !important;
	-webkit-user-select: none !important;
	position: relative !important;
	transition: transform .18s ease, background .18s ease;
}

.dsc-widget .dsc-launcher:hover { background: #252525 !important; transform: translateY(-2px); }
.dsc-launcher:focus-visible,
.dsc-submit:focus-visible,
.dsc-field input:focus-visible,
.dsc-field textarea:focus-visible { outline: 3px solid rgba(17, 17, 17, .22); outline-offset: 2px; }

.dsc-widget .dsc-launcher svg {
	display: block !important;
	width: 29px !important;
	min-width: 29px !important;
	max-width: 29px !important;
	height: 29px !important;
	min-height: 29px !important;
	max-height: 29px !important;
	margin: 0 !important;
	padding: 0 !important;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.9;
}

.dsc-widget .dsc-launcher .dsc-launcher__close { display: none !important; }
.dsc-widget.is-open .dsc-launcher .dsc-launcher__chat { display: none !important; }
.dsc-widget.is-open .dsc-launcher .dsc-launcher__close { display: block !important; }

.dsc-panel {
	position: absolute;
	right: 0;
	bottom: 78px;
	width: min(390px, calc(100vw - 32px));
	max-height: min(720px, calc(100vh - 120px));
	overflow-x: hidden;
	overflow-y: auto;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
	opacity: 0;
	transform: translateY(14px) scale(.98);
	transform-origin: bottom right;
	pointer-events: none;
	visibility: hidden;
	transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.dsc-widget--left .dsc-panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.dsc-widget.is-open .dsc-panel {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
	visibility: visible;
}

.dsc-widget .dsc-panel__header {
	padding: 12px 22px 16px;
	border-radius: 19px 19px 0 0;
	background: var(--dsc-black);
	color: #fff;
}

.dsc-panel__topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: center;
}

.dsc-panel__topbar h2 {
	margin: 0;
	padding: 0;
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
}

.dsc-widget .dsc-panel__intro { padding-top: 8px; text-align: center; }

.dsc-panel__icon {
	display: grid;
	width: 40px;
	height: 40px;
	margin: 0 auto 8px;
	place-items: center;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 15px;
	background: var(--dsc-soft-black);
}

.dsc-panel__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.dsc-panel__heading { margin: 0; color: #fff; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.dsc-panel__subheading { margin: 3px 0 0; color: rgba(255,255,255,.68); font-size: 14px; }

.dsc-widget .dsc-form { padding: 18px 22px !important; }
.dsc-widget .dsc-field { margin-bottom: 12px !important; }
.dsc-widget .dsc-field label { display: block; margin: 0 0 5px !important; color: var(--dsc-text); font-size: 14px; font-weight: 600; }

.dsc-field input,
.dsc-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 13px;
	border: 1px solid var(--dsc-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	color: var(--dsc-text);
	font: inherit;
	font-size: 16px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.dsc-widget .dsc-field input { height: 44px !important; min-height: 44px !important; }
.dsc-widget .dsc-field textarea { height: 100px !important; min-height: 100px !important; resize: vertical; }
.dsc-field input:hover,
.dsc-field textarea:hover { border-color: #bdbdbd; }
.dsc-field input:focus,
.dsc-field textarea:focus { border-color: var(--dsc-black); box-shadow: 0 0 0 3px rgba(17,17,17,.08); outline: 0; }
.dsc-widget .dsc-field input[aria-invalid="true"],
.dsc-widget .dsc-field textarea[aria-invalid="true"] {
	border-color: #d63638 !important;
	background-color: #fffafa !important;
	box-shadow: 0 0 0 1px #d63638 !important;
}

.dsc-widget .dsc-submit {
	display: flex !important;
	width: 100% !important;
	min-height: 48px !important;
	align-items: center !important;
	justify-content: center !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	gap: 9px !important;
	padding: 12px 18px !important;
	border: 0 !important;
	border-radius: 11px !important;
	background: var(--dsc-black) !important;
	color: #fff !important;
	font: inherit;
	font-weight: 650;
	line-height: 1.3 !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	transition: background .15s ease, transform .15s ease;
}

.dsc-widget .dsc-submit:hover { background: #292929 !important; }
.dsc-widget .dsc-submit:active { transform: translateY(1px); }
.dsc-widget .dsc-submit:disabled { cursor: wait !important; opacity: .7; }

.dsc-widget .dsc-submit [data-dsc-submit-text] {
	display: inline-block !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 1 auto !important;
	white-space: nowrap !important;
}

.dsc-widget .dsc-spinner {
	display: none !important;
	width: 17px !important;
	min-width: 17px !important;
	max-width: 17px !important;
	height: 17px !important;
	min-height: 17px !important;
	max-height: 17px !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 17px !important;
	border: 2px solid rgba(255,255,255,.4) !important;
	border-top-color: #fff !important;
	border-radius: 50% !important;
	animation: dsc-spin .65s linear infinite;
}

.dsc-widget .dsc-form.is-sending .dsc-spinner { display: inline-block !important; }
.dsc-status { min-height: 0; margin: 12px 0 0; color: #167443; font-size: 14px; text-align: center; }
.dsc-status:empty { margin: 0; }
.dsc-status.is-error { color: #a62121; }
.dsc-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@keyframes dsc-spin { to { transform: rotate(360deg); } }

@media (max-width: 520px) {
	.dsc-widget { bottom: 16px !important; }
	.dsc-widget--right { right: 16px; left: auto; }
	.dsc-widget--left { right: auto; left: 16px; }
	.dsc-panel,
	.dsc-widget--left .dsc-panel { position: fixed; right: 16px; bottom: 96px; left: 16px; width: auto; max-height: calc(100vh - 112px); }
	.dsc-widget .dsc-panel__header { padding: 10px 20px 14px; }
	.dsc-widget .dsc-panel__intro { padding-top: 7px; }
	.dsc-panel__icon { display: none; }
	.dsc-panel__heading { font-size: 22px; }
	.dsc-widget .dsc-form { padding: 16px 20px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.dsc-panel,
	.dsc-launcher,
	.dsc-submit { transition: none; }
}
