#chat-icon {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #0073aa;
	color: white;
	font-size: 22px;
	padding: 12px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 9999;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	transition: all 0.3s ease;
}

#chat-icon:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

#chat-window {
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 320px;
	height: 450px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0,0,0,0.3);
	display: flex;
	flex-direction: column;
	z-index: 9999;
	overflow: hidden;
	font-family: Arial, sans-serif;
	transition: all 0.3s ease;
	border: 1px solid #ddd;
}

.chat-hidden {
	display: none !important;
}

#chat-header {
	background: #0073aa;
	color: white;
	padding: 12px 15px;
	font-weight: bold;
	text-align: center;
	font-size: 16px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	position: relative;
	cursor: move;
}

#chat-minimize {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 16px;
	cursor: pointer;
	line-height: 1;
	padding: 0 5px;
	font-weight: bold;
}

#chat-minimize:hover {
	opacity: 0.8;
}

#chat-body {
	flex: 1;
	overflow-y: auto;
	padding: 15px;
	background: #f9f9f9;
	display: flex;
	flex-direction: column;
}

#chat-messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-right: 5px;
}

#chat-footer {
	display: flex;
	border-top: 1px solid #ddd;
	background: #fff;
	padding: 8px;
}

#chat-input {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 20px;
	padding: 8px 15px;
	outline: none;
	font-size: 14px;
}

#chat-input:focus {
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

#chat-send {
	background: #0073aa;
	color: white;
	border: none;
	padding: 0 15px;
	cursor: pointer;
	border-radius: 20px;
	margin-left: 8px;
	font-weight: bold;
	transition: background 0.2s;
}

#chat-send:hover {
	background: #005d87;
}

.chat-user,
.chat-bot {
	margin: 0;
	padding: 12px 15px;
	border-radius: 15px;
	max-width: 85%;
	line-height: 1.4;
	word-wrap: break-word;
	position: relative;
	font-size: 14px;
}

.chat-user {
	background: #e3f2fd;
	align-self: flex-end;
	border-bottom-right-radius: 5px;
	color: #333;
}

.chat-bot {
	background: #ffffff;
	align-self: flex-start;
	border-bottom-left-radius: 5px;
	box-shadow: 0 1px 5px rgba(0,0,0,0.1);
	border: 1px solid #eee;
}

.typing {
	animation: blink 1s infinite;
	font-style: italic;
	color: #666;
}

@keyframes blink {
	0% { opacity: 0.3; }
	50% { opacity: 1; }
	100% { opacity: 0.3; }
}

.product-box {
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	font-size: 14px;
	line-height: 1.5;
	max-width: 90%;
}

.product-box h4 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 16px;
	color: #333;
	border-bottom: 1px solid #eee;
	padding-bottom: 5px;
}

.product-box p {
	margin: 8px 0;
}

.product-box a {
	color: #0073aa;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.2s;
}

.product-box a:hover {
	color: #005d87;
	text-decoration: underline;
}

/* Ticket Details Styling */
.ticket-details {
	background: #ffffff;
	border: 2px solid #0073aa;
	border-radius: 12px;
	padding: 0;
	margin-bottom: 0;
	box-shadow: 0 3px 10px rgba(0, 115, 170, 0.15);
	font-size: 14px;
	line-height: 1.5;
	max-width: 95%;
	overflow: hidden;
}

