/**
 * WC Smart Pricing Control — Public Frontend CSS
 * Always loaded on the frontend, regardless of feature settings.
 */

/* ── Contact Button ─────────────────────────────────────────────────────────── */
.wcsp-contact-wrap {
	display: block;
	margin: 8px 0;
	width: 100%;
}

/* Base button */
.wcsp-contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: opacity .2s, transform .15s, box-shadow .15s;
	cursor: pointer;
	line-height: 1.4;
}
.wcsp-contact-btn:hover {
	opacity: .88;
	transform: translateY(-1px);
}
.wcsp-contact-btn:active {
	transform: translateY(0);
}

/* Icon */
.wcsp-contact-btn .wcsp-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

/* ── Style: button ──────────────────────────────────────────────────────────── */
.wcsp-contact-btn.wcsp-style-button {
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
	border: none;
}
.wcsp-contact-btn.wcsp-style-button:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* ── Style: link ────────────────────────────────────────────────────────────── */
.wcsp-contact-btn.wcsp-style-link {
	font-size: 14px;
	background: transparent !important;
	text-decoration: underline;
	padding: 4px 0;
}

/* ── Style: badge ───────────────────────────────────────────────────────────── */
.wcsp-contact-btn.wcsp-style-badge {
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 11px;
	letter-spacing: .6px;
	text-transform: uppercase;
	font-weight: 700;
}

/* ── Loop compact / icon_only adjustments ───────────────────────────────────── */
.wcsp-contact-btn.wcsp-loop-compact {
	padding: 8px 14px;
	font-size: 13px;
}
.wcsp-contact-btn.wcsp-loop-icon_only {
	padding: 8px 10px;
	justify-content: center;
}
.wcsp-contact-btn.wcsp-loop-icon_only .wcsp-icon {
	width: 18px;
	height: 18px;
}

/* ── WhatsApp Inline Button ─────────────────────────────────────────────────── */
.wcsp-wa-inline-wrap {
	display: block;
	margin: 6px 0;
}
.wcsp-wa-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25d366;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 9px 18px;
	border-radius: 6px;
	text-decoration: none;
	transition: background .2s, transform .15s;
	box-shadow: 0 2px 6px rgba(37,211,102,.3);
}
.wcsp-wa-btn:hover {
	background: #1ebe5b;
	transform: translateY(-1px);
	color: #fff;
	box-shadow: 0 4px 12px rgba(37,211,102,.4);
}
.wcsp-wa-icon {
	width: 18px;
	height: 18px;
	fill: #fff;
	flex-shrink: 0;
}

/* ── WhatsApp Floating Bubble ───────────────────────────────────────────────── */
.wcsp-wa-float {
	position: fixed;
	bottom: 24px;
	width: 56px;
	height: 56px;
	background: #25d366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	box-shadow: 0 4px 16px rgba(37,211,102,.5);
	text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.wcsp-wa-float--right { right: 24px; }
.wcsp-wa-float--left  { left: 24px; }
.wcsp-wa-float:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
.wcsp-wa-float .wcsp-wa-icon {
	width: 28px;
	height: 28px;
}

/* Tooltip */
.wcsp-wa-tooltip {
	position: absolute;
	bottom: 64px;
	background: rgba(0,0,0,.75);
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	padding: 5px 10px;
	border-radius: 4px;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity .2s, transform .2s;
}
.wcsp-wa-float--right .wcsp-wa-tooltip { right: 0; }
.wcsp-wa-float--left  .wcsp-wa-tooltip { left: 0; }
.wcsp-wa-float:hover .wcsp-wa-tooltip {
	opacity: 1;
	transform: translateY(0);
}

/* ── RTL support ────────────────────────────────────────────────────────────── */
[dir="rtl"] .wcsp-wa-float--right { right: auto; left: 24px; }
[dir="rtl"] .wcsp-wa-float--left  { left: auto; right: 24px; }

/* ── Accessibility: reduce motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.wcsp-contact-btn,
	.wcsp-wa-btn,
	.wcsp-wa-float,
	.wcsp-wa-tooltip {
		transition: none;
	}
}
