/* TEK-ISI WhatsApp Butonu */

.tekisi-wa {
	--tekisi-wa-green: #25d366;
	--tekisi-wa-green-dark: #1da851;
	--tekisi-wa-bottom: 24px;
	position: fixed;
	right: 24px;
	bottom: calc(var(--tekisi-wa-bottom) + env(safe-area-inset-bottom, 0px));
	z-index: 9990;
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: inherit;
	pointer-events: none;
}

.tekisi-wa--left {
	right: auto;
	left: 24px;
	flex-direction: row-reverse;
}

.tekisi-wa > * {
	pointer-events: auto;
}

.tekisi-wa__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: var(--tekisi-wa-green);
	color: #fff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
	text-decoration: none !important;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}

.tekisi-wa__button:hover {
	background: var(--tekisi-wa-green-dark);
	transform: scale(1.06);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.tekisi-wa__button:focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}

.tekisi-wa__icon {
	display: block;
}

/* Bilgi balonu: butonun üstünde açılır, yandaki çerez ikonunu örtmez */
.tekisi-wa__bubble {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	box-sizing: border-box;
	width: max-content;
	max-width: 260px;
	padding: 12px 30px 12px 14px;
	background: #fff;
	color: #1f2933;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.tekisi-wa--left .tekisi-wa__bubble {
	right: auto;
	left: 0;
}

.tekisi-wa__bubble.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.tekisi-wa__bubble[hidden] {
	display: none;
}

.tekisi-wa__close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 22px;
	height: 22px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: #6b7280;
	font-size: 18px;
	line-height: 22px;
	cursor: pointer;
	border-radius: 4px;
}

.tekisi-wa__close:hover {
	color: #111;
	background: #f3f4f6;
}

/* İlk açılışta dikkat çeken hafif dalga */
.tekisi-wa__button.is-pulsing {
	animation: tekisi-wa-pulse 2s ease-out 2;
}

@keyframes tekisi-wa-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 6px 18px rgba(0, 0, 0, 0.22); }
	70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 6px 18px rgba(0, 0, 0, 0.22); }
	100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 6px 18px rgba(0, 0, 0, 0.22); }
}

@media (prefers-reduced-motion: reduce) {
	.tekisi-wa__button,
	.tekisi-wa__bubble {
		transition: none;
	}
	.tekisi-wa__button.is-pulsing {
		animation: none;
	}
}

/* Telefon */
@media (max-width: 767px) {
	.tekisi-wa {
		right: 16px;
		bottom: calc(var(--tekisi-wa-bottom) - 8px + env(safe-area-inset-bottom, 0px));
	}
	.tekisi-wa--left {
		left: 16px;
	}
	.tekisi-wa__button {
		width: 45px;
		height: 45px;
	}
	.tekisi-wa__bubble {
		max-width: calc(100vw - 95px);
		font-size: 13px;
	}
	.tekisi-wa--hide-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.tekisi-wa--hide-desktop {
		display: none !important;
	}
}

@media print {
	.tekisi-wa {
		display: none !important;
	}
}

/* Sayfa içi buton: [tekisi_whatsapp] */
.tekisi-wa-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	background: #25d366;
	color: #fff !important;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	border-radius: 6px;
	text-decoration: none !important;
	transition: background-color 0.2s ease;
}

.tekisi-wa-inline:hover {
	background: #1da851;
	color: #fff !important;
}

.tekisi-wa-inline:focus-visible {
	outline: 3px solid #111;
	outline-offset: 3px;
}
