/* LUFT Party — de bubbel en het chatvenster. */

/*
 * WoodMart zet op elke knop :is(.btn,.button,button,[type=submit],[type=button])
 * met position:relative en display:inline-flex. Dat is net zo specifiek als
 * .lp-launcher en staat later in het gecombineerde stylesheet, dus het won —
 * de bubbel kwam als gewoon element onderaan de pagina terecht. Een tag ervoor
 * maakt onze regel specifieker; dat is netter dan !important.
 */
button.lp-launcher,
.lp-venster {
	position: fixed;
	z-index: 99998; /* net onder de zwevende knop van NinjaTeam */
	font-family: inherit;
}

/* --- de bubbel ----------------------------------------------------------- */

/* Het thema zet knoptekst in hoofdletters en rekt de letters op. */
button.lp-launcher,
button.lp-sluiten,
button.lp-keuze,
button.lp-stuur,
.lp-acties a.lp-actie,
.lp-acties button.lp-actie {
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.4;
	min-height: 0;
	min-width: 0;
}

button.lp-launcher {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.lp-launcher-tekst {
	padding: 9px 14px;
	border-radius: 20px 20px 4px 20px;
	background: #fff;
	box-shadow: 0 3px 14px rgba(0, 0, 0, .16);
	color: #1d2327;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
}

.lp-launcher-bol {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #1d4b78;
	box-shadow: 0 3px 14px rgba(0, 0, 0, .22);
	transition: transform .15s ease;
}

button.lp-launcher:hover .lp-launcher-bol {
	transform: scale(1.06);
}

button.lp-launcher[aria-expanded="true"] {
	display: none;
}

/* --- het venster --------------------------------------------------------- */

.lp-venster {
	display: flex;
	flex-direction: column;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 140px);
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
}

.lp-venster[hidden] {
	display: none;
}

.lp-kop {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	background: #1d4b78;
	color: #fff;
}

.lp-kop-robot {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
}

.lp-kop-naam {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	line-height: 1.25;
}

.lp-kop-naam strong {
	font-size: 15px;
}

.lp-kop-naam small {
	opacity: .8;
	font-size: 12px;
}

button.lp-sluiten {
	flex: 0 0 auto;
	padding: 0 4px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

/* --- het gesprek --------------------------------------------------------- */

.lp-gesprek {
	flex: 1 1 auto;
	padding: 14px;
	overflow-y: auto;
	background: #f4f6f8;
	font-size: 14px;
	line-height: 1.45;
}

.lp-rij {
	display: flex;
	margin-bottom: 10px;
}

.lp-rij-klant {
	justify-content: flex-end;
}

.lp-bel {
	max-width: 80%;
	padding: 9px 12px;
	border-radius: 14px 14px 14px 3px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.lp-rij-klant .lp-bel {
	border-radius: 14px 14px 3px 14px;
	background: #1d4b78;
	color: #fff;
}

/* Het bolletjes-animatietje terwijl Party zoekt. */
.lp-denkt .lp-bel {
	display: flex;
	gap: 4px;
	align-items: center;
	padding: 12px;
}

.lp-denkt span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #b4bcc4;
	animation: lp-wip 1s infinite;
}

.lp-denkt span:nth-child(2) {
	animation-delay: .15s;
}

.lp-denkt span:nth-child(3) {
	animation-delay: .3s;
}

@keyframes lp-wip {
	0%, 60%, 100% { transform: translateY(0); }
	30%           { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
	.lp-denkt span {
		animation: none;
	}
}

/* --- keuzeknoppen -------------------------------------------------------- */

.lp-keuzes {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px 0;
}

button.lp-keuze {
	padding: 7px 12px;
	border: 1px solid #c9d4de;
	border-radius: 16px;
	background: #fff;
	color: #1d4b78;
	font-size: 13px;
	cursor: pointer;
}

button.lp-keuze:hover {
	border-color: #1d4b78;
	background: #eaf1f8;
}

button.lp-keuze-overslaan {
	color: #767676;
}

.lp-jaar {
	display: flex;
	gap: 6px;
	margin-bottom: 12px;
}

.lp-jaar select {
	flex: 1 1 auto;
	max-width: 140px;
}

/* --- productkaarten ------------------------------------------------------ */

.lp-kaarten {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

a.lp-kaart {
	display: block;
	padding: 8px;
	border: 1px solid #e3e8ed;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

a.lp-kaart:hover {
	border-color: #1d4b78;
}

a.lp-kaart img {
	display: block;
	width: 100%;
	height: 84px;
	margin-bottom: 6px;
	object-fit: contain;
}

.lp-kaart-naam {
	display: block;
	font-size: 12px;
	line-height: 1.3;
}

.lp-kaart-sku {
	display: block;
	color: #767676;
	font-size: 11px;
}

.lp-kaart-prijs {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	font-weight: 600;
}

.lp-acties {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.lp-acties a.lp-actie,
.lp-acties button.lp-actie {
	padding: 8px 12px;
	border: 0;
	border-radius: 16px;
	background: #1d4b78;
	color: #fff;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.lp-acties a.lp-actie-wa {
	background: #25d366;
}

.lp-acties button.lp-actie-leeg {
	border: 1px solid #c9d4de;
	background: #fff;
	color: #1d4b78;
}

/* --- invoer -------------------------------------------------------------- */

.lp-invoer {
	display: flex;
	gap: 6px;
	padding: 10px;
	border-top: 1px solid #e3e8ed;
	background: #fff;
}

.lp-veld {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid #c9d4de;
	border-radius: 18px;
	font-size: 14px;
}

button.lp-stuur {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #1d4b78;
	color: #fff;
	cursor: pointer;
}

/* Op een smal scherm vult het venster het beeld. */
@media (max-width: 480px) {
	.lp-venster {
		top: 0;
		right: 0 !important;
		bottom: 0 !important;
		left: 0;
		width: auto;
		height: auto;
		max-height: none;
		border-radius: 0;
	}
}

/*
 * De pijl op de verstuurknop stond op currentColor, en die kleur zet het thema
 * naar zich toe — dan zie je een lege bol. Nu een vaste witte vulling.
 */
button.lp-stuur .lp-pijl {
	display: block;
	width: 20px;
	height: 20px;
}

button.lp-stuur .lp-pijl path {
	fill: #fff;
}

.lp-hulp {
	margin: 2px 0 8px;
	color: #767676;
	font-size: 12px;
	line-height: 1.4;
}

/*
 * De verzendknop: padding nul, en de pijl mag niet krimpen.
 *
 * Twee keer heb ik hier naar de kleur van de pijl gekeken terwijl het de
 * breedte was. Gemeten op de live site: de svg was 0 pixels breed. WoodMart
 * zet op elke knop padding 5px 20px, en bij een knop van 38 breed blijft er
 * dan niets over voor de inhoud. Als flex-item kromp de pijl dus naar nul —
 * wit, zichtbaar en onvindbaar.
 */
button.lp-stuur {
	box-sizing: border-box;
	padding: 0;
	min-width: 0;
}

button.lp-stuur .lp-pijl {
	flex: 0 0 auto;
}
