body.gdv-desk-standalone {
	margin: 0;
	background: #f3f4f6;
	color: #1d2327;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

body.gdv-desk-standalone > :not(.gdv-desk-page):not(script):not(style):not(#gdv-chat-lightbox) {
	display: none !important;
}

body.gdv-desk-standalone > #gdv-chat-lightbox {
	display: flex !important;
}

body.gdv-desk-standalone > #gdv-chat-lightbox[hidden] {
	display: none !important;
}

.gdv-desk-page {
	min-height: 100vh;
	min-height: 100dvh;
	max-width: 720px;
	margin: 0 auto;
	padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

.gdv-desk-app {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.gdv-desk-app[hidden],
.gdv-desk-gate[hidden],
.gdv-desk-app .gdv-chat-incoming[hidden],
.gdv-desk-app .gdv-chat-pane-send[hidden],
.gdv-desk-app #gdv-chat-end[hidden] {
	display: none !important;
}

.gdv-desk-app:not([hidden]) {
	animation: gdv-desk-in 0.28s ease;
}

@keyframes gdv-desk-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.gdv-desk-gate {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 32px 20px;
	background: transparent;
	border: 0;
	min-height: 70dvh;
	text-align: center;
}

.gdv-desk-gate-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.gdv-desk-gate .gdv-desk-who-wave {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	margin-bottom: 14px;
}

.gdv-desk-gate-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: #1d2327;
}

.gdv-desk-gate-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 18px;
}

.gdv-desk-gate-dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #0f7b4a;
	animation: gdv-desk-dot 1s infinite ease-in-out;
}

.gdv-desk-gate-dots span:nth-child(2) {
	animation-delay: 0.15s;
}

.gdv-desk-gate-dots span:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes gdv-desk-dot {
	0%,
	80%,
	100% {
		opacity: 0.25;
		transform: scale(0.85);
	}
	40% {
		opacity: 1;
		transform: scale(1);
	}
}

.gdv-desk-gate.is-error .gdv-desk-gate-dots {
	display: none;
}

.gdv-desk-standalone .gdv-muted {
	color: #646970;
}

.gdv-desk-gate .gdv-chat-error {
	color: #b32d2e;
	margin-top: 12px;
}

