/**
 * Pink Chair - Sucursales WhatsApp — front-end styles.
 */

.pcs-widget {
	--pcs-bg: #25D366;
	--pcs-text: #ffffff;
	position: fixed;
	bottom: 20px;
	z-index: 99990;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.4;
}

.pcs-widget.pcs-pos-br {
	right: 20px;
	left: auto;
}

.pcs-widget.pcs-pos-bl {
	left: 20px;
	right: auto;
}

/* ---------- Floating action button ---------- */
.pcs-fab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 50px;
	background: var(--pcs-bg);
	color: var(--pcs-text);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.pcs-fab:hover,
.pcs-fab:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
	outline: none;
}

.pcs-fab-icon {
	display: inline-flex;
	width: 24px;
	height: 24px;
}

.pcs-fab-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.pcs-fab-text {
	white-space: nowrap;
}

/* ---------- Popup ---------- */
.pcs-popup {
	position: absolute;
	bottom: calc(100% + 14px);
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transform-origin: bottom right;
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

.pcs-pos-br .pcs-popup {
	right: 0;
	transform-origin: bottom right;
}

.pcs-pos-bl .pcs-popup {
	left: 0;
	transform-origin: bottom left;
}

.pcs-widget.pcs-open .pcs-popup {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.pcs-popup[hidden] {
	display: none;
}

.pcs-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	background: var(--pcs-bg);
	color: var(--pcs-text);
}

.pcs-popup-title {
	font-size: 15px;
	font-weight: 700;
}

.pcs-close {
	border: 0;
	background: transparent;
	color: var(--pcs-text);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
	opacity: 0.9;
}

.pcs-close:hover,
.pcs-close:focus-visible {
	opacity: 1;
	outline: none;
}

.pcs-popup-body {
	max-height: 60vh;
	overflow-y: auto;
	padding: 6px 0;
}

.pcs-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	text-decoration: none;
	color: #1f2a30;
	transition: background 0.12s ease;
}

.pcs-item:hover,
.pcs-item:focus-visible {
	background: #f2f5f6;
	outline: none;
}

.pcs-item + .pcs-item {
	border-top: 1px solid #eef1f2;
}

.pcs-item-icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #25D366;
	color: #ffffff;
}

.pcs-item-icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.pcs-item-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pcs-item-title {
	font-weight: 700;
	font-size: 14px;
	color: #111;
}

.pcs-item-desc {
	font-size: 13px;
	color: #5b6b73;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.pcs-widget {
		bottom: 14px;
	}
	.pcs-widget.pcs-pos-br {
		right: 14px;
	}
	.pcs-widget.pcs-pos-bl {
		left: 14px;
	}
	.pcs-fab {
		padding: 12px 16px;
		font-size: 14px;
	}
	.pcs-popup {
		width: calc(100vw - 28px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pcs-fab,
	.pcs-popup {
		transition: none;
	}
}