.ticket-header {
	background: linear-gradient(135deg, #0073aa, #005d87);
	color: white;
	padding: 12px 15px;
	font-weight: bold;
	font-size: 16px;
	text-align: center;
	margin: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ticket-info {
	padding: 15px;
	background: #f8f9fa;
}

.ticket-info p {
	margin: 8px 0;
	padding: 6px 0;
	border-bottom: 1px solid #e9ecef;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.ticket-info p:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.ticket-info strong {
	color: #0073aa;
	font-weight: 600;
	margin-right: 10px;
	min-width: 80px;
	flex-shrink: 0;
}

.ticket-info p span {
	text-align: right;
	color: #333;
	word-break: break-word;
}

/* Booking Summary Styling */
.booking-summary {
	background: #f0f8ff;
	border: 1px solid #0073aa;
	border-radius: 8px;
	padding: 15px;
	margin: 10px 0;
	font-size: 14px;
	line-height: 1.6;
}

.booking-summary strong {
	color: #0073aa;
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
	border-bottom: 1px solid #0073aa;
	padding-bottom: 5px;
}

/* Cab Booking Summary Styling */
.cab-booking-summary {
	background: #e8f5e8;
	border: 1px solid #4caf50;
	border-radius: 8px;
	padding: 15px;
	margin: 10px 0;
	font-size: 14px;
	line-height: 1.6;
}

.cab-booking-summary strong {
	color: #2e7d32;
	display: block;
	margin-bottom: 10px;
	font-size: 16px;
	border-bottom: 1px solid #4caf50;
	padding-bottom: 5px;
}

/* Language selection styling */
.language-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}

.language-option {
	padding: 8px 15px;
	border-radius: 20px;
	background: #0073aa;
	color: white;
	border: none;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
}

.language-option:hover {
	background: #005d87;
	transform: translateY(-2px);
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.language-option:active {
	transform: translateY(0px);
}

/* Welcome buttons styling */
.welcome-options {
	margin: 10px 0;
}

.welcome-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 15px 0;
}

.welcome-option {
	padding: 12px 20px;
	border-radius: 25px;
	background: linear-gradient(135deg, #0073aa, #005d87);
	color: white;
	border: none;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
	position: relative;
	overflow: hidden;
}

.welcome-option:hover {
	background: linear-gradient(135deg, #005d87, #004a73);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4);
}

.welcome-option:active {
	transform: translateY(0px);
	box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.welcome-option::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.5s;
}

.welcome-option:hover::before {
	left: 100%;
}

/* Cancel appointment button styling - distinct red gradient */
.welcome-option[data-action="cancel"] {
	background: linear-gradient(135deg, #dc3545, #c82333);
}

.welcome-option[data-action="cancel"]:hover {
	background: linear-gradient(135deg, #c82333, #bd2130);
}

/* Service Selection Styling */
.service-selection {
	margin: 10px 0;
}

.service-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}

.service-option {
	padding: 6px 12px;
	border-radius: 15px;
	background: #0073aa;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 12px;
	margin: 2px;
	transition: all 0.2s ease;
}

.service-option:hover {
	background: #005d87;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-option:active {
	transform: translateY(0px);
}

/* Car Type Selection Styling */
.car-type-selection {
	margin: 10px 0;
}

.car-type-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}

.car-type-option {
	padding: 8px 12px;
	border-radius: 15px;
	background: #0073aa;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 12px;
	margin: 2px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 70px;
	transition: all 0.2s ease;
}

.car-type-option:hover {
	background: #005d87;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.car-type-option:active {
	transform: translateY(0px);
}

/* Booking Type Selection Styling (for cancellation) */
.booking-type-selection {
	margin: 10px 0;
}

.booking-type-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 10px 0;
}

.booking-type-btn {
	padding: 12px 20px;
	border-radius: 20px;
	color: white;
	border: none;
	cursor: pointer;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.booking-type-btn[data-type="salon"] {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.booking-type-btn[data-type="salon"]:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.booking-type-btn[data-type="cab"] {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.booking-type-btn[data-type="cab"]:hover {
	background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

/* Confirmation Buttons Styling */
.cancel-confirmation {
	margin: 10px 0;
}

.confirmation-buttons {
	display: flex;
	gap: 10px;
	margin: 10px 0;
	justify-content: center;
}

.confirm-cancel-btn {
	padding: 8px 15px;
	border-radius: 20px;
	color: white;
	border: none;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.confirm-cancel-btn[data-action="yes"] {
	background: #dc3545;
}

.confirm-cancel-btn[data-action="yes"]:hover {
	background: #c82333;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(220, 53, 69, 0.4);
}

.confirm-cancel-btn[data-action="no"] {
	background: #6c757d;
}

.confirm-cancel-btn[data-action="no"]:hover {
	background: #5a6268;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(108, 117, 125, 0.4);
}

/* Cab Booking Confirmation Buttons */
.cab-confirmation-buttons {
	display: flex;
	gap: 10px;
	margin: 15px 0;
}

.confirm-cab-booking-btn,
.cancel-cab-booking-btn {
	padding: 12px 20px;
	border-radius: 25px;
	color: white;
	border: none;
	cursor: pointer;
	font-weight: bold;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	flex: 1;
}

.confirm-cab-booking-btn {
	background: #28a745;
}

.confirm-cab-booking-btn:hover {
	background: #218838;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.cancel-cab-booking-btn {
	background: #dc3545;
}

.cancel-cab-booking-btn:hover {
	background: #c82333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Back to main button styling */
.back-to-main {
	margin-top: 15px;
	text-align: center;
}

.back-to-main-btn {
	padding: 8px 15px;
	border-radius: 20px;
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
	border: none;
	cursor: pointer;
	font-weight: bold;
	font-size: 13px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
}

.back-to-main-btn:hover {
	background: linear-gradient(135deg, #20c997, #28a745);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(40, 167, 69, 0.4);
}

.back-to-main-btn:active {
	transform: translateY(0px);
	box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Enhanced animations */
.welcome-option,
.service-option,
.language-option,
.back-to-main-btn,
.booking-type-btn,
.confirm-cancel-btn,
.confirm-cab-booking-btn,
.cancel-cab-booking-btn {
	animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Status indicators */
.status-confirmed,
.status-active {
	color: #28a745;
	font-weight: bold;
}

.status-pending {
	color: #ffc107;
	font-weight: bold;
}

.status-cancelled {
	color: #dc3545;
	font-weight: bold;
}

.status-completed {
	color: #17a2b8;
	font-weight: bold;
}

/* Success and error message styling */
.message-success {
	background: linear-gradient(135deg, #d4edda, #c3e6cb);
	border: 1px solid #28a745;
	color: #155724;
}

.message-error {
	background: linear-gradient(135deg, #f8d7da, #f5c6cb);
	border: 1px solid #dc3545;
	color: #721c24;
}

.message-warning {
	background: linear-gradient(135deg, #fff3cd, #ffeaa7);
	border: 1px solid #ffc107;
	color: #856404;
}

/* Loading states */
.loading-dots {
	display: inline-block;
	position: relative;
	width: 40px;
	height: 10px;
}

.loading-dots div {
	position: absolute;
	top: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #0073aa;
	animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
	left: 0;
	animation: loading1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
	left: 0;
	animation: loading2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
	left: 16px;
	animation: loading2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
	left: 32px;
	animation: loading3 0.6s infinite;
}

@keyframes loading1 {
	0% { transform: scale(0); }
	100% { transform: scale(1); }
}

@keyframes loading3 {
	0% { transform: scale(1); }
	100% { transform: scale(0); }
}

@keyframes loading2 {
	0% { transform: translate(0, 0); }
	100% { transform: translate(16px, 0); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
	#chat-window {
		width: calc(100% - 40px);
		right: 20px;
		left: 20px;
		bottom: 70px;
		height: 400px;
	}

	#chat-icon {
		bottom: 15px;
		right: 15px;
	}

	.ticket-details {
		max-width: 100%;
	}

	.ticket-info p {
		flex-direction: column;
		align-items: flex-start;
	}

	.ticket-info strong {
		margin-bottom: 4px;
		min-width: auto;
	}

	.service-buttons {
		justify-content: center;
	}

	.service-option {
		font-size: 11px;
		padding: 5px 10px;
	}

	.welcome-option {
		padding: 10px 15px;
		font-size: 13px;
	}

	.booking-type-btn {
		padding: 10px 15px;
		font-size: 13px;
	}

	.cab-confirmation-buttons {
		flex-direction: column;
		gap: 8px;
	}

	.confirm-cab-booking-btn,
	.cancel-cab-booking-btn {
		font-size: 13px;
		padding: 10px 15px;
	}

	#chat-body {
		padding: 10px;
	}

	.chat-user,
	.chat-bot {
		max-width: 95%;
		padding: 10px 12px;
		font-size: 13px;
	}
}

@media (max-width: 360px) {
	#chat-window {
		width: calc(100% - 20px);
		right: 10px;
		left: 10px;
		height: 380px;
	}

	.welcome-option {
		padding: 8px 12px;
		font-size: 12px;
	}

	.service-option {
		font-size: 10px;
		padding: 4px 8px;
	}

	.booking-type-btn {
		padding: 8px 12px;
		font-size: 12px;
	}

	.confirm-cancel-btn {
		padding: 6px 12px;
		font-size: 12px;
	}

	.car-type-option {
		min-width: 60px;
		font-size: 11px;
		padding: 6px 8px;
	}
}

/* Focus states for accessibility */
.welcome-option:focus,
.service-option:focus,
.language-option:focus,
.back-to-main-btn:focus,
.booking-type-btn:focus,
.confirm-cancel-btn:focus,
.confirm-cab-booking-btn:focus,
.cancel-cab-booking-btn:focus,
#chat-send:focus,
#chat-input:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.welcome-option,
	.service-option,
	.language-option,
	.booking-type-btn,
	.confirm-cancel-btn {
		border: 2px solid #fff;
	}

	.chat-bot {
		border: 2px solid #000;
	}

	.chat-user {
		border: 2px solid #333;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.welcome-option,
	.service-option,
	.language-option,
	.back-to-main-btn,
	.booking-type-btn,
	.confirm-cancel-btn,
	.confirm-cab-booking-btn,
	.cancel-cab-booking-btn,
	#chat-icon {
		transition: none;
		animation: none;
	}

	.welcome-option:hover,
	.service-option:hover,
	.language-option:hover,
	.back-to-main-btn:hover,
	.booking-type-btn:hover,
	.confirm-cancel-btn:hover,
	.confirm-cab-booking-btn:hover,
	.cancel-cab-booking-btn:hover,
	#chat-icon:hover {
		transform: none;
	}
}

/* Improved scrollbar styling */
#chat-body::-webkit-scrollbar {
	width: 6px;
}

#chat-body::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

#chat-body::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

#chat-body::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* Print styles */
@media print {
	#chat-window,
	#chat-icon {
		display: none !important;
	}
}

/* Dynamic field options styling */
.dynamic-field-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}

.dynamic-option-btn {
	margin: 5px;
	padding: 8px 12px;
	border-radius: 15px;
	background: #0073aa;
	color: white;
	border: none;
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s ease;
	font-family: inherit;
	line-height: 1.2;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dynamic-option-btn:hover {
	background: #005d87;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

.dynamic-option-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(0, 115, 170, 0.3);
}

.dynamic-option-btn:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Responsive design for dynamic options */
@media (max-width: 480px) {
	.dynamic-field-options {
		gap: 6px;
	}

	.dynamic-option-btn {
		padding: 6px 10px;
		font-size: 11px;
		margin: 3px;
	}
}

@media (max-width: 360px) {
	.dynamic-option-btn {
		padding: 5px 8px;
		font-size: 10px;
		margin: 2px;
	}
}