/* ET Support Chat widget styles */

#et-chat-root {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
}

/* Launcher button */
.et-chat-launcher {
	width: 54px;
	height: 54px;
	border: none;
	border-radius: 50%;
	background: #0050aa;
	color: #ffffff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	transition: transform 0.15s ease, background 0.15s ease;
}
.et-chat-launcher:hover { background: #003c80; transform: translateY(-1px); }
.et-chat-launcher:focus-visible { outline: 2px solid #0050aa; outline-offset: 3px; }

/* Panel */
.et-chat-panel {
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 44px);
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Header */
.et-chat-header {
	background: #0050aa;
	color: #ffffff;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.et-chat-title { font-weight: 600; letter-spacing: 0.01em; }
.et-chat-close {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}
.et-chat-close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* Messages */
.et-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f9fafb;
}
.et-chat-msg {
	max-width: 85%;
	padding: 9px 12px;
	border-radius: 10px;
	margin-bottom: 9px;
	word-wrap: break-word;
	white-space: normal;
}
.et-chat-assistant {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	color: #111827;
	margin-right: auto;
	border-bottom-left-radius: 3px;
}
.et-chat-user {
	background: #0050aa;
	color: #ffffff;
	margin-left: auto;
	border-bottom-right-radius: 3px;
}
.et-chat-msg a { color: #0050aa; text-decoration: underline; }
.et-chat-user a { color: #bfdbfe; }

/* Typing indicator */
.et-chat-typing span {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 4px;
	border-radius: 50%;
	background: #9ca3af;
	animation: et-chat-blink 1.2s infinite ease-in-out;
}
.et-chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.et-chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes et-chat-blink {
	0%, 80%, 100% { opacity: 0.25; }
	40% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.et-chat-typing span { animation: none; opacity: 0.6; }
	.et-chat-launcher { transition: none; }
}

/* Input */
.et-chat-form {
	display: flex;
	border-top: 1px solid #e5e7eb;
	background: #ffffff;
}
.et-chat-input {
	flex: 1;
	border: none;
	padding: 12px 14px;
	font: inherit;
	outline: none;
	color: #111827;
}
.et-chat-input:focus-visible { box-shadow: inset 0 0 0 2px #0050aa; }
.et-chat-send {
	border: none;
	background: none;
	color: #0050aa;
	padding: 0 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
}
.et-chat-send:hover { color: #003c80; }
.et-chat-send:focus-visible { outline: 2px solid #0050aa; outline-offset: -2px; }

/* Footer */
.et-chat-footer {
	text-align: center;
	font-size: 11px;
	color: #6b7280;
	padding: 6px 0 8px;
	background: #ffffff;
	border-top: 1px solid #f3f4f6;
}

/* Inline mode (support page via [et_support_chat]) */
#et-chat-inline {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.45;
	max-width: 720px;
	margin: 0 auto;
}
#et-chat-inline .et-chat-panel-inline {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

/* Mobile */
@media (max-width: 480px) {
	#et-chat-root { right: 12px; bottom: 12px; }
	.et-chat-panel {
		width: calc(100vw - 24px);
		height: calc(100vh - 90px);
	}
}

/* Placeholder contrast */
.et-chat-input::placeholder {
	color: #4b5563;
	opacity: 1;
}

/* Suggestion chips */
.et-chat-suggestions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 2px 0 10px;
}
.et-chat-chip {
	background: #ffffff;
	border: 1px solid #0050aa;
	color: #0050aa;
	border-radius: 16px;
	padding: 7px 13px;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	text-align: left;
	transition: background 0.12s ease, color 0.12s ease;
}
.et-chat-chip:hover {
	background: #0050aa;
	color: #ffffff;
}
.et-chat-chip:focus-visible { outline: 2px solid #0050aa; outline-offset: 2px; }

/* Support page contact form */
.et-contact-form {
	max-width: 720px;
	margin: 24px auto 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
}
.et-contact-intro { color: #374151; margin: 0 0 12px; }
.et-contact-form input,
.et-contact-form textarea {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 9px 11px;
	margin-bottom: 10px;
	font: inherit;
	color: #111827;
	box-sizing: border-box;
}
.et-contact-form input:focus,
.et-contact-form textarea:focus { outline: 2px solid #0050aa; outline-offset: -1px; }
.et-contact-row { display: flex; gap: 10px; }
.et-contact-row input { flex: 1; }
.et-contact-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0 !important; opacity: 0; }
.et-contact-send {
	margin-top: 20px;
	background: #2d7dd2;
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font: inherit;
	cursor: pointer;
}
.et-contact-send:hover { background: #0050aa; }
.et-contact-send:disabled { opacity: 0.6; cursor: default; }
.et-contact-status { margin-top: 10px; color: #0050aa; }
@media (max-width: 480px) { .et-contact-row { flex-direction: column; gap: 0; } }

/* Contact form attachments */
.et-contact-files-label {
	display: block;
	font-size: 12px;
	color: #4b5563;
	margin-bottom: 12px;
}
.et-contact-files-label input[type="file"] {
	display: block;
	margin-top: 6px;
	border: none;
	padding: 0;
}

/* Two-column support page layout */
.et-support-duo {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	max-width: 1200px;
	margin: 0 auto 100px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.et-support-col { flex: 1; min-width: 0; }
.et-support-col-title {
	color: #0050aa;
	font-size: 20px;
	margin: 0 0 30px;
}
.et-support-col:first-child .et-support-col-title {
	margin: 0 0 40px;
}
.et-support-col-sub {
	color: #4b5563;
	font-size: 14px;
	margin: 0 0 14px;
}
.et-support-duo #et-chat-inline { max-width: none; margin: 0; }
.et-support-duo .et-contact-form { max-width: none; margin: 0; }
@media (max-width: 900px) {
	.et-support-duo { flex-direction: column; gap: 28px; }
}

/* In the two-column layout, the column heading replaces the panel header */
.et-support-duo .et-chat-header { display: none; }
.et-support-duo .et-chat-panel-inline { border-radius: 10px; }
