/* Asah Sohbet Butonu */
.asah-chat {
	position: fixed;
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	box-sizing: border-box;
	pointer-events: none;
}
.asah-chat__main,
.asah-chat__popup,
.asah-chat.is-open .asah-chat__channel,
.asah-chat.is-single .asah-chat__channel,
.asah-chat.is-static .asah-chat__channel {
	pointer-events: auto;
}
.asah-chat *,
.asah-chat *::before,
.asah-chat *::after {
	box-sizing: border-box;
}
.asah-chat[hidden] {
	display: none !important;
}
.asah-chat--right {
	align-items: flex-end;
}

/* kanallar */
.asah-chat__channels {
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
	width: var(--asah-size);
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.asah-chat--horizontal .asah-chat__channels {
	position: absolute;
	bottom: 0;
	flex-direction: row;
	width: auto;
	height: var(--asah-size);
	transform: translateX(-12px);
}
.asah-chat--horizontal.asah-chat--left .asah-chat__channels {
	left: calc(var(--asah-size) + 10px);
}
.asah-chat--horizontal.asah-chat--right .asah-chat__channels {
	right: calc(var(--asah-size) + 10px);
	flex-direction: row-reverse;
	transform: translateX(12px);
}
.asah-chat.is-open .asah-chat__channels,
.asah-chat.is-single .asah-chat__channels {
	opacity: 1;
	visibility: visible;
	transform: none;
}
.asah-chat__channel {
	position: relative;
	display: block;
	width: var(--asah-size);
	height: var(--asah-size);
	border-radius: 50%;
	text-decoration: none !important;
	box-shadow: none !important;
	outline-offset: 3px;
	transition: transform .2s ease;
}
.asah-chat__channel[hidden] {
	display: none !important;
}
.asah-chat__channel:hover {
	transform: scale(1.08);
}
.asah-chat__icon,
.asah-chat__icon svg,
.asah-chat__icon img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}
.asah-chat__icon img {
	object-fit: cover;
}
.asah-chat__icon--custom .color-element {
	fill: var(--asah-channel-color) !important;
}
.asah-chat__channel--contact_us .asah-chat__icon--custom svg,
.asah-chat__icon--custom svg rect.color-element {
	fill: var(--asah-channel-color);
}

/* ipucu */
.asah-chat__tooltip {
	position: absolute;
	top: 50%;
	white-space: nowrap;
	padding: 5px 10px;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 13px;
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-50%);
	transition: opacity .2s ease;
}
.asah-chat--left .asah-chat__tooltip {
	left: calc(100% + 10px);
}
.asah-chat--right .asah-chat__tooltip {
	right: calc(100% + 10px);
}
.asah-chat--horizontal .asah-chat__channel .asah-chat__tooltip {
	top: auto;
	bottom: calc(100% + 8px);
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
}
.asah-chat__channel:hover .asah-chat__tooltip,
.asah-chat__channel:focus-visible .asah-chat__tooltip,
.asah-chat.is-open .asah-chat__toggle:hover .asah-chat__tooltip--close {
	opacity: 1;
	visibility: visible;
}
@media (hover: none) {
	.asah-chat.is-open .asah-chat__channels .asah-chat__tooltip {
		opacity: 1;
		visibility: visible;
	}
}

/* ana buton */
.asah-chat__main {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}
.asah-chat--right .asah-chat__main {
	flex-direction: row-reverse;
}
.asah-chat__toggle {
	position: relative;
	display: block;
	width: var(--asah-size);
	height: var(--asah-size);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	box-shadow: 0 3px 12px rgba(0,0,0,.18);
	order: -1;
}
.asah-chat--right .asah-chat__toggle {
	order: 0;
}
.asah-chat__toggle:focus-visible {
	outline: 2px solid var(--asah-color);
	outline-offset: 3px;
}
.asah-chat__toggle-open,
.asah-chat__toggle-close {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	overflow: hidden;
	transition: opacity .2s ease, transform .2s ease;
}
.asah-chat__toggle-open svg,
.asah-chat__toggle-open img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.asah-chat__toggle-close {
	opacity: 0;
	transform: rotate(-90deg);
}
.asah-chat__toggle-close svg {
	width: 46%;
	height: 46%;
}
.asah-chat.is-open .asah-chat__toggle-open {
	opacity: 0;
	transform: rotate(90deg);
}
.asah-chat.is-open .asah-chat__toggle-close {
	opacity: 1;
	transform: none;
}
.asah-chat.is-single .asah-chat__main,
.asah-chat.is-static .asah-chat__main {
	display: none;
}
.asah-chat.is-single .asah-chat__channels,
.asah-chat.is-static .asah-chat__channels {
	position: static;
}

/* CTA */
.asah-chat__cta {
	max-width: 240px;
	padding: 8px 14px;
	border-radius: 10px;
	background: var(--asah-cta-bg);
	color: var(--asah-cta-color);
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	font-size: 14px;
	cursor: pointer;
	transition: opacity .2s ease;
}
.asah-chat__cta p {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: inherit;
}
.asah-chat.is-open .asah-chat__cta {
	opacity: 0;
	visibility: hidden;
}

