/* IDigital Chat Resepsiyonist — widget stilleri */
#idigchat-root {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#idigchat-fab {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: #0f62fe;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease, opacity .2s ease;
}
#idigchat-fab:hover { transform: scale(1.06); }
#idigchat-fab.hidden { opacity: 0; pointer-events: none; }
.idigchat-fab-ico { font-size: 28px; line-height: 1; }

#idigchat-panel {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 372px;
	max-width: calc(100vw - 40px);
	height: 540px;
	max-height: calc(100vh - 40px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(16px);
	opacity: 0;
	pointer-events: none;
	transition: transform .18s ease, opacity .18s ease;
}
#idigchat-panel.open {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}

#idigchat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	background: #0f62fe;
	color: #fff;
	font-weight: 600;
}
#idigchat-head-title { font-size: 15px; }
.idigchat-head-actions { display: flex; align-items: center; gap: 2px; }
#idigchat-close,
#idigchat-reset {
	background: none;
	border: none;
	color: #fff;
	font-size: 16px;
	cursor: pointer;
	opacity: .85;
	line-height: 1;
	padding: 2px 6px;
	border-radius: 6px;
	transition: opacity .15s ease, background .15s ease;
}
#idigchat-close:hover,
#idigchat-reset:hover { opacity: 1; background: rgba(255, 255, 255, .18); }
#idigchat-reset { font-size: 17px; }

#idigchat-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f2f4f7;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.idigchat-msg { display: flex; max-width: 85%; }
.idigchat-msg.user { align-self: flex-end; justify-content: flex-end; }
.idigchat-msg.bot { align-self: flex-start; }
.idigchat-bubble {
	padding: 10px 13px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-break: break-word;
	color: #1a1a1a;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.idigchat-msg.user .idigchat-bubble {
	background: #0f62fe;
	color: #fff;
	border-bottom-right-radius: 4px;
}
.idigchat-msg.bot .idigchat-bubble { border-bottom-left-radius: 4px; }

.idigchat-typing { display: inline-flex; gap: 4px; align-items: center; padding: 6px 2px; }
.idigchat-typing span {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #9aa3af;
	animation: idigchat-blink 1.2s infinite both;
}
.idigchat-typing span:nth-child(2) { animation-delay: .2s; }
.idigchat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes idigchat-blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

#idigchat-footer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #eceef1;
	background: #fff;
}
#idigchat-input {
	flex: 1;
	border: 1px solid #d6dae0;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 14px;
	resize: none;
	font-family: inherit;
	max-height: 120px;
	line-height: 1.4;
	box-sizing: border-box;
}
#idigchat-input:focus { outline: none; border-color: #0f62fe; }
#idigchat-send {
	border: none;
	border-radius: 10px;
	background: #0f62fe;
	color: #fff;
	width: 38px;
	height: 38px;
	font-size: 16px;
	cursor: pointer;
	flex-shrink: 0;
}
#idigchat-send:disabled { opacity: .55; cursor: default; }

/* Honeypot: kullanıcılar göremez, botlar doldurur */
#idigchat-website {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
/* İlk adım: iletişim bilgisi formu — temayla uyumlu karşılama kartı */
#idigchat-form {
	display: none;
	flex: 1;
	flex-direction: column;
	justify-content: center;
	padding: 22px 20px 24px;
	background: #f7f9fc;
	overflow-y: auto;
}
.idigchat-form-lang {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	gap: 4px;
}
.idigchat-form-lang label { font-size: 15px; margin: 0; }
.idigchat-form-lang select {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #fff;
	color: #344054;
	font-size: 12px;
	font-family: inherit;
	padding: 4px 6px;
	max-width: 130px;
	cursor: pointer;
	outline: none;
}
.idigchat-form-lang select:focus { border-color: #0f62fe; }
.idigchat-form-head { text-align: center; margin-bottom: 18px; }
.idigchat-form-avatar {
	width: 46px;
	height: 46px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, #0f62fe, #3b82f6);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	box-shadow: 0 4px 12px rgba(15, 98, 254, .25);
}
.idigchat-form-title {
	font-size: 15.5px;
	font-weight: 700;
	color: #101828;
	line-height: 1.35;
}
.idigchat-form-sub {
	font-size: 12.5px;
	color: #667085;
	margin-top: 5px;
	line-height: 1.5;
}
#idigchat-form label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #344054;
	margin: 0 0 12px;
}
#idigchat-form label span { color: #d92d20; }
#idigchat-form input[type="text"],
#idigchat-form input[type="tel"],
#idigchat-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	border: 1.5px solid #d0d5dd;
	border-radius: 10px;
	padding: 11px 13px;
	font-size: 13.5px;
	font-family: inherit;
	color: #101828;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
#idigchat-form input[type="text"]::placeholder,
#idigchat-form input[type="tel"]::placeholder,
#idigchat-form input[type="email"]::placeholder { color: #98a2b3; }
#idigchat-form input[type="text"]:focus,
#idigchat-form input[type="tel"]:focus,
#idigchat-form input[type="email"]:focus {
	outline: none;
	border-color: #0f62fe;
	box-shadow: 0 0 0 3px rgba(15, 98, 254, .14);
}
#idigchat-form-go {
	width: 100%;
	margin-top: 4px;
	border: none;
	border-radius: 10px;
	background: #0f62fe;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 13px;
	cursor: pointer;
	font-family: inherit;
	transition: background .15s ease, transform .1s ease;
	box-shadow: 0 2px 8px rgba(15, 98, 254, .28);
}
#idigchat-form-go:hover { background: #0b54d5; transform: translateY(-1px); }
#idigchat-form-go:active { transform: translateY(0); }
.idigchat-form-err {
	color: #b42318;
	font-size: 12px;
	margin-top: 10px;
	background: #fef3f2;
	border: 1px solid #fecdca;
	border-radius: 8px;
	padding: 8px 10px;
	display: none;
}
.idigchat-form-err:not(:empty) { display: block; }
.idigchat-form-note {
	font-size: 11.5px;
	color: #98a2b3;
	text-align: center;
	margin-top: 12px;
	line-height: 1.5;
}
#idigchat-turnstile {
	margin: 8px 12px 0;
}
#idigchat-turnstile iframe {
	max-width: 100% !important;
}

@media (max-width: 480px) {
	#idigchat-panel {
		right: 10px;
		bottom: 10px;
		width: calc(100vw - 20px);
		height: calc(100vh - 20px);
		max-height: none;
		border-radius: 14px;
	}
	#idigchat-fab { right: 10px; bottom: 10px; }
}
