/* WhatsApp Button | Cover72 - Frontend Styles */

.wbc-widget {
	--wbc-button-color: #25D366;
	--wbc-header-color: #075E54;
	position: fixed;
	bottom: 24px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	opacity: 0;
	transform: translateY(16px);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.wbc-widget.wbc-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.wbc-widget.wbc-pos-right {
	right: 24px;
}

.wbc-widget.wbc-pos-left {
	left: 24px;
}

.wbc-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--wbc-button-color);
	border: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wbc-toggle:hover {
	transform: scale(1.06);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wbc-icon-whatsapp {
	width: 30px;
	height: 30px;
}

.wbc-popup {
	position: absolute;
	bottom: 76px;
	width: 320px;
	max-width: calc(100vw - 48px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wbc-pos-right .wbc-popup {
	right: 0;
}

.wbc-pos-left .wbc-popup {
	left: 0;
}

.wbc-popup:not([hidden]) {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.wbc-popup[hidden] {
	display: flex;
	pointer-events: none;
}

.wbc-popup-header {
	background: var(--wbc-header-color);
	padding: 16px;
	position: relative;
	color: #fff;
}

.wbc-popup-header-inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.wbc-popup-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.85);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
}

.wbc-popup-close:hover {
	color: #fff;
}

.wbc-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.2);
}

.wbc-avatar-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
	color: #fff;
}

.wbc-popup-header-text {
	display: flex;
	flex-direction: column;
	line-height: 1.35;
	min-width: 0;
}

.wbc-popup-header-text strong {
	font-size: 15px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wbc-subtitle {
	font-size: 12px;
	opacity: 0.85;
}

.wbc-online {
	font-size: 12px;
	opacity: 0.9;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
}

.wbc-online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #4ade80;
	display: inline-block;
}

.wbc-popup-body {
	padding: 16px;
	background: #e5ddd5;
	flex: 1;
}

.wbc-chat-bubble {
	background: #fff;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 13.5px;
	line-height: 1.45;
	color: #111;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	max-width: 90%;
}

.wbc-popup-footer {
	padding: 12px 16px 16px;
	background: #fff;
}

.wbc-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: var(--wbc-button-color);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	padding: 11px 16px;
	border-radius: 24px;
	transition: filter 0.2s ease;
}

.wbc-cta:hover {
	filter: brightness(0.95);
	color: #fff;
}

.wbc-cta-wrap {
	width: 100%;
}

.wbc-notice {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wbc-notice-text {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: #444;
}

.wbc-notice-privacy {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.4;
	color: #667781;
}

.wbc-notice-privacy a {
	color: inherit;
	text-decoration: underline;
}

.wbc-notice-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wbc-cta-cancel {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background: transparent;
	color: #667781;
	text-decoration: none;
	font-weight: 500;
	font-size: 13px;
	padding: 8px 16px;
	border: none;
	cursor: pointer;
}

.wbc-cta-cancel:hover {
	text-decoration: underline;
}

@media (max-width: 480px) {
	.wbc-widget.wbc-pos-right,
	.wbc-widget.wbc-pos-left {
		right: 12px;
		left: 12px;
		bottom: 16px;
	}

	.wbc-pos-right .wbc-popup,
	.wbc-pos-left .wbc-popup {
		right: 0;
		left: 0;
		width: auto;
		max-width: none;
	}

	.wbc-widget.wbc-pos-right .wbc-toggle {
		margin-left: auto;
	}

	.wbc-widget.wbc-pos-left .wbc-toggle {
		margin-right: auto;
	}
}
