/* Website chat widget (chat-widget.php / js/inox-chat.js). Everything is prefixed ixc- so the
   theme's styles (style.css, bootstrap) don't leak in and these don't leak out. */
.ixc-launcher, .ixc-panel {
	--ixc-ink: #0f172a;
	--ixc-ink-soft: #5b6b80;
	--ixc-faint: #94a3b8;
	--ixc-border: #e2e8f0;
	--ixc-surface: #f5f8fa;
	--ixc-white: #ffffff;
	--ixc-blue: #12708c;
	--ixc-blue-dark: #0e566c;
	--ixc-blue-tint: #e7f2f4;
	--ixc-red: #c00000;
	--ixc-danger: #dc2626;
	--ixc-green: #22c55e;
	--ixc-amber-bg: #fff7e6;
	--ixc-amber-ink: #8a5300;
	--ixc-radius: 16px;
	box-sizing: border-box;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}
.ixc-panel *, .ixc-panel *::before, .ixc-panel *::after { box-sizing: border-box; }
/* the theme gives <p> a tall line-height and margins; keep the widget's own text rhythm */
.ixc-panel p { line-height: 1.5; }
/* The panel and its parts set display, so [hidden] must win explicitly (incl. the panel itself) */
.ixc-panel[hidden], .ixc-panel [hidden], .ixc-launcher [hidden] { display: none !important; }

/* ---------- launcher ---------- */
.ixc-launcher, .ixc-teaser { --ixc-blue: #12708c; --ixc-blue-dark: #0e566c; --ixc-ink: #0f172a; --ixc-ink-soft: #5b6b80; --ixc-red: #c00000; }
.ixc-launcher {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 12px;
	height: 62px;
	padding: 0 24px 0 9px;
	border: 0;
	border-radius: 31px;
	background: linear-gradient(135deg, #1b8fae 0%, var(--ixc-blue) 45%, var(--ixc-blue-dark) 100%);
	color: #fff;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(14, 86, 108, 0.38), 0 0 0 4px rgba(255, 255, 255, 0.9);
	transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease, width 0.2s ease;
	animation: ixcLauncherIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}
.ixc-launcher:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(14, 86, 108, 0.45), 0 0 0 4px #fff; }
.ixc-launcher:active { transform: translateY(-1px); }
.ixc-launcher:focus-visible { outline: 3px solid #9fd3e0; outline-offset: 4px; }
.ixc-launcher-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--ixc-blue);
}
.ixc-launcher-dot {
	position: absolute;
	right: 1px;
	bottom: 2px;
	width: 11px;
	height: 11px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #22c55e;
}
.ixc-launcher-label { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.15; white-space: nowrap; }
.ixc-launcher-label b, .ixc-launcher-label span { margin-left: 0; padding-left: 0; }
.ixc-launcher-label b { font-size: 16px; font-weight: 700; letter-spacing: 0.01em; }
.ixc-launcher-label span { margin-top: 2px; font-size: 12.5px; font-weight: 500; opacity: 0.92; }
@keyframes ixcLauncherIn {
	from { opacity: 0; transform: translateY(20px) scale(0.9); }
	to { opacity: 1; transform: none; }
}
.ixc-launcher .ixc-icon-close { display: none; }
.ixc-launcher.ixc-open { width: 62px; padding: 0; justify-content: center; }
.ixc-launcher.ixc-open .ixc-icon-chat, .ixc-launcher.ixc-open .ixc-launcher-label { display: none; }
.ixc-launcher.ixc-open .ixc-icon-close { display: inline-flex; }
.ixc-unread {
	position: absolute;
	top: -6px;
	right: -4px;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	border: 2px solid #fff;
	border-radius: 12px;
	background: var(--ixc-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	animation: ixcBadge 0.3s ease;
}
@keyframes ixcBadge { from { transform: scale(0); } to { transform: scale(1); } }

/* greeting bubble above the launcher */
.ixc-teaser {
	position: fixed;
	right: 24px;
	bottom: 100px;
	z-index: 9998;
	width: 300px;
	max-width: calc(100vw - 32px);
	box-sizing: border-box;
	font-family: inherit;
	animation: ixcTeaserIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.ixc-teaser[hidden] { display: none !important; }
@keyframes ixcTeaserIn {
	from { opacity: 0; transform: translateY(12px) scale(0.95); }
	to { opacity: 1; transform: none; }
}
.ixc-teaser-body {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	width: 100%;
	padding: 14px 34px 14px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 16px 16px 4px 16px;
	background: #fff;
	color: var(--ixc-ink);
	text-align: left;
	cursor: pointer;
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ixc-teaser-body:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22); }
.ixc-teaser-body:focus-visible { outline: 2px solid var(--ixc-blue); outline-offset: 2px; }
.ixc-teaser-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
}
.ixc-teaser-avatar img { width: 30px; height: auto; }
.ixc-teaser-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--ixc-ink-soft); }
.ixc-teaser-text strong { color: var(--ixc-ink); font-size: 14.5px; font-weight: 700; }
.ixc-teaser-close {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 1;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #94a3b8;
	font-size: 18px;
	line-height: 26px;
	cursor: pointer;
}
.ixc-teaser-close:hover { background: #f1f5f9; color: var(--ixc-ink); }

/* ---------- panel ---------- */
.ixc-panel {
	position: fixed;
	right: 24px;
	bottom: 96px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: 440px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 110px);
	overflow: hidden;
	background: var(--ixc-white);
	color: var(--ixc-ink);
	border-radius: var(--ixc-radius);
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.06);
	font-size: 14.5px;
	line-height: 1.5;
	text-align: left;
	transform-origin: bottom right;
	animation: ixcIn 0.22s cubic-bezier(0.2, 0.8, 0.3, 1);
}
/* forms and chat get the full height so the KYC fields are easy to read; the welcome screen fits its content */
.ixc-panel:not([data-screen="choose"]) { height: min(760px, calc(100vh - 110px)); }
@keyframes ixcIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.ixc-panel, .ixc-msg { animation: none; }
	.ixc-launcher { transition: none; animation: none; }
	.ixc-teaser, .ixc-unread { animation: none; }
}

