/* =========================================================
   Vinspiration WhatsApp Widget
   ========================================================= */

.vins-wa-card {
	--vins-wa-card-bg: #EFEAE1;
	--vins-wa-header-bg: #F3EFE7;
	--vins-wa-text: #2B2B2B;
	--vins-wa-muted: #8A8378;
	--vins-wa-accent: #6B1F2A;
	--vins-wa-btn-bg: #25A766;
	--vins-wa-btn-bg-hover: #1F9259;
	--vins-wa-btn-color: #FFFFFF;
	--vins-wa-radius: 24px;

	direction: rtl;
	text-align: right;
	box-sizing: border-box;
	width: 100%;
	max-width: 360px;
	background: var(--vins-wa-card-bg);
	color: var(--vins-wa-text);
	border-radius: var(--vins-wa-radius);
	overflow: hidden;
	font-family: inherit;
	position: relative;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.vins-wa-card *,
.vins-wa-card *::before,
.vins-wa-card *::after {
	box-sizing: border-box;
}

/* -------- Header -------- */
.vins-wa-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	background: var(--vins-wa-header-bg);
}

.vins-wa-head-text {
	flex: 1 1 auto;
	min-width: 0;
}

.vins-wa-title {
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--vins-wa-text);
}

.vins-wa-subtitle {
	font-size: 0.9rem;
	color: var(--vins-wa-muted);
	margin-top: 2px;
}

/* -------- Avatar -------- */
.vins-wa-avatar {
	position: relative;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--vins-wa-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.vins-wa-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.vins-wa-avatar-svg {
	width: 26px;
	height: 26px;
}

.vins-wa-avatar.has-dot::after {
	content: "";
	position: absolute;
	bottom: 2px;
	inset-inline-start: 2px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #2ECC71;
	border: 2px solid var(--vins-wa-header-bg);
}

/* -------- Body -------- */
.vins-wa-body {
	padding: 18px 20px 6px;
}

.vins-wa-eyebrow {
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	color: var(--vins-wa-muted);
	margin-bottom: 12px;
}

.vins-wa-text {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.7;
	color: var(--vins-wa-text);
}

/* -------- Footer / Button -------- */
.vins-wa-footer {
	padding: 18px 20px 22px;
}

.vins-wa-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 16px 20px;
	background: var(--vins-wa-btn-bg);
	color: var(--vins-wa-btn-color);
	font-size: 1.05rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 14px;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.vins-wa-btn:hover,
.vins-wa-btn:focus {
	background: var(--vins-wa-btn-bg-hover);
	color: var(--vins-wa-btn-color);
}

.vins-wa-btn:active {
	transform: translateY(1px);
}

.vins-wa-btn-icon {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
}

/* -------- Compact mode -------- */
.vins-wa--compact .vins-wa-card {
	max-width: 360px;
}

.vins-wa--compact .vins-wa-footer {
	padding-top: 16px;
}

/* =========================================================
   Floating mode
   ========================================================= */
.vins-wa--floating {
	--vins-wa-offset: 24px;
	position: fixed;
	bottom: var(--vins-wa-offset);
	z-index: 9999;
}

.vins-wa--floating.vins-wa--pos-right { inset-inline-end: var(--vins-wa-offset); }
.vins-wa--floating.vins-wa--pos-left  { inset-inline-start: var(--vins-wa-offset); }

/* Launcher bubble */
.vins-wa-launcher {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: none;
	cursor: pointer;
	background: var(--vins-wa-btn-bg, #25A766);
	color: #fff;
	padding: 0 18px 0 0;
	height: 60px;
	border-radius: 30px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
	font: inherit;
	font-weight: 600;
	transition: transform 0.15s ease, opacity 0.2s ease;
	direction: rtl;
}

.vins-wa--pos-right .vins-wa-launcher { padding: 0 0 0 18px; }

.vins-wa-launcher:hover { transform: scale(1.04); }

.vins-wa-launcher .vins-wa-btn-icon {
	width: 30px;
	height: 30px;
	margin: 0 15px;
	flex: 0 0 auto;
}

.vins-wa-launcher-label { white-space: nowrap; }

/* In floating mode the card is hidden until opened */
.vins-wa--floating .vins-wa-card {
	position: absolute;
	bottom: 74px;
	inset-inline-end: 0;
	width: 340px;
	max-width: calc(100vw - 32px);
	transform-origin: bottom var(--vins-wa-origin, right);
	transform: scale(0.85) translateY(10px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
}

.vins-wa--floating.vins-wa--pos-left .vins-wa-card {
	inset-inline-start: 0;
	inset-inline-end: auto;
}

.vins-wa--floating.is-open .vins-wa-card {
	transform: scale(1) translateY(0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.vins-wa--floating.is-open .vins-wa-launcher {
	opacity: 0;
	pointer-events: none;
}

/* Close button (floating only) */
.vins-wa-close {
	position: absolute;
	top: 10px;
	inset-inline-start: 12px;
	width: 30px;
	height: 30px;
	line-height: 1;
	font-size: 22px;
	border: none;
	background: rgba(0, 0, 0, 0.06);
	color: var(--vins-wa-muted);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
	z-index: 2;
}

.vins-wa-close:hover { background: rgba(0, 0, 0, 0.12); }

/* -------- Responsive -------- */
@media (max-width: 480px) {
	.vins-wa--floating .vins-wa-card {
		width: calc(100vw - 32px);
	}
	.vins-wa-launcher-label { display: none; }
	.vins-wa--pos-right .vins-wa-launcher,
	.vins-wa--pos-left .vins-wa-launcher {
		padding: 0;
		width: 60px;
		justify-content: center;
	}
	.vins-wa-launcher .vins-wa-btn-icon { margin: 0; }
}
