/* XWhite Sticky Bar — fixed bottom banner (rendered on body via wp_footer) */
body > .xw-sticky-bar,
.xw-sticky-bar {
	--xw-sb-bg: #ffffff;
	--xw-sb-text: #030303;
	--xw-sb-brand: #23A3B6;
	--xw-sb-font: Inter, sans-serif;

	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 90 !important;
	box-sizing: border-box;
	padding: 14px 32px;
	background: var(--xw-sb-bg) !important;
	border: none;
	border-top: 2px solid var(--xw-sb-brand) !important;
	display: flex !important;
	justify-content: center;
	align-items: center;
	font-family: var(--xw-sb-font);
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.xw-sticky-bar *,
.xw-sticky-bar *::before,
.xw-sticky-bar *::after {
	box-sizing: border-box;
	font-family: var(--xw-sb-font);
}

.xw-sticky-bar.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.xw-sticky-bar__container {
	width: 100%;
	max-width: 1180px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.xw-sticky-bar__left {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.xw-sticky-bar__media {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #f4f7f8;
}

.xw-sticky-bar__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.xw-sticky-bar__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

.xw-sticky-bar__name {
	display: block;
	font-family: var(--xw-sb-font);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--xw-sb-text) !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.xw-sticky-bar__price {
	display: block;
	font-family: var(--xw-sb-font);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--xw-sb-text) !important;
}

.xw-sticky-bar__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}

.xw-sticky-bar__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
	font-family: var(--xw-sb-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 999px !important;
	padding: 14px 28px !important;
	border: 1px solid var(--xw-sb-brand) !important;
	color: #ffffff !important;
	background: var(--xw-sb-brand) !important;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.xw-sticky-bar__btn:hover,
.xw-sticky-bar__btn:focus {
	background: #ffffff !important;
	color: var(--xw-sb-brand) !important;
	border-color: var(--xw-sb-brand) !important;
}

.xw-sticky-bar__btn:disabled,
.xw-sticky-bar__btn.is-loading {
	opacity: 0.75;
	cursor: wait;
	pointer-events: none;
}

.xw-sticky-bar__btn.is-success {
	background: var(--xw-sb-brand) !important;
	color: #ffffff !important;
}

.xw-sticky-bar__btn.is-error {
	background: #c44 !important;
	border-color: #c44 !important;
	color: #ffffff !important;
}

@media (max-width: 1023px) {
	body > .xw-sticky-bar,
	.xw-sticky-bar {
		display: none !important;
		pointer-events: none !important;
		opacity: 0 !important;
		visibility: hidden !important;
	}
}

/* Chaty / WhatsApp por encima del sticky bar */
.chaty-widget,
#chaty-widget,
div[id^="chaty-widget"],
.chaty-channel {
	z-index: 100000 !important;
}

/* Cuando el banner está visible, subir el icono para que no quede tapado */
body.xw-sticky-bar-active .chaty-widget,
body.xw-sticky-bar-active #chaty-widget,
body.xw-sticky-bar-active div[id^="chaty-widget"] {
	bottom: 100px !important;
}

@media (max-width: 768px) {
	.xw-sticky-bar {
		padding: 12px 16px;
	}

	.xw-sticky-bar__container {
		gap: 12px;
	}

	.xw-sticky-bar__left {
		gap: 10px;
	}

	.xw-sticky-bar__media {
		width: 44px;
		height: 44px;
		border-radius: 6px;
	}

	.xw-sticky-bar__name {
		font-size: 11px;
		letter-spacing: 0.06em;
	}

	.xw-sticky-bar__price {
		font-size: 18px;
	}

	.xw-sticky-bar__btn {
		padding: 12px 18px !important;
		font-size: 11px;
		letter-spacing: 0.08em;
		white-space: nowrap;
	}
}