/* bekleyen mesaj rozeti */
.asah-chat__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: var(--asah-badge-bg);
	color: var(--asah-badge-color);
	font-size: 12px;
	line-height: 20px;
	text-align: center;
	font-weight: 600;
}
.asah-chat.is-open .asah-chat__badge,
.asah-chat.badge-seen .asah-chat__badge {
	display: none;
}

/* açılır pencereler */
.asah-chat__popup {
	position: absolute;
	bottom: calc(var(--asah-size) + 16px);
	width: 320px;
	max-width: calc(100vw - 30px);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: #333;
	box-shadow: 0 8px 30px rgba(0,0,0,.2);
	z-index: 2;
}
.asah-chat--left .asah-chat__popup {
	left: 0;
}
.asah-chat--right .asah-chat__popup {
	right: 0;
}
.asah-chat__popup[hidden] {
	display: none;
}
.asah-chat__popup-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 40px 14px 16px;
	color: #fff;
}
.asah-chat__popup-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}
.asah-chat__popup-title {
	font-weight: 600;
	font-size: 15px;
}
.asah-chat__popup-sub {
	font-size: 12px;
	opacity: .85;
}
.asah-chat__popup-close {
	position: absolute;
	top: 8px;
	right: 10px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.asah-chat__popup-body {
	padding: 14px 16px;
	max-height: 60vh;
	overflow: auto;
}
.asah-chat__popup-body--wa {
	min-height: 90px;
	background: #e5ddd5;
}
.asah-chat__bubble {
	display: inline-block;
	max-width: 90%;
	padding: 8px 12px;
	border-radius: 0 10px 10px 10px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0,0,0,.1);
}
.asah-chat__bubble p {
	margin: 0;
}
.asah-chat__wa-form {
	display: flex;
	gap: 6px;
	padding: 10px;
	margin: 0;
	background: #f0f0f0;
}
.asah-chat__wa-form input {
	flex: 1;
	min-width: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 20px;
	font-size: 14px;
}
.asah-chat__wa-form button {
	width: 38px;
	height: 38px;
	padding: 8px;
	border: 0;
	border-radius: 50%;
	background: #4AA485;
	color: #fff;
	cursor: pointer;
}
.asah-chat__wa-form button svg {
	width: 100%;
	height: 100%;
}
.asah-chat__form {
	margin: 0;
}
.asah-chat__field {
	margin-bottom: 10px;
}
.asah-chat__field input,
.asah-chat__field textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font: inherit;
	color: #333;
	background: #fff;
}
.asah-chat__field.has-error input,
.asah-chat__field.has-error textarea {
	border-color: #d63638;
}
.asah-chat__field-error {
	display: block;
	color: #d63638;
	font-size: 12px;
}
.asah-chat__field-error:empty {
	display: none;
}
.asah-chat__submit {
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.asah-chat__submit[disabled] {
	opacity: .6;
}
.asah-chat__form-message {
	margin-top: 8px;
	font-size: 13px;
}
.asah-chat__form-message:empty {
	display: none;
}

/* dikkat efektleri */
@keyframes asah-jump { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } 60% { transform: translateY(-7px); } }
@keyframes asah-waggle { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-12deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-6deg); } }
@keyframes asah-spin { 0%, 60% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes asah-floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes asah-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes asah-blink { 0%, 50%, 100% { opacity: 1; } 25%, 75% { opacity: .35; } }
@keyframes asah-shockwave { 0% { box-shadow: 0 0 0 0 var(--asah-color); } 100% { box-shadow: 0 0 0 16px rgba(0,0,0,0); } }
@keyframes asah-sheen { 0% { transform: translateX(-120%) skewX(-20deg); } 60%, 100% { transform: translateX(220%) skewX(-20deg); } }

.asah-chat:not(.is-open).asah-attention-jump .asah-chat__toggle { animation: asah-jump 3s ease infinite; }
.asah-chat:not(.is-open).asah-attention-waggle .asah-chat__toggle { animation: asah-waggle 3s ease infinite; }
.asah-chat:not(.is-open).asah-attention-spin .asah-chat__toggle-open { animation: asah-spin 3s ease infinite; }
.asah-chat:not(.is-open).asah-attention-floating .asah-chat__toggle { animation: asah-floating 3s ease-in-out infinite; }
.asah-chat:not(.is-open).asah-attention-pulse .asah-chat__toggle,
.asah-chat:not(.is-open).asah-attention-pulse-icon .asah-chat__toggle { animation: asah-pulse 2s ease infinite; }
.asah-chat:not(.is-open).asah-attention-blink .asah-chat__toggle { animation: asah-blink 2s linear infinite; }
.asah-chat:not(.is-open).asah-attention-shockwave .asah-chat__toggle { animation: asah-shockwave 1.6s ease-out infinite; }
.asah-chat:not(.is-open).asah-attention-sheen .asah-chat__toggle-open::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 40%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
	animation: asah-sheen 3s ease infinite;
}

@media (prefers-reduced-motion: reduce) {
	.asah-chat *,
	.asah-chat .asah-chat__toggle {
		animation: none !important;
		transition: none !important;
	}
}