.ixc-head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	padding: 14px 12px 14px 16px;
	background: linear-gradient(135deg, var(--ixc-blue) 0%, var(--ixc-blue-dark) 100%);
	color: #fff;
}
.ixc-head-back { margin-left: -6px; }
.ixc-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
}
.ixc-avatar img { width: 32px; height: auto; }
.ixc-head-text { flex: 1; min-width: 0; }
.ixc-panel h4, .ixc-panel h5 { font-family: inherit; text-transform: none; letter-spacing: normal; }
.ixc-head h4 { margin: 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.25; }
.ixc-sub { display: flex; align-items: center; gap: 7px; min-width: 0; padding-left: 2px; font-size: 12px; opacity: 0.92; }
/* only the text is clipped with an ellipsis — clipping the whole line cut off the dot's ring */
.ixc-sub-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ixc-dot { flex-shrink: 0; }
.ixc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ixc-green); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.ixc-head-actions { display: flex; gap: 2px; }
.ixc-head .ixc-icon-btn { color: #fff; }
.ixc-head .ixc-icon-btn:hover { background: rgba(255, 255, 255, 0.16); }

.ixc-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ixc-ink-soft);
	cursor: pointer;
	transition: background 0.15s ease;
}
.ixc-icon-btn:hover { background: var(--ixc-surface); }
.ixc-icon-btn:focus-visible, .ixc-choice:focus-visible, .ixc-primary:focus-visible, .ixc-secondary:focus-visible,
.ixc-send:focus-visible, .ixc-small:focus-visible { outline: 2px solid var(--ixc-blue); outline-offset: 2px; }
.ixc-head .ixc-icon-btn:focus-visible { outline-color: #fff; }

.ixc-screen { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px; overscroll-behavior: contain; }

/* ---------- welcome ---------- */
.ixc-hero { margin: -18px -18px 16px; padding: 18px 18px 20px; background: linear-gradient(180deg, var(--ixc-blue-tint) 0%, var(--ixc-white) 100%); }
.ixc-hero-title { margin: 0 0 4px; color: var(--ixc-ink); font-size: 18px; font-weight: 700; line-height: 1.3; }
.ixc-hero p { margin: 0; color: var(--ixc-ink-soft); font-size: 13px; }
.ixc-section-label {
	margin: 4px 0 8px;
	color: var(--ixc-faint);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.ixc-choice {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin-bottom: 10px;
	padding: 13px 14px;
	border: 1px solid var(--ixc-border);
	border-radius: 12px;
	background: var(--ixc-white);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ixc-choice:hover { border-color: var(--ixc-blue); box-shadow: 0 6px 16px rgba(18, 112, 140, 0.12); transform: translateY(-1px); }
.ixc-choice-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 10px;
	background: var(--ixc-blue-tint);
	color: var(--ixc-blue);
}
.ixc-choice-text { flex: 1; min-width: 0; }
.ixc-choice-text strong { display: block; color: var(--ixc-ink); font-size: 14px; font-weight: 600; }
.ixc-choice-text span { display: block; margin-top: 1px; color: var(--ixc-ink-soft); font-size: 12.5px; }
.ixc-chevron { color: var(--ixc-faint); font-size: 24px; line-height: 1; }
a.ixc-choice, a.ixc-choice:hover, a.ixc-choice:focus { color: inherit; text-decoration: none; }
a.ixc-choice .ixc-chevron { font-size: 18px; }
.ixc-choice-primary { border-color: #b7dfe8; background: linear-gradient(180deg, #f3fafb 0%, #fff 100%); }
.ixc-choice-primary .ixc-choice-icon { background: var(--ixc-blue); color: #fff; }
.ixc-choice-icon-muted { background: var(--ixc-surface); color: var(--ixc-ink-soft); }

/* ---------- forms ---------- */
.ixc-form { display: flex; flex-direction: column; padding-bottom: 0; }
.ixc-note {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ixc-blue-tint);
	color: var(--ixc-blue-dark);
	font-size: 12.5px;
}
.ixc-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ixc-field { margin: 0 0 12px; }
.ixc-form .ixc-field > label { margin: 0; }

/* searchable country picker */
.ixc-combo { position: relative; }
.ixc-combo input[type=text] { padding-right: 34px; }
.ixc-combo-caret { position: absolute; right: 11px; top: 17px; color: var(--ixc-faint); pointer-events: none; }
.ixc-combo-list {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	z-index: 5;
	max-height: 220px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
	border: 1px solid var(--ixc-border);
	border-radius: 10px;
	background: var(--ixc-white);
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}
.ixc-combo-list li {
	padding: 8px 10px;
	border-radius: 7px;
	color: var(--ixc-ink);
	font-size: 14px;
	cursor: pointer;
}
.ixc-combo-list li[aria-selected=true] { background: var(--ixc-blue-tint); color: var(--ixc-blue-dark); }
.ixc-combo-list li mark { padding: 0; background: none; color: inherit; font-weight: 700; }
.ixc-combo-list .ixc-combo-empty { color: var(--ixc-faint); cursor: default; }
.ixc-form legend {
	width: auto;
	margin: 0 0 10px;
	padding: 0;
	border: 0;
	color: var(--ixc-ink);
	font-size: 15px;
	font-weight: 700;
}
.ixc-form label {
	display: block;
	margin: 0 0 12px;
	color: var(--ixc-ink-soft);
	font-size: 12px;
	font-weight: 600;
}
.ixc-form input[type=text], .ixc-form input[type=email], .ixc-form input[type=tel],
.ixc-form select, .ixc-form textarea, .ixc-upload select {
	display: block;
	width: 100%;
	height: auto;
	min-height: 40px;
	margin-top: 5px;
	padding: 9px 11px;
	border: 1px solid #d5dde6;
	border-radius: 9px;
	background: var(--ixc-white);
	color: var(--ixc-ink);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
	text-transform: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ixc-form input::placeholder, .ixc-form textarea::placeholder { color: #a7b3c2; }
.ixc-form input:focus, .ixc-form select:focus, .ixc-form textarea:focus, .ixc-upload select:focus {
	border-color: var(--ixc-blue);
	outline: none;
	box-shadow: 0 0 0 3px rgba(18, 112, 140, 0.15);
}
.ixc-form [aria-invalid=true] { border-color: var(--ixc-danger) !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important; }
.ixc-form textarea { resize: vertical; }
.ixc-opt { color: var(--ixc-faint); font-weight: 400; }
.ixc-row { display: flex; gap: 10px; }
.ixc-row > label { flex: 1; min-width: 0; }
.ixc-check { display: flex !important; gap: 8px; align-items: flex-start; color: var(--ixc-ink-soft) !important; font-weight: 400 !important; line-height: 1.45; }
.ixc-check input { width: 16px; height: 16px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--ixc-blue); }

/* steps */
.ixc-steps { display: flex; gap: 6px; margin-bottom: 6px; }
.ixc-step {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 0 0 2px;
	border: 0;
	background: none;
	color: var(--ixc-faint);
	font-size: 11.5px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.ixc-step::before { content: ""; height: 4px; border-radius: 2px; background: var(--ixc-border); transition: background 0.2s ease; }
.ixc-step:hover { color: var(--ixc-blue); }
.ixc-step:focus-visible { outline: 2px solid var(--ixc-blue); outline-offset: 2px; border-radius: 3px; }
.ixc-step.ixc-done, .ixc-step.ixc-current { color: var(--ixc-blue-dark); }
.ixc-step.ixc-done::before, .ixc-step.ixc-current::before { background: var(--ixc-blue); }
.ixc-step.ixc-current { cursor: default; }
/* a step with a problem the server found (e.g. email already registered, seen on step 3) */
.ixc-step.ixc-step-error { color: var(--ixc-danger); }
.ixc-step.ixc-step-error::before { background: var(--ixc-danger); }
.ixc-step-count { margin: 0 0 12px; color: var(--ixc-faint); font-size: 11.5px; }

.ixc-docs-hint { margin: -6px 0 8px; color: var(--ixc-faint); font-size: 11.5px; }
.ixc-docs-title { margin: 2px 0 8px; color: var(--ixc-ink-soft); font-size: 12px; font-weight: 600; }
.ixc-docs { margin-bottom: 12px; }
.ixc-doc {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 6px;
	padding: 8px 10px;
	border: 1px dashed #cdd6e0;
	border-radius: 9px;
	font-size: 12.5px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.ixc-doc.ixc-has-file { border-style: solid; border-color: #b7dfe8; background: var(--ixc-blue-tint); }
.ixc-doc-name { flex-shrink: 0; color: var(--ixc-ink); font-weight: 600; }
.ixc-doc-file { flex: 1; min-width: 0; overflow: hidden; color: var(--ixc-ink-soft); text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.ixc-doc input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ixc-doc-pick { margin: 0 !important; color: var(--ixc-blue) !important; font-weight: 600 !important; cursor: pointer; white-space: nowrap; }
.ixc-doc-pick:focus-within { text-decoration: underline; }

.ixc-error {
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 9px;
	background: #fdecec;
	color: #a11b1b;
	font-size: 12.5px;
}
.ixc-error a { color: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

.ixc-form-foot {
	position: sticky;
	bottom: 0;
	display: flex;
	gap: 8px;
	margin: auto -18px 0;
	padding: 12px 18px 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 30%);
}
.ixc-primary, .ixc-secondary {
	flex: 1;
	min-height: 44px;
	padding: 11px 14px;
	border-radius: 10px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.ixc-primary { flex: 2; border: 0; background: var(--ixc-blue); color: #fff; }
.ixc-primary:hover { background: var(--ixc-blue-dark); }
.ixc-primary:disabled { opacity: 0.65; cursor: wait; }
.ixc-secondary { border: 1px solid var(--ixc-border); background: var(--ixc-white); color: var(--ixc-ink-soft); }
.ixc-secondary:hover { background: var(--ixc-surface); }

/* login: code box + resend / change email links */
.ixc-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--ixc-blue);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}
.ixc-link:hover { text-decoration: underline; }
.ixc-link:disabled { color: var(--ixc-faint); text-decoration: none; cursor: default; }
.ixc-form input.ixc-code-input {
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.5em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.ixc-switch { margin: 0 0 4px; color: var(--ixc-ink-soft); font-size: 12.5px; text-align: center; }
.ixc-code-actions { display: flex; justify-content: space-between; gap: 10px; margin: -4px 0 12px; }

/* registration: location row */
.ixc-location {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 9px 11px;
	border-radius: 9px;
	background: var(--ixc-surface);
	color: var(--ixc-ink-soft);
	font-size: 12.5px;
}
.ixc-location svg { flex-shrink: 0; }
.ixc-location-text { flex: 1; min-width: 0; }
.ixc-location[data-state="ok"] { background: #e3f6e8; color: #1d6b34; }
.ixc-location[data-state="off"] { background: var(--ixc-amber-bg); color: var(--ixc-amber-ink); }

/* ---------- chat ---------- */
.ixc-chat { display: flex; flex-direction: column; padding: 0; position: relative; overflow: hidden; }
.ixc-kyc-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 9px 16px;
	background: var(--ixc-amber-bg);
	color: var(--ixc-amber-ink);
	font-size: 12.5px;
}
.ixc-kyc-banner.ixc-ok { background: #e3f6e8; color: #1d6b34; }
.ixc-kyc-banner.ixc-bad { background: #fdecec; color: #a11b1b; }
.ixc-messages {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px 14px;
	background: var(--ixc-surface);
	overscroll-behavior: contain;
}
.ixc-intro {
	align-self: center;
	max-width: 90%;
	margin-bottom: 4px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--ixc-white);
	color: var(--ixc-ink-soft);
	font-size: 12px;
	text-align: center;
}
.ixc-day { align-self: center; margin: 4px 0; padding: 2px 10px; border-radius: 10px; background: #e8eef3; color: var(--ixc-ink-soft); font-size: 11px; }
.ixc-system { align-self: center; max-width: 90%; color: var(--ixc-ink-soft); font-size: 12px; text-align: center; }
.ixc-msg {
	max-width: 82%;
	padding: 9px 13px 7px;
	border-radius: 16px;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
	animation: ixcMsg 0.18s ease;
}
@keyframes ixcMsg { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ixc-msg.ixc-me { align-self: flex-end; background: var(--ixc-blue); color: #fff; border-bottom-right-radius: 5px; }
.ixc-msg.ixc-them { align-self: flex-start; background: var(--ixc-white); border: 1px solid var(--ixc-border); border-bottom-left-radius: 5px; }
.ixc-msg-sender { display: block; margin-bottom: 2px; color: var(--ixc-blue); font-size: 11.5px; font-weight: 700; white-space: normal; }
.ixc-msg-time { display: block; margin-top: 3px; font-size: 10.5px; opacity: 0.7; text-align: right; white-space: nowrap; }
.ixc-msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.ixc-msg img { display: block; max-width: 100%; max-height: 180px; margin-top: 2px; border-radius: 9px; }
.ixc-msg.ixc-pending { opacity: 0.6; }

.ixc-upload {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
	padding: 12px 14px;
	border-top: 1px solid var(--ixc-border);
	background: var(--ixc-white);
}
.ixc-upload p { margin: 0; font-size: 13px; font-weight: 600; }
.ixc-upload select { margin: 0; }
.ixc-upload input[type=file] { font-size: 12.5px; }
.ixc-upload div { display: flex; justify-content: flex-end; gap: 6px; }
.ixc-compose {
	display: flex;
	align-items: flex-end;
	gap: 6px;
	flex-shrink: 0;
	padding: 10px 12px 12px;
	border-top: 1px solid var(--ixc-border);
	background: var(--ixc-white);
}
.ixc-compose textarea {
	flex: 1;
	min-height: 42px;
	max-height: 120px;
	padding: 10px 14px;
	border: 1px solid #d5dde6;
	border-radius: 21px;
	background: var(--ixc-surface);
	color: var(--ixc-ink);
	font-size: 14px;
	line-height: 1.4;
	resize: none;
}
.ixc-compose textarea:focus { border-color: var(--ixc-blue); outline: none; background: var(--ixc-white); }
.ixc-compose .ixc-icon-btn { width: 42px; height: 42px; }
.ixc-send {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ixc-blue);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}
.ixc-send:hover { background: var(--ixc-blue-dark); }
.ixc-send:disabled { opacity: 0.4; cursor: default; }
.ixc-small {
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: var(--ixc-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.ixc-small:disabled { opacity: 0.6; cursor: wait; }
.ixc-ghost { background: var(--ixc-surface); color: var(--ixc-ink-soft); }
.ixc-danger { background: var(--ixc-danger); }

.ixc-confirm {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(15, 23, 42, 0.45);
}
.ixc-confirm-card { width: 100%; max-width: 290px; padding: 20px; border-radius: 14px; background: var(--ixc-white); text-align: center; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25); }
.ixc-confirm-card p { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.ixc-confirm-card span { display: block; margin-bottom: 16px; color: var(--ixc-ink-soft); font-size: 12.5px; }
.ixc-confirm-card div { display: flex; gap: 8px; justify-content: center; }

/* ---------- phones: full screen ---------- */
@media (max-width: 480px) {
	.ixc-launcher { right: 16px; bottom: 16px; width: 62px; padding: 0; justify-content: center; }
	.ixc-launcher-label { display: none; }
	.ixc-teaser { right: 16px; bottom: 92px; }
	.ixc-launcher.ixc-open { display: none; }
	.ixc-panel, .ixc-panel:not([data-screen="choose"]) {
		right: 0;
		bottom: 0;
		width: 100vw;
		max-width: 100vw;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}
	.ixc-row { flex-direction: column; gap: 0; }
	.ixc-form input[type=text], .ixc-form input[type=email], .ixc-form input[type=tel],
	.ixc-form select, .ixc-form textarea, .ixc-compose textarea { font-size: 16px; }   /* no iOS zoom on focus */
}
html.ixc-lock, html.ixc-lock body { overflow: hidden; }
