/**
 * AI Catering Danışmanı — arayüz stilleri
 * Ulusoy / catering siteleriyle uyumlu, sıcak ve kurumsal ton
 */

/* Sol sütun: danışman + WhatsApp üst üste */
.floating-contact-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	pointer-events: auto;
}

/* Tetikleyici buton (WhatsApp’ın üstünde) */
.floating-consultant-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 0 18px;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	font-family: var(--default-font, "Plus Jakarta Sans", system-ui, sans-serif);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #fff;
	background: linear-gradient(135deg, #8b4513 0%, #c4a574 45%, #6b3a0f 100%);
	box-shadow:
		0 4px 0 rgba(0, 0, 0, 0.12),
		0 20px 50px rgba(107, 58, 15, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.25);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	white-space: nowrap;
}

.floating-consultant-trigger:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow:
		0 4px 0 rgba(0, 0, 0, 0.1),
		0 26px 60px rgba(107, 58, 15, 0.42);
}

.floating-consultant-trigger:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(196, 165, 116, 0.45), 0 20px 50px rgba(107, 58, 15, 0.35);
}

.floating-consultant-trigger i {
	font-size: 20px;
	line-height: 1;
}

@media (max-width: 576px) {
	.floating-consultant-trigger {
		min-height: 52px;
		padding: 0 14px;
		font-size: 14px;
		width: 100%;
		justify-content: center;
		border-radius: 16px;
	}
	/* Alt satır WhatsApp + Telefon grid düzeni custom.css içinde (:has ile) */
}

/* Overlay */
.cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	background: rgba(18, 16, 14, 0.55);
	backdrop-filter: blur(6px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cc-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.cc-panel {
	width: 100%;
	max-width: 440px;
	max-height: min(92vh, 720px);
	margin: 0 auto;
	background: linear-gradient(180deg, #fffdf9 0%, #f7f2ea 100%);
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	border: 1px solid rgba(196, 165, 116, 0.35);
	border-bottom: none;
}

.cc-overlay.is-open .cc-panel {
	transform: translateY(0);
}

@media (min-width: 480px) {
	.cc-overlay {
		align-items: center;
		padding: 24px;
	}

	.cc-panel {
		border-radius: 20px;
		max-height: min(88vh, 680px);
		box-shadow: 0 32px 80px rgba(0, 0, 0, 0.2);
	}
}

/* Başlık */
.cc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background: linear-gradient(135deg, #6b2d2d 0%, #8d1215 50%, #5c2418 100%);
	color: #fff;
	flex-shrink: 0;
}

.cc-header-title {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	margin: 0;
}

.cc-header-sub {
	font-size: 12px;
	opacity: 0.88;
	margin: 4px 0 0;
	font-weight: 500;
}

.cc-close {
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: background 0.15s ease;
	flex-shrink: 0;
}

.cc-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* İlerleme */
.cc-progress-wrap {
	padding: 10px 18px 0;
	flex-shrink: 0;
}

.cc-progress-track {
	height: 6px;
	border-radius: 999px;
	background: rgba(107, 45, 45, 0.12);
	overflow: hidden;
}

.cc-progress-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #c4a574, #8d1215);
	width: 0%;
	transition: width 0.35s ease;
}

.cc-progress-label {
	font-size: 11px;
	font-weight: 700;
	color: #6b5344;
	margin-top: 6px;
	text-align: center;
}

/* Sohbet alanı */
.cc-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	-webkit-overflow-scrolling: touch;
}

.cc-msg {
	max-width: 92%;
	padding: 12px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.55;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.cc-msg--bot {
	align-self: flex-start;
	background: #fff;
	border: 1px solid rgba(196, 165, 116, 0.35);
	color: #3d3429;
	border-bottom-left-radius: 6px;
}

.cc-msg--user {
	align-self: flex-end;
	background: linear-gradient(135deg, #8d1215, #6b2d2d);
	color: #fff;
	border-bottom-right-radius: 6px;
}

/* Seçenekler */
.cc-actions {
	padding: 0 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-shrink: 0;
}

.cc-chip-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cc-chip {
	padding: 10px 14px;
	border-radius: 12px;
	border: 2px solid rgba(141, 18, 21, 0.2);
	background: #fff;
	color: #5c4033;
	font-size: 13px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
	text-align: left;
}

.cc-chip:hover {
	border-color: #8d1215;
	background: #fff5f5;
	color: #8d1215;
}

.cc-input-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.cc-input {
	flex: 1;
	min-width: 120px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 2px solid rgba(196, 165, 116, 0.45);
	font-size: 14px;
	font-family: inherit;
	background: #fff;
}

.cc-input:focus {
	outline: none;
	border-color: #8d1215;
	box-shadow: 0 0 0 3px rgba(141, 18, 21, 0.12);
}

.cc-btn-primary {
	padding: 12px 18px;
	border-radius: 12px;
	border: none;
	background: linear-gradient(135deg, #8d1215, #6b2d2d);
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: filter 0.15s, transform 0.15s;
}

.cc-btn-primary:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.cc-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Sonuç kartı */
.cc-result-card {
	background: #fff;
	border: 1px solid rgba(196, 165, 116, 0.45);
	border-radius: 16px;
	padding: 14px 16px;
	margin-top: 4px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.cc-result-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(141, 18, 21, 0.1);
	color: #8d1215;
	margin-bottom: 8px;
}

.cc-result-card h4 {
	margin: 0 0 8px;
	font-size: 16px;
	color: #5c2418;
}

.cc-result-meta {
	font-size: 13px;
	color: #6b5344;
	margin-bottom: 10px;
	line-height: 1.5;
}

.cc-menu-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	color: #3d3429;
	line-height: 1.65;
}

.cc-cta-block {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid rgba(196, 165, 116, 0.35);
}

.cc-cta-text {
	font-size: 13px;
	font-weight: 700;
	color: #5c4033;
	margin: 0 0 10px;
	line-height: 1.5;
}

.cc-btn-whatsapp {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 14px 16px;
	border-radius: 14px;
	border: none;
	background: #25d366;
	color: #fff;
	font-weight: 800;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
}

.cc-btn-whatsapp:hover {
	background: #1fb85a;
	color: #fff;
	transform: translateY(-1px);
}

.cc-btn-secondary {
	margin-top: 8px;
	width: 100%;
	padding: 10px;
	border: none;
	background: transparent;
	color: #8d1215;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	font-family: inherit;
	text-decoration: underline;
}

/* Yardımcı */
.cc-hidden {
	display: none !important;
}

body.cc-panel-open {
	overflow: hidden;
}
