/* WhatsApp choice menu — anchored to floating bubble */

#waci-widget {
	position: fixed;
	z-index: 100500;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	bottom: 24px;
}

#waci-widget.mobile-left-desktop-left,
#waci-widget.mobile-right-desktop-left {
	left: 30px;
	right: auto;
	bottom: 24px;
	align-items: flex-start;
}

#waci-widget.mobile-right-desktop-right,
#waci-widget.mobile-left-desktop-right {
	right: 30px;
	left: auto;
	bottom: 24px;
	align-items: flex-end;
}

@media (min-width: 769px) {
	#waci-widget.mobile-left-desktop-right {
		left: auto;
		right: 30px;
	}

	#waci-widget.mobile-right-desktop-left {
		right: auto;
		left: 30px;
	}
}

#whatsapp-chat-bubble {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	background-color: #25d366;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: none;
	cursor: pointer;
	padding: 0;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hide icon while choice card is open — close via card ✕ or backdrop */
#waci-widget.waci-panel-open #whatsapp-chat-bubble {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
	margin: 0;
	padding: 0;
	transform: scale(0.85);
}

#whatsapp-chat-bubble img {
	width: 38px;
	height: 38px;
	pointer-events: none;
}

#whatsapp-chat-bubble:hover,
#whatsapp-chat-bubble.waci-open {
	transform: scale(1.08);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

#whatsapp-chat-bubble.waci-open {
	background-color: #1da851;
}

/* ── Choice panel ── */
#waci-choice-panel {
	display: none;
	width: 300px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
	overflow: hidden;
		margin-bottom: 12px;
	opacity: 0;
	transform: translateY(12px) scale(0.96);
	transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

#waci-widget.waci-panel-open #waci-choice-panel {
	margin-bottom: 0;
}

#waci-choice-panel.waci-visible {
	display: block;
	opacity: 1;
	transform: translateY(0) scale(1);
}

.waci-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px 12px;
	background: linear-gradient(160deg, #157a4e 0%, #25d366 100%);
	color: #fff;
}

.waci-panel-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.waci-panel-close {
	width: 30px;
	height: 30px;
	border: none;
	background: rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	transition: background 0.2s;
}

.waci-panel-close:hover {
	background: rgba(0, 0, 0, 0.22);
}

.waci-options {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.waci-option {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1.5px solid #eef0f2;
	background: #fafbfc;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
	text-align: left;
	width: 100%;
	font: inherit;
}

.waci-option:hover {
	border-color: #25d366;
	background: #f0fdf4;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
	text-decoration: none;
	color: inherit;
}

.waci-option:active {
	transform: translateY(0);
}

.waci-option-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.waci-option--expert .waci-option-icon {
	background: #ecfdf5;
}

.waci-option--community .waci-option-icon {
	background: #fef9ee;
}

.waci-option-body {
	flex: 1;
	min-width: 0;
}

.waci-option-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: #111827;
	margin-bottom: 3px;
}

.waci-option-desc {
	font-size: 12.5px;
	color: #6b7280;
	line-height: 1.4;
	margin: 0;
}

.waci-option-arrow {
	flex-shrink: 0;
	color: #9ca3af;
	font-size: 18px;
	font-weight: 300;
	transition: color 0.2s, transform 0.2s;
}

.waci-option:hover .waci-option-arrow {
	color: #25d366;
	transform: translateX(2px);
}

.waci-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	padding: 3px 8px;
	border-radius: 50px;
	background: linear-gradient(135deg, #1a8a5c, #25d366);
	color: #fff;
	line-height: 1.2;
}

/* Light backdrop when menu open */
#waci-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	z-index: 100499;
	opacity: 0;
	transition: opacity 0.28s ease;
}

#waci-backdrop.waci-visible {
	display: block;
	opacity: 1;
}

/* ── Mobile: stay right-aligned, compact card (not full-width sheet) ── */
@media (max-width: 768px) {
	#waci-widget,
	#waci-widget.mobile-left-desktop-left,
	#waci-widget.mobile-right-desktop-left,
	#waci-widget.mobile-right-desktop-right,
	#waci-widget.mobile-left-desktop-right {
		bottom: 18px;
	}
	#waci-widget.mobile-left-desktop-left {
		left: 20px !important;
		right: auto;
	}

	#waci-widget.mobile-right-desktop-right {
		right: 20px !important;
		left: auto;
	}

	#waci-widget.mobile-left-desktop-right {
		left: 20px !important;
		right: auto;
	}

	#waci-widget.mobile-right-desktop-left {
		right: 20px !important;
		left: auto;
	}

	#waci-choice-panel {
		width: min(300px, calc(100vw - 32px));
		max-width: min(300px, calc(100vw - 32px));
		border-radius: 18px;
		margin-bottom: 12px;
	}

	.waci-panel-header h3 {
		font-size: 15px;
	}

	.waci-option {
		padding: 13px 14px;
		gap: 12px;
	}

	.waci-option-icon {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}

	.waci-option-title {
		font-size: 14px;
	}

	.waci-option-desc {
		font-size: 12px;
	}
}

/* ── Thank you page community CTA (top of order confirmation) ── */
.waci-thankyou-community {
	margin: 0 0 28px;
	padding: 0;
}

.waci-thankyou-inner {
	padding: 24px 26px 26px;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 45%, #f8faf9 100%);
	border: 1.5px solid #bbf7d0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(37, 211, 102, 0.1);
}

.waci-thankyou-title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	line-height: 1.35;
}

.waci-thankyou-lead {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 600;
	color: #374151;
	line-height: 1.5;
}

.waci-thankyou-list {
	margin: 0 0 22px;
	padding: 0 0 0 4px;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.waci-thankyou-list li {
	position: relative;
	padding-left: 22px;
	font-size: 14.5px;
	color: #4b5563;
	line-height: 1.45;
}

.waci-thankyou-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: #25d366;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
}

.waci-thankyou-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 28px;
	background: linear-gradient(135deg, #1a8a5c 0%, #25d366 100%);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	border-radius: 12px;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
	transition: transform 0.2s, box-shadow 0.2s;
}

.waci-thankyou-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
	color: #fff !important;
}

@media (max-width: 600px) {
	.waci-thankyou-inner {
		padding: 20px 18px 22px;
	}

	.waci-thankyou-title {
		font-size: 19px;
	}

	.waci-thankyou-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	#waci-choice-panel,
	#waci-backdrop,
	#whatsapp-chat-bubble,
	.waci-option,
	.waci-thankyou-btn {
		transition: none;
	}
}