.gdv-desk-greet {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.gdv-desk-who-wave,
.gdv-desk-who-wave img.emoji,
.gdv-desk-who-wave img.wp-smiley {
	display: block !important;
	flex: 0 0 18px;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	vertical-align: middle;
}

.gdv-desk-who {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 13px;
	color: #1d2327;
	white-space: nowrap;
}

.gdv-desk-who-label {
	font-size: 13px;
	font-weight: 500;
	color: #8c8f94;
}

.gdv-desk-who-name {
	font-weight: 700;
}

.gdv-desk-standalone .button,
.gdv-desk-app .button {
	appearance: none;
	border: 1px solid #c3c4c7;
	background: #fff;
	color: #1d2327;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	min-height: 44px;
}

.gdv-desk-standalone .button-primary,
.gdv-desk-app .button-primary {
	background: #0f7b4a;
	border-color: #0f7b4a;
	color: #fff;
}

.gdv-desk-app .gdv-chat-incoming {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	background: #fff8e5;
	border: 1px solid #dba617;
	border-radius: 12px;
	padding: 12px;
	margin: 0 0 10px;
}

.gdv-desk-app .gdv-chat-incoming p {
	margin: 4px 0 0;
	word-break: break-word;
}

.gdv-desk-app .gdv-chat-incoming-actions {
	display: flex;
	gap: 8px;
}

.gdv-desk-app .gdv-chat-incoming-actions .button {
	flex: 1;
}

.gdv-desk-app .gdv-chat-toolbar,
.gdv-desk-bar {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 13px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	padding: 10px 14px;
	box-sizing: border-box;
}

.gdv-desk-bar-self {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-width: 0;
	margin-left: 0;
	flex: 0 0 auto;
}

.gdv-desk-bar-self .gdv-desk-greet {
	min-width: 0;
}

.gdv-desk-bar-self .gdv-desk-who {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gdv-desk-bar-team {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px 10px;
	min-width: 0;
	width: 100%;
	flex: 0 0 auto;
}

.gdv-desk-app .gdv-desk-bar-label {
	flex: 0 0 auto;
	text-transform: none;
	letter-spacing: 0;
	font-size: 13px;
	font-weight: 600;
	color: #646970;
}

.gdv-desk-app .gdv-chat-agents {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
	touch-action: pan-x;
}

.gdv-desk-app .gdv-chat-agents::-webkit-scrollbar {
	height: 3px;
}

.gdv-desk-app .gdv-chat-agents::-webkit-scrollbar-thumb {
	background: #c3c4c7;
	border-radius: 999px;
}

.gdv-desk-app .gdv-chat-agent-chip,
.gdv-desk-app .gdv-chat-agents-empty {
	flex: 0 0 auto;
}

.gdv-desk-app .gdv-chat-mute {
	margin-left: 0;
	min-height: 36px;
	height: 36px;
	padding: 0 10px !important;
	border-radius: 999px;
}

.gdv-desk-app .gdv-chat-mute-label {
	display: none;
}

.gdv-desk-app .gdv-chat-ready,
.gdv-desk-app .gdv-chat-live-flag {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gdv-desk-app .gdv-chat-desk {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 14px;
	overflow: hidden;
	flex: 1 1 auto;
	height: 600px;
	max-height: min(600px, calc(100dvh - 220px));
	min-height: 0;
}

.gdv-desk-app .gdv-chat-list-col {
	max-height: none;
	border-right: 0;
	border-bottom: 1px solid #dcdcde;
	min-height: 0;
	overflow: hidden;
}

.gdv-desk-app .gdv-chat-pane {
	min-height: 0;
	height: auto;
	flex: 1 1 auto;
	overflow: hidden;
}

.gdv-desk-app .gdv-chat-item {
	padding: 12px 8px 14px 14px;
	position: relative;
	line-height: 1.45;
}

.gdv-desk-app .gdv-chat-item-agent {
	right: 8px;
}

.gdv-desk-app .gdv-chat-item-row {
	flex-wrap: nowrap;
	margin-bottom: 2px;
	padding-right: 0;
}

.gdv-desk-app .gdv-chat-item small {
	margin-top: 3px;
	line-height: 1.4;
}

.gdv-desk-pane-headwrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 4px 10px;
	padding: 6px 10px;
	border-bottom: 1px solid #dcdcde;
	box-sizing: border-box;
}

.gdv-desk-thread-nav {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	align-items: center;
	min-width: 0;
}

.gdv-desk-thread-nav:not(:has(#gdv-desk-back)) {
	display: none;
}

.gdv-desk-thread-nav-start {
	min-width: 0;
}

.gdv-desk-pane-side {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 6px;
	flex: 0 0 auto;
	min-width: max-content;
	overflow: visible;
}

.gdv-desk-pane-side:not(:has(#gdv-chat-end:not([hidden]))):not(:has(.gdv-chat-head-agent)) {
	display: none;
}

.gdv-desk-app .gdv-chat-pane-head {
	grid-column: 1 / -1;
	grid-row: 2;
	min-width: 0;
	width: 100%;
	padding: 0;
	border-bottom: 0;
}

.gdv-desk-app .gdv-chat-head-bar {
	width: 100%;
	font-size: 12px;
	flex-wrap: nowrap;
}

.gdv-desk-app .gdv-chat-head-bits {
	max-width: none;
}

.gdv-desk-app .gdv-chat-head-watch {
	margin-top: 6px;
}

.gdv-desk-app .gdv-chat-head-url {
	margin-top: 0;
	max-width: 100%;
	font-size: 12px;
	text-align: left;
}

.gdv-desk-back {
	display: inline-flex;
	align-items: center;
	border: 0;
	background: none;
	color: #0f7b4a;
	font-weight: 700;
	padding: 0;
	min-height: 32px;
	font-size: 14px;
}

.gdv-desk-app .gdv-chat-pane-msgs {
	min-height: 0;
	flex: 1 1 auto;
	padding: 12px;
}

.gdv-desk-app .gdv-chat-avatar,
.gdv-desk-app .gdv-chat-avatar.is-sm,
.gdv-desk-app .gdv-chat-avatar.is-lg {
	width: 28px !important;
	height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	flex: 0 0 28px !important;
	overflow: hidden;
}

.gdv-desk-app .gdv-chat-avatar.is-lg {
	width: 40px !important;
	height: 40px !important;
	max-width: 40px !important;
	max-height: 40px !important;
	flex: 0 0 40px !important;
}

.gdv-desk-app .gdv-chat-avatar svg,
.gdv-desk-app .gdv-chat-avatar img {
	width: 100% !important;
	height: 100% !important;
	max-width: 40px !important;
	display: block;
	object-fit: cover;
}

.gdv-desk-app .gdv-chat-row {
	max-width: min(420px, 72%);
}

.gdv-desk-app .gdv-chat-pane-send {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	position: sticky;
	bottom: 0;
	background: #fff;
}

.gdv-desk-compose {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.gdv-desk-app .gdv-chat-attach {
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #646970;
	cursor: pointer;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gdv-desk-app .gdv-chat-attach svg {
	display: block;
	width: 22px;
	height: 22px;
}

.gdv-desk-app .gdv-chat-attach:hover,
.gdv-desk-app .gdv-chat-attach:focus-visible {
	color: #0f7b4a;
	background: #f0f0f1;
	outline: none;
}

.gdv-desk-app .gdv-chat-attach:disabled {
	opacity: 0.45;
	cursor: default;
	background: transparent;
}

.gdv-desk-app .gdv-chat-attach.is-loading {
	opacity: 1;
	cursor: wait;
	color: transparent;
}

.gdv-desk-app .gdv-chat-attach.is-loading svg {
	opacity: 0;
}

.gdv-desk-app .gdv-chat-attach.is-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(15, 123, 74, 0.25);
	border-top-color: #0f7b4a;
	border-radius: 50%;
	animation: gdv-chat-spin 0.6s linear infinite;
}

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

.gdv-desk-app .gdv-chat-pane-send input[type="text"],
.gdv-desk-compose input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	border: 1px solid #c3c4c7;
	border-radius: 10px;
	padding: 11px 12px;
	font-size: 16px;
}

.gdv-desk-app .gdv-chat-pane-send input:disabled,
.gdv-desk-app .gdv-chat-pane-send button:disabled,
.gdv-desk-app .gdv-chat-pane-send.is-locked input,
.gdv-desk-app .gdv-chat-pane-send.is-locked button {
	opacity: 0.55;
	cursor: default;
}

.gdv-desk-send {
	appearance: none;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #0f7b4a;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.gdv-desk-send svg {
	display: block;
	width: 22px;
	height: 22px;
}

.gdv-desk-app #gdv-chat-end {
	width: auto;
	flex: 0 0 auto;
	align-self: flex-start;
	min-height: 32px;
	height: 32px;
	white-space: nowrap;
	padding: 0 12px;
	font-size: 13px;
	border-radius: 999px;
}

.gdv-desk-app #gdv-chat-end.is-mailing {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.gdv-desk-app #gdv-chat-end.is-mailing::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid rgba(179, 45, 46, 0.28);
	border-top-color: #b32d2e;
	border-radius: 50%;
	animation: gdv-chat-spin 0.6s linear infinite;
}

@media (min-width: 760px) {
	.gdv-desk-page {
		max-width: 1280px;
		padding: 16px;
	}

	.gdv-desk-app .gdv-chat-desk {
		display: grid;
		grid-template-columns: 340px minmax(0, 1fr);
		grid-template-rows: minmax(0, 1fr);
		height: 600px;
		max-height: min(600px, calc(100dvh - 220px));
		min-height: 0;
	}

	.gdv-desk-app .gdv-chat-list-col {
		display: flex;
		flex-direction: column;
		border-right: 1px solid #dcdcde;
		border-bottom: 0;
		height: 100%;
		max-height: none;
		overflow: hidden;
		min-height: 0;
	}

	.gdv-desk-app .gdv-chat-list-search {
		flex: 0 0 auto;
		padding: 8px;
		border-bottom: 1px solid #f0f0f1;
		box-sizing: border-box;
	}

	.gdv-desk-app .gdv-chat-list {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
	}

	.gdv-desk-app .gdv-chat-pane {
		display: flex;
		flex-direction: column;
		height: 100%;
		min-height: 0;
		overflow: hidden;
	}

	.gdv-desk-app .gdv-desk-pane-headwrap {
		flex: 0 0 auto;
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 10px;
		padding: 6px 12px;
		box-sizing: border-box;
	}

	.gdv-desk-thread-nav {
		display: none;
	}

	.gdv-desk-app .gdv-chat-pane-head {
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
		grid-column: auto;
		grid-row: auto;
	}

	.gdv-desk-app .gdv-chat-head-bar,
	.gdv-desk-app .gdv-chat-head-url {
		font-size: 13px;
	}

	.gdv-desk-app .gdv-chat-head-watch {
		margin-top: 4px;
	}

	.gdv-desk-pane-side {
		grid-column: auto;
		grid-row: auto;
		overflow: visible;
	}

	.gdv-desk-app .gdv-desk-pane-side .gdv-chat-pane-actions {
		display: flex;
		align-items: flex-start;
		justify-content: flex-end;
		gap: 6px;
	}

	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-transfer-btn {
		height: 22px;
		min-height: 22px;
		padding: 0 10px;
		line-height: 20px;
		font-size: 11px;
		font-weight: 600;
		border-radius: 4px;
		background: #2271b1;
		border-color: #2271b1;
		color: #fff;
	}

	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-transfer-btn:hover,
	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-transfer-btn:focus {
		background: #135e96;
		border-color: #135e96;
		color: #fff;
	}

	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-end {
		height: 22px;
		min-height: 22px;
		padding: 0 10px;
		line-height: 20px;
		font-size: 11px;
		font-weight: 600;
		border-radius: 4px;
		background: #d63638;
		border-color: #d63638;
		color: #fff;
	}

	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-end:hover,
	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-end:focus {
		background: #b32d2e;
		border-color: #b32d2e;
		color: #fff;
	}

	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-end.is-ended,
	.gdv-desk-app .gdv-desk-pane-side #gdv-chat-end:disabled {
		background: #f0f0f1;
		border-color: #c3c4c7;
		color: #50575e;
		opacity: 0.5;
		box-shadow: none;
		cursor: default;
	}

	.gdv-desk-app .gdv-chat-pane-msgs {
		flex: 1 1 auto;
		min-height: 0;
	}

	.gdv-desk-app .gdv-chat-pane-send {
		flex: 0 0 auto;
	}

	.gdv-desk-back {
		display: none;
	}

	.gdv-desk-app .gdv-chat-pane-send input[type="text"] {
		flex: 1 1 auto;
		width: auto;
	}
}

@media (max-width: 759px) {
	.gdv-desk-app .gdv-chat-desk.is-threaded .gdv-chat-list-col {
		display: none;
	}

	.gdv-desk-app .gdv-chat-desk:not(.is-threaded) .gdv-chat-pane {
		display: none;
	}

	.gdv-desk-app .gdv-chat-desk.is-threaded {
		height: min(600px, calc(100dvh - 160px));
		max-height: min(600px, calc(100dvh - 160px));
		min-height: 0;
	}

	.gdv-desk-app .gdv-chat-pane-msgs {
		flex: 1;
		min-height: 0;
	}

	.gdv-desk-app .gdv-chat-row {
		max-width: 88%;
	}

	.gdv-desk-app .gdv-chat-head-bar {
		flex-wrap: wrap;
	}

	.gdv-desk-app .gdv-chat-head-who {
		flex: 1 1 100%;
	}

	.gdv-desk-app .gdv-chat-head-bits {
		flex: 1 1 100%;
		max-width: 100%;
		margin-top: 2px;
	}
}
