/* Luco Pedidos WhatsApp · tienda */
:root { --lpw-wa: #25D366; --lpw-wa-dark: #128C7E; --lpw-accent: #1B2E74; }

.lpw-wrap { width: 100%; }
.lpw-wrap--product { margin-top: 12px; }
form.cart .lpw-wrap--product { flex-basis: 100%; }
.lpw-wrap--loop { margin-top: 8px; }
.lpw-wrap--cart, .lpw-wrap--thanks { margin-top: 12px; }

.lpw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 46px; padding: 0 24px; border: 0; border-radius: var(--btn-accented-brd-radius, 35px);
	background: var(--lpw-wa); color: #fff !important; font-weight: 600; font-size: 15px; line-height: 1.2;
	text-transform: none; letter-spacing: 0; text-decoration: none !important; cursor: pointer;
	transition: background-color .2s, transform .15s, box-shadow .2s; box-shadow: 0 2px 0 rgba(0,0,0,.06);
}
.lpw-btn:hover, .lpw-btn:focus-visible { background: var(--lpw-wa-dark); color: #fff !important; }
.lpw-btn:focus-visible { outline: 2px solid var(--lpw-wa-dark); outline-offset: 3px; }
.lpw-btn:active { transform: scale(.98); }
.lpw-btn .lpw-ico { flex: none; }
.lpw-btn.is-loading { opacity: .7; pointer-events: none; }
.lpw-wrap--product .lpw-btn, .lpw-btn--block { width: 100%; }
.lpw-btn--small { min-height: 38px; padding: 0 16px; font-size: 13px; width: 100%; }

/* Estilos */
.lpw-style-brand .lpw-btn { background: var(--lpw-accent); }
.lpw-style-brand .lpw-btn:hover { background: var(--lpw-accent); filter: brightness(1.15); }
.lpw-style-theme .lpw-btn { background: var(--btn-accented-bgcolor, var(--wd-primary-color, #333)); }
.lpw-style-theme .lpw-btn:hover { background: var(--btn-accented-bgcolor-hover, var(--wd-primary-color, #333)); filter: brightness(1.1); }

/* Ocultar Añadir al carrito cuando el producto tiene botón de WhatsApp */
.lpw-hide-atc form.cart:has(.lpw-btn) .single_add_to_cart_button,
.lpw-hide-atc form.cart:has(.lpw-btn) .wd-buy-now-btn { display: none !important; }

.lpw-note { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #555; }
.lpw-note.is-error { color: #B42318; }
.lpw-consent { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13px; line-height: 1.4; cursor: pointer; text-align: left; }
.lpw-consent input { margin-top: 2px; flex: none; }
.lpw-consent a { text-decoration: underline; }

/* Escalera */
.lpw-ladder { width: 100%; flex-basis: 100%; margin: 4px 0 16px; border: 1px solid rgba(0,0,0,.1); border-radius: 14px; padding: 6px 16px; background: #fff; }
.lpw-ladder__title { margin: 10px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #555; }
.lpw-ladder__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; margin: 0; background: none !important; border: 0; border-top: 1px solid rgba(0,0,0,.08); border-radius: 0; color: inherit !important; font: inherit; text-align: left; cursor: pointer; text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; }
.lpw-ladder__title + .lpw-ladder__row { border-top: 0; }
.lpw-ladder__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c8c8c8; flex: none; transition: border .15s; }
.lpw-ladder__row.is-active .lpw-ladder__radio { border: 5px solid var(--lpw-accent); }
.lpw-ladder__label { flex: 1; font-weight: 600; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.lpw-ladder__off { font-style: normal; font-size: 12px; font-weight: 700; color: #137A43; background: #E3F5EA; padding: 2px 8px; border-radius: 99px; }
.lpw-ladder__pop { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--lpw-accent); padding: 3px 8px; border-radius: 99px; }
.lpw-ladder__price { font-weight: 700; white-space: nowrap; }
.lpw-ladder__price .woocommerce-Price-amount { color: inherit; }
.lpw-cart-off { color: #137A43; font-weight: 700; }

/* Flotante */
.lpw-float {
	position: fixed; bottom: 22px; z-index: 9990; display: flex; align-items: center; gap: 10px;
	background: var(--lpw-wa); color: #fff !important; text-decoration: none !important;
	border-radius: 99px; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .2s, background .2s;
}
.lpw-float:hover { background: var(--lpw-wa-dark); transform: translateY(-2px); }
.lpw-float--right { right: 22px; }
.lpw-float--left { left: 22px; }
.lpw-float__label { font-weight: 600; font-size: 15px; padding-right: 8px; }
.lpw-style-brand .lpw-float { background: var(--lpw-accent); }
@media (max-width: 768px) {
	.lpw-float__label { display: none; }
	.lpw-float { bottom: 16px; }
	.lpw-float--right { right: 16px; }
	.lpw-float--left { left: 16px; }
	.lpw-float--desktop { display: none; }
}
@media (min-width: 769px) { .lpw-float--mobile { display: none; } }
@media (prefers-reduced-motion: reduce) { .lpw-btn, .lpw-float { transition: none; } }
