.aryarama-contact-widget {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.aryarama-contact-widget__toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: linear-gradient(145deg, var(--aryarama-contact-accent, #febd69), var(--aryarama-contact-accent-hover, #f3a847));
	color: #111111;
	box-shadow: 0 10px 28px rgba(243, 168, 71, 0.45);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aryarama-contact-widget__toggle:hover,
.aryarama-contact-widget__toggle:focus {
	transform: translateY(-2px) scale(1.03);
	box-shadow: 0 14px 32px rgba(243, 168, 71, 0.55);
	outline: none;
}

.aryarama-contact-widget__toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.aryarama-contact-widget__toggle-pulse {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 2px solid rgba(254, 189, 105, 0.55);
	animation: aryarama-contact-pulse 2.2s ease-out infinite;
	pointer-events: none;
}

.aryarama-contact-widget.is-open .aryarama-contact-widget__toggle-pulse {
	display: none;
}

@keyframes aryarama-contact-pulse {
	0% {
		transform: scale(0.95);
		opacity: 0.9;
	}

	70% {
		transform: scale(1.18);
		opacity: 0;
	}

	100% {
		transform: scale(1.18);
		opacity: 0;
	}
}

.aryarama-contact-widget__panel {
	position: absolute;
	right: 0;
	bottom: calc(100% + 14px);
	width: min(340px, calc(100vw - 32px));
	border: 1px solid #e8edf2;
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
	overflow: hidden;
	transform-origin: bottom right;
	animation: aryarama-contact-panel-in 0.22s ease;
}

.aryarama-contact-widget__panel[hidden] {
	display: none;
}

@keyframes aryarama-contact-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.aryarama-contact-widget__panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid #eef2f6;
	background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.aryarama-contact-widget__panel-title {
	margin: 0;
	color: #111827;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.aryarama-contact-widget__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #f3f4f6;
	color: #4b5563;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.aryarama-contact-widget__close:hover,
.aryarama-contact-widget__close:focus {
	background: #e5e7eb;
	color: #111827;
	outline: none;
}

.aryarama-contact-widget__panel-body {
	padding: 16px 18px 18px;
}

.aryarama-contact-widget__greeting {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: #f3f6f9;
	color: #374151;
	font-size: 14px;
	line-height: 1.5;
}

.aryarama-contact-widget__greeting-icon {
	flex: 0 0 auto;
	font-size: 18px;
	line-height: 1;
}

.aryarama-contact-widget__agent {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e8edf2;
	border-radius: 14px;
	background: #ffffff;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aryarama-contact-widget__agent:hover,
.aryarama-contact-widget__agent:focus {
	border-color: var(--aryarama-contact-accent, #febd69);
	box-shadow: 0 8px 20px rgba(243, 168, 71, 0.18);
	transform: translateY(-1px);
	outline: none;
}

.aryarama-contact-widget__agent-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(145deg, var(--aryarama-contact-accent, #febd69), var(--aryarama-contact-accent-hover, #f3a847));
	color: #111111;
}

.aryarama-contact-widget__agent-icon {
	display: block;
	flex: 0 0 auto;
}

.aryarama-contact-widget__agent-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}

.aryarama-contact-widget__agent-name {
	color: #111827;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

.aryarama-contact-widget__agent-role {
	color: #6b7280;
	font-size: 12px;
	line-height: 1.3;
}

.aryarama-contact-widget__agent-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #9ca3af;
}

@media (max-width: 768px) {
	.aryarama-contact-widget {
		right: 16px;
		bottom: 16px;
	}

	.aryarama-contact-widget__toggle {
		width: 56px;
		height: 56px;
	}

	.aryarama-contact-widget__panel {
		width: min(320px, calc(100vw - 24px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.aryarama-contact-widget__toggle-pulse {
		animation: none;
	}

	.aryarama-contact-widget__panel {
		animation: none;
	}
}
