/* phpcs:ignoreFile -- Front-end stylesheet; not PHP. */
.raw-chat-widget {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	width: calc(100vw - 40px);
	max-width: 400px;
	height: 560px;
	max-height: calc(100vh - 48px);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.raw-chat-widget .raw-chat-iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.raw-chat-fallback {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100001;
	max-width: 320px;
	padding: 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	font-size: 14px;
	line-height: 1.5;
}

.raw-chat-fallback[hidden] {
	display: none;
}

.raw-chat-fallback-text {
	margin: 0 0 8px;
	color: #333;
}

.raw-chat-fallback-link {
	display: inline-block;
	padding: 6px 12px;
	background: #0073aa;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
}

.raw-chat-fallback-link:hover {
	background: #005a87;
}

.raw-chat-fallback-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: none;
	background: transparent;
	color: #666;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.raw-chat-widget[hidden],
.raw-chat-launcher[hidden] {
	display: none;
}

.raw-chat-launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 100000;
	padding: 10px 16px;
	border: none;
	border-radius: 999px;
	background: #0073aa;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.raw-chat-launcher:hover {
	background: #005a87;
}

.raw-chat-launcher:focus-visible {
	outline: 3px solid #fff;
	box-shadow: 0 0 0 5px #0073aa;
}
