.arteja-chatbot-root {
	--arteja-chatbot-color: #173b63;
	--arteja-chatbot-lift: 0px;
	position: fixed;
	z-index: 999999;
	bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--arteja-chatbot-lift));
	font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #172b3a;
}

.arteja-chatbot-root.is-right {
	right: max(18px, env(safe-area-inset-right));
}

.arteja-chatbot-root.is-left {
	left: max(18px, env(safe-area-inset-left));
}

.arteja-chatbot-root button,
.arteja-chatbot-root input,
.arteja-chatbot-root textarea,
.arteja-chatbot-root select {
	box-sizing: border-box;
	font: inherit;
}

.arteja-chatbot-launcher {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-left: auto;
	padding: 12px 17px;
	color: #fff;
	background: var(--arteja-chatbot-color);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 37, 59, 0.26);
	cursor: pointer;
}

.is-left .arteja-chatbot-launcher {
	margin-right: auto;
	margin-left: 0;
}

.arteja-chatbot-launcher-icon {
	font-size: 21px;
}

.arteja-chatbot-launcher-text {
	font-weight: 750;
}

.arteja-chatbot-panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 28px));
	max-height: min(690px, calc(100vh - 100px));
	overflow: hidden;
	background: #fff;
	border: 1px solid #dce5ec;
	border-radius: 20px;
	box-shadow: 0 22px 60px rgba(15, 37, 59, 0.25);
}

.is-left .arteja-chatbot-panel {
	right: auto;
	left: 0;
}

.arteja-chatbot-panel.is-minimized {
	bottom: 64px;
}

.arteja-chatbot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 16px;
	color: #fff;
	background: var(--arteja-chatbot-color);
}

.arteja-chatbot-identity {
	display: flex;
	align-items: center;
	gap: 9px;
}

.arteja-chatbot-avatar {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	background: rgba(255, 255, 255, 0.16);
	border-radius: 50%;
}

.arteja-chatbot-controls {
	display: flex;
	gap: 5px;
}

.arteja-chatbot-controls button {
	width: 32px;
	height: 32px;
	padding: 0;
	color: #fff;
	background: transparent;
	border: 0;
	border-radius: 8px;
	font-size: 23px;
	cursor: pointer;
}

.arteja-chatbot-controls button:hover {
	background: rgba(255, 255, 255, 0.14);
}

.arteja-chatbot-progress {
	height: 4px;
	background: #e9eff4;
}

.arteja-chatbot-progress span {
	display: block;
	height: 100%;
	background: #ed7d31;
	transition: width 180ms ease;
}

.arteja-chatbot-body {
	min-height: 290px;
	padding: 18px;
	overflow-y: auto;
	background: #f5f8fb;
}

.arteja-chatbot-message {
	max-width: 88%;
	margin-bottom: 16px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #e1e8ee;
	border-radius: 5px 16px 16px;
	box-shadow: 0 4px 13px rgba(15, 37, 59, 0.05);
}

.arteja-chatbot-choices {
	display: grid;
	gap: 9px;
}

.arteja-chatbot-choice,
.arteja-chatbot-primary,
.arteja-chatbot-secondary {
	width: 100%;
	padding: 11px 13px;
	border-radius: 11px;
	font-weight: 700;
	cursor: pointer;
}

.arteja-chatbot-choice {
	color: var(--arteja-chatbot-color);
	text-align: left;
	background: #fff;
	border: 1px solid #cbd9e4;
}

.arteja-chatbot-choice:hover,
.arteja-chatbot-choice:focus-visible {
	border-color: var(--arteja-chatbot-color);
	background: #edf4fa;
}

.arteja-chatbot-form {
	display: grid;
	gap: 11px;
}

.arteja-chatbot-kayak-list {
	display: grid;
	gap: 9px;
}

.arteja-chatbot-kayak-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 76px;
	gap: 12px;
	align-items: center;
	padding: 11px 12px;
	background: #fff;
	border: 1px solid #cbd9e4;
	border-radius: 11px;
}

