/* ==========================================================
   Looks Clinics – WhatsApp Chat Widget
   ========================================================== */

/* Wrapper */
.lwc-wrapper {
	position: fixed;
	bottom: 24px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lwc-wrapper.lwc-right {
	right: 24px;
	align-items: flex-end;
}

.lwc-wrapper.lwc-left {
	left: 24px;
	align-items: flex-start;
}

/* ---- Main button ---- */
.lwc-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background-color: var(--lwc-color, #45C8D0);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .2s ease, box-shadow .2s ease;
	flex-shrink: 0;
	padding: 0;
}

.lwc-btn:hover,
.lwc-btn:focus-visible {
	transform: scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
	outline: 3px solid var(--lwc-color, #45C8D0);
	outline-offset: 3px;
}

.lwc-btn svg {
	width: 34px;
	height: 34px;
}

/* ---- Greeting balloon ---- */
.lwc-balloon {
	background: #fff;
	border-radius: 12px 12px 0 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
	padding: 14px 36px 14px 16px;
	max-width: 280px;
	position: relative;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	animation: lwcFadeIn .35s ease forwards;
}

.lwc-wrapper.lwc-left .lwc-balloon {
	border-radius: 12px 12px 12px 0;
}

.lwc-balloon p {
	margin: 0;
}

.lwc-balloon-close {
	position: absolute;
	top: 6px;
	right: 8px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #999;
	padding: 2px 4px;
}

.lwc-balloon-close:hover {
	color: #333;
}

/* ---- Consent popup ---- */
.lwc-consent {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .22);
	padding: 18px 18px 14px;
	max-width: 300px;
	font-size: 13px;
	line-height: 1.55;
	color: #333;
	animation: lwcFadeIn .25s ease forwards;
}

.lwc-consent-title {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #111;
}

.lwc-consent-body {
	margin: 0 0 14px;
}

.lwc-consent-body a {
	color: var(--lwc-color, #45C8D0);
	text-decoration: underline;
}

.lwc-consent-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.lwc-consent-btn {
	flex: 1 1 auto;
	padding: 9px 12px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	transition: opacity .15s;
}

.lwc-consent-btn:hover {
	opacity: .88;
}

.lwc-consent-btn--accept {
	background: var(--lwc-color, #45C8D0);
	color: #fff;
}

.lwc-consent-btn--cancel {
	background: #f0f0f0;
	color: #555;
}

/* ---- Animations ---- */
@keyframes lwcFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---- Mobile tweaks ---- */
@media (max-width: 480px) {
	.lwc-wrapper.lwc-right { right: 16px; }
	.lwc-wrapper.lwc-left  { left: 16px; }
	.lwc-wrapper           { bottom: 20px; transition: bottom 0.4s ease; }
	.lwc-wrapper.lwc-scrolled { bottom: 120px; }
	.lwc-balloon,
	.lwc-consent           { max-width: calc(100vw - 100px); }
}
