/* Assistant Paintball.be : bulle de discussion */
.pbbe-chat {
	--pbbe-accent: var(--theme-color-text_link, #e4352a);
	--pbbe-dark: #1e1e21;
	--pbbe-light: #f3f4f6;
	position: fixed;
	right: 20px;
	bottom: calc(20px + var(--pbbe-offset, 0px));
	z-index: 99990;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
}
.pbbe-chat *,
.pbbe-chat *::before,
.pbbe-chat *::after {
	box-sizing: border-box;
}
.pbbe-chat svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.pbbe-chat button {
	font: inherit;
	cursor: pointer;
}

.pbbe-chat__bubble {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pbbe-accent);
	color: var(--pbbe-dark); /* icône foncée : contraste suffisant sur le bleu du site */
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s ease;
}
.pbbe-chat__bubble svg {
	width: 28px;
	height: 28px;
}
.pbbe-chat__bubble:hover {
	transform: scale(1.06);
}
.pbbe-chat__bubble:focus-visible,
.pbbe-chat__panel button:focus-visible,
.pbbe-chat__input:focus-visible {
	outline: 3px solid var(--pbbe-dark);
	outline-offset: 2px;
}
.pbbe-chat.is-open .pbbe-chat__bubble {
	display: none;
}

.pbbe-chat__panel {
	display: none;
	flex-direction: column;
	width: 370px;
	height: min(600px, calc(100vh - 40px - var(--pbbe-offset, 0px)));
	overflow: hidden;
	border-radius: 14px;
	background: #fff;
	color: var(--pbbe-dark);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.pbbe-chat.is-open .pbbe-chat__panel {
	display: flex;
}
.pbbe-chat__panel:focus {
	outline: none; /* focus posé par programme (mobile), pas par le clavier */
}

.pbbe-chat__head {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 10px 12px 16px;
	background: var(--pbbe-dark);
	color: #fff;
}
.pbbe-chat__title {
	flex: 1;
	font-size: 16px;
	color: #fff;
}
.pbbe-chat__icon {
	display: flex;
	padding: 6px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #fff;
}
.pbbe-chat__icon svg {
	width: 20px;
	height: 20px;
}
.pbbe-chat__icon:hover {
	background: rgba(255, 255, 255, 0.15);
}

.pbbe-chat__log {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: var(--pbbe-light);
}
.pbbe-chat__msg {
	display: flex;
	flex-direction: column;
	margin-bottom: 10px;
}
.pbbe-chat__msg--user {
	align-items: flex-end;
}
.pbbe-chat__text {
	max-width: 88%;
	padding: 9px 13px;
	border-radius: 14px;
	background: #fff;
	color: var(--pbbe-dark);
	overflow-wrap: anywhere;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.pbbe-chat__msg--user .pbbe-chat__text {
	background: var(--pbbe-dark);
	color: #fff;
	white-space: pre-wrap;
}
.pbbe-chat__text p {
	margin: 0 0 6px;
}
.pbbe-chat__text p:last-child,
.pbbe-chat__text ul:last-child {
	margin-bottom: 0;
}
.pbbe-chat__text ul {
	margin: 0 0 6px;
	padding-left: 18px;
}
.pbbe-chat__text li {
	margin: 0 0 2px;
}
.pbbe-chat__text a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
}
.pbbe-chat__rate {
	margin-top: 4px;
	font-size: 13px;
	color: #555;
}
.pbbe-chat__rate-btn {
	margin-right: 4px;
	padding: 2px 6px;
	border: 1px solid #d0d3d9;
	border-radius: 6px;
	background: #fff;
	line-height: 1.2;
}
.pbbe-chat__rate-btn:hover {
	border-color: var(--pbbe-dark);
}

.pbbe-chat__typing {
	display: inline-flex;
	gap: 4px;
	padding: 4px 0;
}
.pbbe-chat__typing i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9aa0a8;
	animation: pbbe-chat-dot 1s infinite ease-in-out;
}
.pbbe-chat__typing i:nth-child(2) {
	animation-delay: 0.15s;
}
.pbbe-chat__typing i:nth-child(3) {
	animation-delay: 0.3s;
}
@keyframes pbbe-chat-dot {
	0%, 80%, 100% { opacity: 0.3; }
	40% { opacity: 1; }
}

