/**
 * Audio Live Chat - Floating widget styles.
 *
 * FAB button bottom-right, panel slides up.
 * Desktop: 380x520 corner panel. Mobile: full-screen.
 *
 * @package AudioLiveChat
 * @since 1.0.0
 */

/* ── Floating Action Button ── */
.alc-fab {
	position: fixed;
	bottom: 90px;
	right: 20px;
	z-index: 9999;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: var(--accent, #1db954);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
}

.alc-fab:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.alc-fab__icon--close { display: none; }
.is-open .alc-fab__icon--chat { display: none; }
.is-open .alc-fab__icon--close { display: block; }

/* ── Chat Panel ── */
.alc-panel {
	position: fixed;
	bottom: 160px;
	right: 20px;
	z-index: 9998;
	width: 380px;
	height: 520px;
	background: var(--bg-card, #181818);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px) scale(0.95);
	transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.is-open .alc-panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

/* ── Panel Header ── */
.alc-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--bg-elevated, #282828);
	border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1));
	flex-shrink: 0;
}

.alc-panel__title {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-primary, #fff);
}

.alc-panel__close {
	background: none;
	border: none;
	color: var(--text-subdued, #b3b3b3);
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
}

.alc-panel__close:hover {
	color: var(--text-primary, #fff);
}

/* ── Panel Body / Iframe ── */
.alc-panel__body {
	flex: 1;
	min-height: 0;
}

.alc-panel__iframe {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* ── Mobile: full-screen panel ── */
@media (max-width: 768px) {
	.alc-fab {
		bottom: 140px;
		right: 16px;
	}

	.alc-panel {
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
}
