#chat-welcome-widget {
	max-width: 300px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 15px;
	gap: 5px;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	background: linear-gradient(130deg, #404041 0%, #777777 100%);
	position: fixed;
	bottom: 10px;
	right: 10px;
	margin: 0 auto;
	z-index: 1000;
	display: flex;
	align-items: center;
}

.welcome-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: white;
	margin: 0 5px;
	border: 3px solid rgba(102, 126, 234, 0.2);
}

.welcome-avatar:hover {
	transform: scale(1.2);
	border-color: #7a7d80;  
}

.welcome-text {
display: inline-block;
	color: #fff;
	width: fit-content;
	max-width: 300px;    
/* 	padding: 8px; */
	white-space: normal;
	word-wrap: break-word;
}

#chat-container {
	width: 375px;
	border: 1px solid #ccc;
	border-radius: 15px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: Roboto, sans-serif;
	font-size: 16px;
	background: #fff;
	position: fixed;
	bottom: 10px;
	right: 10px;
	margin: 0 auto;
	z-index: 2147483632 ;
	display: none;
}

#chat-header {
	background: linear-gradient(130deg, #404041 0%, #777777 100%);
	color: white;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	user-select: none;
}

#chat-header span.icon {
	font-size: 18px;
}

@media (max-width: 450px) {
	#chat-welcome-widget {
		width: 80%; 
	}
	#chat-container {
		width: 95%; 
	}
}

@media (max-height: 550px) {
	#chat-messages {
		max-height: 400px; 
	}
}

#icon {
	font-weight: bold;
	margin-left: 5px;
}

#toggle-icon {
	margin-right: 5px;
	display: flex;
	align-items: center;
}

#chat-messages {
	height: 400px;
	flex-grow: 1;
	padding: 10px;
	overflow-y: auto;
	background: #fff;
}

.message {
	color: white;
	display: flex;
	margin-bottom: 10px;
	align-items: flex-start;
}

.message.user .bubble {
	background: linear-gradient(130deg, #5e5e5e 0%, #919191 100%);
	margin-left: auto;
	border-radius: 15px 15px 0 15px;
	margin-right: 5px;
}

.message.bot .bubble {
	background: linear-gradient(135deg, #7d171a 0%, #a61e23 100%);
	margin-right: auto;
	border-radius: 15px 15px 15px 0;
	margin-left: 5px;
}

.bubble {
	max-width: 70%;
	padding: 8px 12px;
	border-radius: 15px;
	position: relative;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.bubble:hover {
	transform: translate(0px, 0px)
}

.avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: white;
	margin: 0 5px;
	border: 3px solid rgba(102, 126, 234, 0.2);
	box-shadow: 0 8px 25px;
}

.avatar:hover {
	transform: scale(1.2);
	border-color: #7a7d80;  
}

.message.user .avatar {
	order: 2;
}

.message.bot .avatar {
	order: 0;
}

#chat-input-container {
	border-top: 1px solid #ccc;
	padding: 5px;
	background: #f9f9f9;
}

#form-area {
	display: flex;
	border: 2px solid #888;
	align-items: center;
	padding: 10px;
	padding-left: 15px;
	height: 50px;
	outline: none;
	border-radius: 25px;          
	box-sizing: border-box;
	transition: border-color 0.2s; 
}

#form-area:focus-within {
	border-color: #007bff;         /* niebieska ramka po aktywacji */
}


 #chat-input {
	flex: 1;
	font-size: 14px;
	outline: none;
	border: none;
	background: #f9f9f9;
}

#chat-send {
    width: 35px;              
    height: 35px;
    border-radius: 50%;   
	border: 2px solid #000; 
    background: #000;
	/* color: #fff; */
	display: flex;
    align-items: center;
    justify-content: center;
}

#chat-send:hover {
	border: 2px solid #404041; 
	background: #404041;
}