.pbbe-chat__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0 14px 10px;
	background: var(--pbbe-light);
}
.pbbe-chat__chips[hidden] {
	display: none;
}
.pbbe-chat__chip {
	padding: 5px 11px;
	border: 1px solid var(--pbbe-dark);
	border-radius: 16px;
	background: #fff;
	color: var(--pbbe-dark);
	font-size: 14px;
}
.pbbe-chat__chip:hover {
	background: var(--pbbe-dark);
	color: #fff;
}

.pbbe-chat__form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 10px;
	border-top: 1px solid #e3e5e9;
	background: #fff;
}
.pbbe-chat__input {
	flex: 1;
	min-height: 40px;
	max-height: 120px;
	margin: 0;
	padding: 9px 12px;
	border: 1px solid #b5bac4;
	border-radius: 10px;
	background: #fff;
	color: var(--pbbe-dark);
	font: inherit;
	font-size: 16px; /* évite le zoom automatique sur iPhone */
	line-height: 1.35;
	resize: none;
}
.pbbe-chat__send {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 54px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--pbbe-accent);
	color: var(--pbbe-dark);
}
.pbbe-chat__send:disabled {
	opacity: 0.5;
	cursor: wait;
}
.pbbe-chat__notice {
	margin: 0;
	padding: 0 12px 10px;
	background: #fff;
	font-size: 12px;
	line-height: 1.35;
	color: #5a5f69;
}
.pbbe-chat__notice a {
	color: inherit;
	text-decoration: underline;
}

/* Le thème colore tous les boutons (texte et survol) : ces règles, plus prioritaires, gardent les couleurs de la bulle. */
#pbbe-chat .pbbe-chat__bubble,
#pbbe-chat .pbbe-chat__send,
#pbbe-chat .pbbe-chat__bubble:hover,
#pbbe-chat .pbbe-chat__send:hover {
	background: var(--pbbe-accent);
	color: var(--pbbe-dark);
}
/* Bouton d'envoi : le thème lui impose une marge intérieure (15 px × 36 px) qui le rend plus haut que le champ.
   Hauteur = celle du champ sur une ligne (42 px) ; largeur 54 px sur ordinateur, 86 px sur mobile. */
#pbbe-chat .pbbe-chat__send {
	flex: 0 0 54px;
	width: 54px;
	height: 42px;
	min-height: 0;
	padding: 0;
}
@media (max-width: 600px) {
	#pbbe-chat .pbbe-chat__send {
		flex-basis: 86px;
		width: 86px;
	}
}
#pbbe-chat .pbbe-chat__icon {
	background: transparent;
	color: #fff;
}
#pbbe-chat .pbbe-chat__icon:hover {
	background: rgba(255, 255, 255, 0.15);
}
#pbbe-chat .pbbe-chat__chip,
#pbbe-chat .pbbe-chat__rate-btn {
	background: #fff;
	color: var(--pbbe-dark);
}
#pbbe-chat .pbbe-chat__chip:hover {
	background: var(--pbbe-dark);
	color: #fff;
}

@media (max-width: 600px) {
	.pbbe-chat {
		right: 14px;
		bottom: calc(14px + var(--pbbe-offset, 0px));
	}
	.pbbe-chat.is-open {
		top: 0;
		right: 0;
		bottom: var(--pbbe-offset, 0px);
		left: 0;
	}
	.pbbe-chat__panel {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
}

/* Bouton « retour en haut » du thème : placé au-dessus de la bulle, centré sur elle (sinon la bulle le recouvre).
   --pbbe-offset = hauteur du bandeau cookies quand il est affiché (calculée par chat.js). */
html.pbbe-has-chat .trx_addons_scroll_to_top.show {
	right: 28px;
	bottom: calc(90px + var(--pbbe-offset, 0px));
}
@media (max-width: 600px) {
	html.pbbe-has-chat .trx_addons_scroll_to_top.show {
		right: 22px;
		bottom: calc(84px + var(--pbbe-offset, 0px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.pbbe-chat__bubble,
	.pbbe-chat__typing i {
		transition: none;
		animation: none;
	}
}

@media print {
	.pbbe-chat {
		display: none;
	}
}
