.techromz-aiba {
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: Arial, sans-serif;
}

.techromz-aiba--right {
	right: 24px;
}

.techromz-aiba--left {
	left: 24px;
}

.techromz-aiba__launcher {
	border: 0;
	border-radius: 999px;
	padding: 14px 20px;
	background: var(--techromz-aiba-primary, #6d4aff);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.techromz-aiba__launcher:hover,
.techromz-aiba__launcher:focus {
	opacity: 0.92;
	outline: 2px solid transparent;
}

.techromz-aiba__panel {
	position: absolute;
	bottom: 64px;
	width: min(360px, calc(100vw - 32px));
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.techromz-aiba--right .techromz-aiba__panel {
	right: 0;
}

.techromz-aiba--left .techromz-aiba__panel {
	left: 0;
}

.techromz-aiba__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	background: var(--techromz-aiba-primary, #6d4aff);
	color: #fff;
}

.techromz-aiba__header h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: inherit;
}

.techromz-aiba__close {
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.techromz-aiba__content {
	padding: 18px;
}

.techromz-aiba__welcome {
	margin: 0 0 14px;
	font-size: 15px;
	line-height: 1.5;
	color: #222;
}

.techromz-aiba__privacy {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #f5f5f5;
	font-size: 12px;
	line-height: 1.5;
	color: #555;
}

.techromz-aiba__status {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #666;
}

@media (max-width: 480px) {
	.techromz-aiba {
		bottom: 16px;
	}

	.techromz-aiba--right {
		right: 16px;
	}

	.techromz-aiba--left {
		left: 16px;
	}

	.techromz-aiba__panel {
		width: calc(100vw - 32px);
	}
}

.techromz-aiba__messages {
        display: flex;
        flex-direction: column;
        gap: 10px;
        max-height: 260px;
        margin: 14px 0;
        overflow-y: auto;
}

.techromz-aiba__message {
        max-width: 85%;
        padding: 10px 12px;
        border-radius: 12px;
        line-height: 1.45;
        white-space: pre-wrap;
        word-break: break-word;
}

.techromz-aiba__message--user {
        align-self: flex-end;
        background: var(--techromz-aiba-primary);
        color: #ffffff;
}

.techromz-aiba__message--advisor {
        align-self: flex-start;
        background: #f3f4f6;
        color: #111827;
}

.techromz-aiba__message--error {
        align-self: flex-start;
        background: #fef2f2;
        color: #991b1b;
}

.techromz-aiba__form {
        display: flex;
        flex-direction: column;
        gap: 10px;
}

.techromz-aiba__input {
        width: 100%;
        min-height: 78px;
        padding: 10px 12px;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        resize: vertical;
        font: inherit;
}

.techromz-aiba__send {
        align-self: flex-end;
        padding: 9px 18px;
        border: 0;
        border-radius: 8px;
        background: var(--techromz-aiba-primary);
        color: #ffffff;
        cursor: pointer;
}

.techromz-aiba__send:disabled,
.techromz-aiba__input:disabled {
        cursor: not-allowed;
        opacity: 0.65;
}

.techromz-aiba__status {
        min-height: 20px;
        margin: 8px 0 0;
        font-size: 13px;
}