.arteja-chatbot-kayak-details {
	display: grid;
	gap: 3px;
	min-width: 0;
}

.arteja-chatbot-kayak-details small {
	color: #607286;
}

.arteja-chatbot-inline-error {
	min-height: 20px;
	margin: 0;
	color: #991b1b;
	font-weight: 650;
}

.arteja-chatbot-form input:not([type="checkbox"]),
.arteja-chatbot-form textarea,
.arteja-chatbot-form select {
	width: 100%;
	padding: 12px;
	color: #172b3a;
	background: #fff;
	border: 1px solid #bdcbd7;
	border-radius: 10px;
	outline: none;
}

.arteja-chatbot-form input:focus,
.arteja-chatbot-form textarea:focus,
.arteja-chatbot-form select:focus {
	border-color: var(--arteja-chatbot-color);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--arteja-chatbot-color) 15%, transparent);
}

.arteja-chatbot-primary {
	color: #fff;
	background: var(--arteja-chatbot-color);
	border: 1px solid var(--arteja-chatbot-color);
}

.arteja-chatbot-secondary {
	margin-top: 12px;
	color: var(--arteja-chatbot-color);
	background: #fff;
	border: 1px solid var(--arteja-chatbot-color);
}

.arteja-chatbot-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 12px;
	background: #fff;
	border: 1px solid #dce5ec;
	border-radius: 10px;
}

.arteja-chatbot-consent input {
	margin-top: 3px;
}

.arteja-chatbot-summary {
	display: grid;
	gap: 8px;
}

.arteja-chatbot-summary-row {
	display: grid;
	gap: 3px;
	padding: 10px 12px;
	background: #fff;
	border-radius: 9px;
}

.arteja-chatbot-summary-row span {
	color: #607286;
	font-size: 12px;
}

.arteja-chatbot-stage-notice,
.arteja-chatbot-faq-answer {
	padding: 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 10px;
}

.arteja-chatbot-submit-message {
	margin: 10px 0;
	padding: 0;
}

.arteja-chatbot-submit-message.is-error {
	padding: 10px 12px;
	color: #991b1b;
	background: #fee2e2;
	border-radius: 9px;
}

.arteja-chatbot-success-numbers {
	padding: 12px;
	color: #166534;
	background: #dcfce7;
	border-radius: 10px;
	font-weight: 800;
}

.arteja-chatbot-loading {
	padding: 10px 14px;
	color: #fff;
	background: var(--arteja-chatbot-color);
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(15, 37, 59, 0.2);
}

.arteja-chatbot-phone {
	display: block;
	margin: 12px 0;
	color: var(--arteja-chatbot-color);
	font-size: 18px;
	font-weight: 800;
}

.arteja-chatbot-footer {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 15px;
	background: #fff;
	border-top: 1px solid #e4ebf0;
}

.arteja-chatbot-link {
	padding: 5px;
	color: var(--arteja-chatbot-color);
	background: transparent;
	border: 0;
	cursor: pointer;
}

.arteja-chatbot-link:disabled {
	visibility: hidden;
}

@media (max-width: 520px) {
	.arteja-chatbot-root {
		right: 10px !important;
		bottom: calc(max(10px, env(safe-area-inset-bottom)) + var(--arteja-chatbot-lift));
		left: 10px !important;
	}

	.arteja-chatbot-launcher {
		margin-right: 0;
		margin-left: auto;
	}

	.arteja-chatbot-panel,
	.is-left .arteja-chatbot-panel {
		position: fixed;
		top: max(10px, env(safe-area-inset-top));
		right: 10px;
		bottom: calc(74px + var(--arteja-chatbot-lift));
		left: 10px;
		width: auto;
		max-height: none;
		border-radius: 16px;
	}

	.arteja-chatbot-body {
		min-height: 0;
		flex: 1;
	}

	.arteja-chatbot-launcher-text {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.arteja-chatbot-progress span {
		transition: none;
	}
}
