/* GCG Core – zwevende WhatsApp-knop. Kleuren en maten volgen de eerdere Joinchat-knop. */
.gcg-wa {
	--gcg-wa-color: #25d366;
	--gcg-wa-hover: #1ebe5a;
	--gcg-wa-size: 60px;
	--gcg-wa-sep: 20px;
	position: fixed;
	z-index: 9000;
	bottom: var(--gcg-wa-sep);
	left: var(--gcg-wa-sep);
	font: 16px/1.625 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: rgba(0, 0, 0, .8);
	animation: gcg-wa-show .5s cubic-bezier(.18, .89, .32, 1.28) var(--gcg-wa-delay, 2s) both;
	transform-origin: 30px 30px;
}
.gcg-wa--right { left: auto; right: var(--gcg-wa-sep); }

.gcg-wa__button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--gcg-wa-size);
	height: var(--gcg-wa-size);
	border-radius: 50%;
	background: var(--gcg-wa-color);
	color: #fff !important;
	box-shadow: 1px 6px 24px 0 rgba(7, 94, 84, .24);
	margin: 8px;
	transition: background-color .2s linear;
}
.gcg-wa__button:hover,
.gcg-wa__button:focus-visible { background: var(--gcg-wa-hover); }
.gcg-wa__button:focus-visible,
.gcg-wa__close:focus-visible,
.gcg-wa__open:focus-visible { outline: 2px solid #075e54; outline-offset: 3px; }
.gcg-wa__button > svg { width: 60%; height: 60%; }

.gcg-wa__tooltip {
	position: absolute;
	top: 14px;
	left: calc(16px + var(--gcg-wa-size));
	height: 32px;
	padding: 0 14px;
	border-radius: 16px;
	background: #fff;
	color: rgba(0, 0, 0, .8);
	font-size: 16px;
	line-height: 31px;
	white-space: nowrap;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4));
	pointer-events: none;
	animation: gcg-wa-tooltip 20s linear 5s 1 both;
}
.gcg-wa__tooltip::after {
	content: "";
	position: absolute;
	top: 10px;
	left: -6px;
	border: solid transparent;
	border-width: 6px 8px 6px 0;
	border-right-color: #fff;
}
.gcg-wa--right .gcg-wa__tooltip { left: auto; right: calc(16px + var(--gcg-wa-size)); }
.gcg-wa--right .gcg-wa__tooltip::after { left: auto; right: -6px; border-width: 6px 0 6px 8px; border-color: transparent transparent transparent #fff; }
@media (hover: hover) {
	.gcg-wa__button:hover .gcg-wa__tooltip { animation: none; opacity: 1; }
}

/* Venster */
.gcg-wa__box {
	position: absolute;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: calc(100vw - 2 * var(--gcg-wa-sep));
	max-width: 400px;
	border-radius: 32px;
	overflow: hidden;
	background: #f6fcf8;
	box-shadow: 0 2px 6px 0 rgba(0, 0, 0, .5);
	animation: gcg-wa-show .3s cubic-bezier(.18, .89, .32, 1.28) both;
	transform-origin: 30px calc(100% - 30px);
}
.gcg-wa--right .gcg-wa__box { left: auto; right: 0; transform-origin: calc(100% - 30px) calc(100% - 30px); }
.gcg-wa__box[hidden] { display: none; }
.gcg-wa--open .gcg-wa__button { display: none; }

.gcg-wa__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 70px;
	padding: 0 24px 0 26px;
	background: var(--gcg-wa-color);
	color: #fff;
}
.gcg-wa__brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.gcg-wa__brand svg { width: 28px; height: 28px; }
.gcg-wa__close {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='M24 2.4 21.6 0 12 9.6 2.4 0 0 2.4 9.6 12 0 21.6 2.4 24l9.6-9.6 9.6 9.6 2.4-2.4-9.6-9.6z'/%3E%3C/svg%3E") 50% / 12px no-repeat;
	cursor: pointer;
	transition: background-color .2s linear;
}
.gcg-wa__close:hover { background-color: rgba(0, 0, 0, .6); }

.gcg-wa__body { box-sizing: border-box; min-height: 120px; padding: 20px 0 12px; }
.gcg-wa__bubble {
	position: relative;
	display: inline-block;
	max-width: calc(100% - 52px);
	margin: 0 26px;
	padding: 15px 20px;
	border-radius: 26px;
	background: #fff;
	color: #4a4a4a;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3));
	animation: gcg-wa-show .22s cubic-bezier(0, 0, .58, 1.19) .1s both;
	transform-origin: 0 50%;
}

.gcg-wa__open {
	display: flex;
	align-items: center;
	align-self: flex-start;
	gap: 10px;
	height: var(--gcg-wa-size);
	margin: 0 8px 8px;
	padding: 0 6px 0 22px;
	border-radius: 30px;
	background: var(--gcg-wa-color);
	color: #fff !important;
	font-weight: 600;
	text-decoration: none !important;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .3);
	transition: background-color .2s linear;
}
.gcg-wa--right .gcg-wa__open { align-self: flex-end; }
.gcg-wa__open:hover { background: var(--gcg-wa-hover); }
.gcg-wa__open svg { width: 30px; height: 30px; margin: 0 9px; }

@keyframes gcg-wa-show {
	from { transform: scale3d(0, 0, 0); }
	to { transform: scale3d(1, 1, 1); }
}
@keyframes gcg-wa-tooltip {
	0% { opacity: 0; }
	1%, 20% { opacity: 1; }
	25%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.gcg-wa, .gcg-wa__box, .gcg-wa__bubble { animation-duration: .01s; }
	.gcg-wa__tooltip { animation: none; opacity: 0; }
}
@media print {
	.gcg-wa { display: none; }
}
