/*
 * Fara Chat Pro frontend styles.
 * All component rules live under #fcp-root so theme styles cannot leak into
 * the widget through ordinary selector specificity.
 */
#fcp-root,
#fcp-root * {
	box-sizing: border-box;
}

#fcp-root {
	--fcp-primary: #111a33;
	--fcp-accent: #ff7300;
	position: relative;
	z-index: 9999999;
	color: #172039;
	font-family: inherit;
}

/* Hidden is a state contract and must always beat component display rules. */
#fcp-root [hidden] {
	display: none !important;
}

#fcp-root button:not(#fcp-launcher)::before,
#fcp-root button:not(#fcp-launcher)::after {
	content: none;
	display: none;
}

/* Launcher */
#fcp-root > #fcp-launcher {
	-webkit-appearance: none;
	appearance: none;
	position: fixed;
	right: 22px;
	bottom: 22px;
	left: auto;
	top: auto;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	isolation: isolate;
	width: 72px;
	min-width: 0;
	max-width: none;
	height: 72px;
	min-height: 0;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	outline: 0;
	background: transparent;
	color: inherit;
	box-shadow: none;
	filter: none;
	clip-path: none;
	overflow: visible;
	opacity: 1;
	transform: none;
	font: inherit;
	line-height: 1;
	text-indent: 0;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}

#fcp-root > #fcp-launcher::after {
	content: none;
	display: none;
}

#fcp-root > #fcp-launcher::before {
	content: "";
	position: absolute;
	inset: 5px;
	z-index: 0;
	border: 0;
	border-radius: 50%;
	background: var(--fcp-accent);
	box-shadow: none;
	opacity: .45;
	transform-origin: center;
	animation: fcp-support-pulse 1.8s 4;
	pointer-events: none;
}

#fcp-root > #fcp-launcher:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--fcp-accent) 35%, transparent);
	outline-offset: 3px;
}

#fcp-root .fs-support-circle {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	min-width: 62px;
	height: 62px;
	min-height: 62px;
	margin: 0;
	padding: 0;
	border: 3px solid var(--fcp-accent);
	border-radius: 50%;
	background: var(--fcp-primary);
	box-shadow: 0 8px 25px rgba(17, 26, 51, .35);
	overflow: hidden;
	animation: fcp-support-shake 4s 3;
	transition: transform .25s ease, box-shadow .25s ease;
}

#fcp-root .fs-support-circle::before,
#fcp-root .fs-support-circle::after {
	content: none;
	display: none;
}

#fcp-root .fs-support-circle img {
	display: block;
	width: 32px;
	max-width: 32px;
	height: 32px;
	max-height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	filter: none;
	object-fit: contain;
}

#fcp-root > #fcp-launcher:hover .fs-support-circle,
#fcp-root > #fcp-launcher:focus-visible .fs-support-circle {
	transform: translateY(-3px) scale(1.08);
	box-shadow: 0 12px 35px rgba(17, 26, 51, .5);
	animation: none;
}

#fcp-root .fs-support-tooltip {
	position: absolute;
	right: 78px;
	top: 50%;
	padding: 7px 14px;
	border-radius: 9px;
	background: var(--fcp-accent);
	color: #fff;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--fcp-accent) 28%, transparent);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%) translateX(8px);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transition: opacity .2s ease, transform .25s ease, visibility .2s ease;
	pointer-events: none;
}

#fcp-root .fs-support-tooltip::after {
	content: "";
	position: absolute;
	right: -6px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px 0 6px 7px;
	border-style: solid;
	border-color: transparent transparent transparent var(--fcp-accent);
}

#fcp-root > #fcp-launcher:hover .fs-support-tooltip,
#fcp-root > #fcp-launcher:focus-visible .fs-support-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%);
}

#fcp-root .fcp-badge {
	position: absolute;
	top: -1px;
	left: -1px;
	z-index: 4;
	min-width: 22px;
	height: 22px;
	padding: 0 5px;
	border: 2px solid #fff;
	border-radius: 12px;
	background: var(--fcp-accent);
	color: #fff;
	font: 700 11px/18px Arial, sans-serif;
}

/* Panel */
#fcp-root .fcp-panel {
	position: fixed;
	right: 22px;
	bottom: 98px;
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 28px));
	height: min(620px, calc(100dvh - 125px));
	border: 1px solid rgba(17, 26, 51, .08);
	border-radius: 24px;
	background: rgba(255, 255, 255, .98);
	box-shadow: 0 24px 70px rgba(17, 26, 51, .27);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(18px) scale(.96);
	transform-origin: bottom right;
	transition: opacity .22s, transform .25s, visibility .22s;
	backdrop-filter: blur(15px);
}

#fcp-root.is-open .fcp-panel {
	opacity: 1;
	visibility: visible;
	transform: none;
}

#fcp-root .fcp-header {
	position: relative;
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 82px;
	padding: 15px 17px;
	background: linear-gradient(135deg, var(--fcp-primary), #26345e);
	color: #fff;
}

#fcp-root .fcp-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .2), transparent 35%);
	pointer-events: none;
}

#fcp-root .fcp-avatar {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .23);
	border-radius: 17px;
	background: rgba(255, 255, 255, .13);
}

#fcp-root .fcp-avatar svg {
	width: 25px;
	fill: #fff;
}

#fcp-root .fcp-header > div:nth-child(2) {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#fcp-root .fcp-header strong {
	font-size: 15px;
}

#fcp-root .fcp-status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
}

#fcp-root .fcp-status i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #35d07f;
	box-shadow: 0 0 0 4px rgba(53, 208, 127, .16);
}

#fcp-root .fcp-status b {
	font-weight: 500;
	opacity: .85;
}

#fcp-root .fcp-subtitle {
	display: block;
	font-size: 9px;
	line-height: 1.3;
	opacity: .62;
}

#fcp-root button.fcp-close {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	inset: auto;
	z-index: 1;
	display: block;
	width: 34px;
	min-width: 34px;
	max-width: 34px;
	height: 34px;
	min-height: 34px;
	max-height: 34px;
	margin: 0 auto 0 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	box-shadow: none;
	overflow: hidden;
	transform: none;
	font: 300 25px/32px Arial, sans-serif;
	text-align: center;
	text-indent: 0;
	cursor: pointer;
}

#fcp-root button.fcp-close:hover,
#fcp-root button.fcp-close:focus-visible {
	background: rgba(255, 255, 255, .22);
}

#fcp-root button.fcp-close:focus-visible,
#fcp-root button.fcp-send:focus-visible,
#fcp-root button.fcp-primary-btn:focus-visible,
#fcp-root button.fcp-proactive-close:focus-visible,
#fcp-root button.fcp-proactive-cta:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--fcp-accent) 55%, #fff);
	outline-offset: 2px;
}

/* Loading and authentication views */
#fcp-root .fcp-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	gap: 5px;
}

#fcp-root .fcp-loading span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fcp-accent);
	animation: fcp-dot 1s infinite;
}

#fcp-root .fcp-loading span:nth-child(2) {
	animation-delay: .15s;
}

#fcp-root .fcp-loading span:nth-child(3) {
	animation-delay: .3s;
}

#fcp-root .fcp-start {
	flex: 1;
	padding: 24px 22px 12px;
	overflow: auto;
}

#fcp-root .fcp-welcome {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 17px;
	padding: 14px;
	border: 1px solid #e9edf5;
	border-radius: 18px;
	background: #f5f7fb;
}

#fcp-root .fcp-welcome > span {
	font-size: 22px;
}

#fcp-root .fcp-welcome p {
	margin: 0;
	color: #3c4867;
	font-size: 13px;
	line-height: 1.9;
}

#fcp-root .fcp-welcome small {
	color: #6f7890;
	font-size: 10px;
}

#fcp-root .fcp-start form {
	display: flex;
	flex-direction: column;
	gap: 13px;
}

#fcp-root .fcp-start label {
	color: #303c59;
	font-size: 12px;
	font-weight: 700;
}

#fcp-root .fcp-start label small {
	color: #8d95a8;
	font-weight: 400;
}

#fcp-root .fcp-start input[type="text"],
#fcp-root .fcp-start input[type="tel"],
#fcp-root .fcp-start textarea {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 11px 13px;
	border: 1px solid #dfe4ee;
	border-radius: 13px;
	outline: 0;
	background: #fff;
	color: #172039;
	box-shadow: none;
	font: inherit;
	font-size: 13px;
	resize: none;
	transition: border-color .2s, box-shadow .2s;
}

#fcp-root .fcp-start input:focus,
#fcp-root .fcp-start textarea:focus {
	border-color: var(--fcp-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fcp-accent) 13%, transparent);
}

#fcp-root button.fcp-primary-btn {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	max-width: none;
	min-height: 42px;
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 14px;
	background: var(--fcp-accent);
	color: #fff;
	box-shadow: 0 8px 22px color-mix(in srgb, var(--fcp-accent) 30%, transparent);
	overflow: hidden;
	font-family: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.4;
	text-align: center;
	text-indent: 0;
	cursor: pointer;
}

#fcp-root button.fcp-primary-btn:hover,
#fcp-root button.fcp-primary-btn:focus-visible,
#fcp-root button.fcp-send:hover,
#fcp-root button.fcp-send:focus-visible,
#fcp-root button.fcp-proactive-cta:hover,
#fcp-root button.fcp-proactive-cta:focus-visible {
	filter: brightness(.96);
}

#fcp-root .fcp-primary-btn:disabled,
#fcp-root .fcp-send:disabled {
	opacity: .55;
	cursor: wait;
}

#fcp-root .fcp-primary-btn span {
	margin-right: 5px;
	font-size: 18px;
}

#fcp-root .fcp-panel[data-view="login"] #fcp-login-form {
	width: 68%;
	min-width: 220px;
	max-width: 250px;
	margin-right: auto;
	margin-left: auto;
	gap: 9px;
}

#fcp-root .fcp-panel[data-view="login"] #fcp-login-form input[type="tel"] {
	padding-top: 8px;
	padding-bottom: 8px;
}

#fcp-root .fcp-panel[data-view="login"] #fcp-login-form .fcp-primary-btn {
	min-height: 38px;
	padding: 9px 12px;
}

#fcp-root .fcp-panel[data-view="otp"] .fcp-start {
	padding-right: 18px;
	padding-left: 18px;
}

#fcp-root .fcp-panel[data-view="otp"] #fcp-otp-form {
	width: 76%;
	min-width: 230px;
	max-width: 285px;
	margin-right: auto;
	margin-left: auto;
	gap: 8px;
}

#fcp-root .fcp-panel[data-view="otp"] #fcp-otp-form .fcp-primary-btn {
	min-height: 39px;
	padding: 9px 12px;
}

#fcp-root .fcp-otp-code {
	min-height: 39px;
	padding: 8px 13px 8px 19px;
	font: 800 18px/1.2 Arial, sans-serif;
	letter-spacing: 7px;
	text-align: center;
}

#fcp-root .fcp-otp-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

#fcp-root .fcp-otp-actions button {
	-webkit-appearance: none;
	appearance: none;
	padding: 5px;
	border: 0;
	background: transparent;
	color: var(--fcp-accent);
	box-shadow: none;
	font-family: inherit;
	font-size: 9px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
}

#fcp-root .fcp-otp-actions button:disabled {
	color: #9ca4b5;
	cursor: not-allowed;
}

#fcp-root .fcp-panel[data-view="start"] #fcp-start {
	display: flex;
	flex-direction: column;
	padding-top: 12px;
}

#fcp-root .fcp-start-confirm {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 7px 10px;
	margin-bottom: 10px;
	border-radius: 12px;
}

#fcp-root .fcp-start-confirm > span {
	font-size: 16px;
}

#fcp-root .fcp-start-confirm p {
	font-size: 10px;
	line-height: 1.5;
	white-space: nowrap;
}

#fcp-root .fcp-panel[data-view="start"] #fcp-start-form {
	flex: 1;
	min-height: 0;
	gap: 9px;
}

#fcp-root .fcp-initial-message {
	display: flex;
	flex: 1;
	min-height: 145px;
	flex-direction: column;
}

#fcp-root .fcp-initial-message textarea {
	flex: 1;
	min-height: 135px;
}

#fcp-root .fcp-panel[data-view="start"] #fcp-start-form .fcp-primary-btn {
	flex: 0 0 auto;
	margin-top: auto;
}

#fcp-root .fcp-public-switch {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: #69738a;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.7;
	cursor: pointer;
}

#fcp-root .fcp-public-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

#fcp-root .fcp-public-switch > i {
	position: relative;
	display: inline-block;
	flex: 0 0 36px;
	width: 36px;
	height: 20px;
	margin-top: 1px;
	border-radius: 999px;
	background: #cbd2df;
	box-shadow: inset 0 1px 3px rgba(17, 24, 39, .15);
	transition: background-color .18s;
}

#fcp-root .fcp-public-switch > i::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(17, 24, 39, .22);
	transition: transform .18s;
}

#fcp-root .fcp-public-switch input:checked + i {
	background: var(--fcp-accent);
}

#fcp-root .fcp-public-switch input:checked + i::after {
	transform: translateX(-16px);
}

#fcp-root .fcp-public-switch input:focus-visible + i {
	outline: 2px solid color-mix(in srgb, var(--fcp-accent) 45%, transparent);
	outline-offset: 2px;
}

#fcp-root .fcp-public-switch > b {
	color: #69738a;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.7;
}

/* Conversation */
#fcp-root .fcp-chat-view {
	display: flex;
	flex: 1;
	min-height: 0;
	flex-direction: column;
	background: linear-gradient(180deg, #f7f8fc, #fff);
}

#fcp-root .fcp-messages {
	flex: 1;
	padding: 18px 14px;
	overflow-y: auto;
	scroll-behavior: smooth;
}

#fcp-root .fcp-message {
	display: flex;
	flex-direction: column;
	max-width: 83%;
	margin-bottom: 12px;
}

#fcp-root .fcp-message.visitor {
	align-items: flex-end;
	margin-right: auto;
}

#fcp-root .fcp-message.operator {
	align-items: flex-start;
	margin-left: auto;
}

#fcp-root .fcp-bubble {
	padding: 10px 12px;
	border-radius: 16px;
	box-shadow: 0 3px 11px rgba(17, 26, 51, .06);
	font-size: 12.5px;
	line-height: 1.85;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

#fcp-root .fcp-message.visitor .fcp-bubble {
	border-bottom-left-radius: 5px;
	background: var(--fcp-primary);
	color: #fff;
}

#fcp-root .fcp-message.operator .fcp-bubble {
	border: 1px solid #e7ebf2;
	border-bottom-right-radius: 5px;
	background: #fff;
	color: #303b56;
}

#fcp-root .fcp-time {
	margin-top: 4px;
	padding: 0 4px;
	color: #929aac;
	font: 10px Arial, sans-serif;
}

#fcp-root .fcp-file-card {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 190px;
	color: inherit;
	text-decoration: none;
}

#fcp-root .fcp-file-card i {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--fcp-accent) 14%, transparent);
	color: var(--fcp-accent);
	font: 800 10px Arial, sans-serif;
	font-style: normal;
}

#fcp-root .fcp-file-card span {
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#fcp-root .fcp-image {
	display: block;
	max-width: 220px;
	max-height: 170px;
	margin-bottom: 7px;
	border-radius: 11px;
	object-fit: cover;
}

#fcp-root .fcp-typing {
	padding: 4px 17px 7px;
	color: #788197;
	font-size: 10px;
}

#fcp-root .fcp-typing i {
	display: inline-block;
	width: 5px;
	height: 5px;
	margin-left: 2px;
	border-radius: 50%;
	background: #a7adba;
	animation: fcp-dot 1s infinite;
}

#fcp-root .fcp-typing i:nth-child(2) {
	animation-delay: .13s;
}

#fcp-root .fcp-typing i:nth-child(3) {
	animation-delay: .26s;
}

#fcp-root .fcp-closed {
	margin: 8px 12px;
	padding: 9px;
	border-radius: 10px;
	background: #fff3e9;
	color: #9b551d;
	font-size: 11px;
	text-align: center;
}

#fcp-root .fcp-closed button {
	-webkit-appearance: none;
	appearance: none;
	margin-right: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--fcp-accent);
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	text-decoration: underline;
	cursor: pointer;
}

#fcp-root .fcp-composer {
	padding: 10px 12px 8px;
	border-top: 1px solid #e8ebf2;
	background: #fff;
}

#fcp-root .fcp-compose-row {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 48px;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
}

#fcp-root .fcp-compose-row > .fcp-attach {
	position: relative;
	inset: auto;
	display: grid;
	place-items: center;
	grid-column: auto;
	width: 48px;
	min-width: 48px;
	max-width: 48px;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: #f2f4f8;
	color: #66718a;
	box-shadow: none;
	overflow: hidden;
	cursor: pointer;
}

#fcp-root .fcp-attach input {
	display: none;
}

#fcp-root .fcp-compose-row > .fcp-attach svg {
	display: block;
	width: 21px;
	min-width: 21px;
	max-width: 21px;
	height: 21px;
	margin: 0;
	padding: 0;
	fill: currentColor;
}

#fcp-root .fcp-compose-row > textarea#fcp-message-input {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	inset: auto;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--fcp-accent);
	border-radius: 14px;
	outline: 0;
	background: #f7f8fa;
	color: #172039;
	box-shadow: none;
	overflow-y: auto;
	font-family: inherit;
	font-size: 13px;
	line-height: 24px;
	resize: none;
}

#fcp-root .fcp-compose-row > textarea#fcp-message-input:focus {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fcp-accent) 13%, transparent);
}

#fcp-root .fcp-compose-row > button.fcp-send {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	inset: auto;
	display: grid;
	place-items: center;
	grid-column: auto;
	width: 48px;
	min-width: 48px;
	max-width: 48px;
	height: 48px;
	min-height: 48px;
	max-height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--fcp-accent);
	color: #fff;
	box-shadow: none;
	overflow: hidden;
	transform: none;
	text-indent: 0;
	cursor: pointer;
}

#fcp-root button.fcp-send svg {
	display: block;
	width: 19px;
	min-width: 19px;
	max-width: 19px;
	height: 19px;
	margin: 0;
	padding: 0;
	fill: #fff;
	stroke: none;
	transform: scaleX(-1);
}

#fcp-root .fcp-file-hint {
	display: block;
	margin: 6px 56px 0 0;
	color: #a2a8b5;
	font-size: 9px;
}

#fcp-root .fcp-file-preview {
	margin: 0 0 8px;
	padding: 6px 9px;
	border-radius: 9px;
	background: #fff7ef;
	color: #93501c;
	overflow: hidden;
	font-size: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#fcp-root .fcp-toast {
	position: absolute;
	right: 14px;
	left: 14px;
	bottom: 55px;
	z-index: 5;
	padding: 10px 13px;
	border-radius: 12px;
	background: var(--fcp-accent);
	color: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
	font-size: 11px;
}

#fcp-root .fcp-footer {
	padding: 6px;
	border-top: 1px solid #f0f1f4;
	background: #fff;
	color: #a0a6b3;
	font-size: 9px;
	text-align: center;
}

/* Proactive message */
#fcp-root .fcp-proactive {
	position: fixed;
	right: 22px;
	bottom: 105px;
	z-index: 1;
	width: min(330px, calc(100vw - 32px));
	padding: 17px 17px 14px;
	border: 1px solid rgba(17, 26, 51, .09);
	border-right: 4px solid var(--fcp-accent);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 55px rgba(17, 26, 51, .2);
	animation: fcp-proactive-in .3s ease both;
}

#fcp-root .fcp-proactive::after {
	content: "";
	position: absolute;
	right: 24px;
	bottom: -8px;
	width: 16px;
	height: 16px;
	background: #fff;
	box-shadow: 3px 3px 7px rgba(17, 26, 51, .06);
	transform: rotate(45deg);
}

#fcp-root .fcp-proactive strong {
	display: block;
	padding-left: 24px;
	color: #172039;
	font-size: 13px;
	line-height: 1.8;
}

#fcp-root .fcp-proactive p {
	margin: 7px 0 12px;
	color: #657087;
	font-size: 11.5px;
	line-height: 1.9;
}

#fcp-root button.fcp-proactive-close {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	left: 9px;
	top: 8px;
	z-index: 1;
	display: block;
	width: 22px;
	min-width: 22px;
	height: 22px;
	min-height: 22px;
	margin: 0;
	padding: 0;
	border: 1px solid #ffd3b3;
	border-radius: 7px;
	background: #fff4eb;
	color: var(--fcp-accent);
	box-shadow: none;
	font: 700 15px/19px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
}

#fcp-root button.fcp-proactive-close:hover,
#fcp-root button.fcp-proactive-close:focus-visible {
	border-color: var(--fcp-accent);
	background: var(--fcp-accent);
	color: #fff;
}

#fcp-root button.fcp-proactive-cta {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	min-height: 38px;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 11px;
	background: var(--fcp-accent);
	color: #fff;
	font-family: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

@keyframes fcp-support-pulse {
	0% { transform: scale(1); opacity: .45; }
	60%, 100% { transform: scale(1.65); opacity: 0; }
}

@keyframes fcp-support-shake {
	0%, 75%, 100% { transform: rotate(0); }
	78% { transform: rotate(-8deg); }
	81% { transform: rotate(8deg); }
	84% { transform: rotate(-6deg); }
	87% { transform: rotate(6deg); }
	90% { transform: rotate(0); }
}

@keyframes fcp-dot {
	0%, 100% { transform: translateY(0); opacity: .35; }
	50% { transform: translateY(-5px); opacity: 1; }
}

@keyframes fcp-proactive-in {
	from { opacity: 0; transform: translateY(10px) scale(.97); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
	#fcp-root > #fcp-launcher {
		right: 14px;
		bottom: 16px;
		width: 62px;
		height: 62px;
	}

	#fcp-root > #fcp-launcher::before {
		inset: 4px;
	}

	#fcp-root .fs-support-circle {
		width: 54px;
		min-width: 54px;
		height: 54px;
		min-height: 54px;
		border-width: 2px;
	}

	#fcp-root .fs-support-circle img {
		width: 27px;
		max-width: 27px;
		height: 27px;
		max-height: 27px;
	}

	#fcp-root .fs-support-tooltip {
		display: none;
	}
}

@media (max-width: 600px) {
	#fcp-root .fcp-panel {
		right: 4px;
		bottom: 72px;
		width: calc(100vw - 8px);
		height: min(640px, calc(100dvh - 80px));
		border-radius: 17px;
	}

	#fcp-root .fcp-header {
		min-height: 72px;
		padding-right: 12px;
		padding-left: 12px;
	}

	#fcp-root .fcp-start {
		padding: 15px 10px 8px;
	}

	#fcp-root .fcp-welcome {
		margin-bottom: 12px;
		padding: 11px;
	}

	#fcp-root .fcp-messages {
		padding-right: 9px;
		padding-left: 9px;
	}

	#fcp-root .fcp-composer {
		padding-right: 8px;
		padding-left: 8px;
	}

	#fcp-root .fcp-proactive {
		right: 12px;
		bottom: 86px;
		width: calc(100vw - 24px);
	}
}

@media (max-width: 380px) {
	#fcp-root .fcp-compose-row {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		height: 44px;
		min-height: 44px;
		max-height: 44px;
	}

	#fcp-root .fcp-compose-row > .fcp-attach,
	#fcp-root .fcp-compose-row > button.fcp-send {
		width: 44px;
		min-width: 44px;
		max-width: 44px;
		height: 44px;
		min-height: 44px;
		max-height: 44px;
	}

	#fcp-root .fcp-compose-row > textarea#fcp-message-input {
		height: 44px;
		min-height: 44px;
		max-height: 44px;
		padding: 9px 12px;
	}

	#fcp-root .fcp-start-confirm {
		padding-right: 7px;
		padding-left: 7px;
	}

	#fcp-root .fcp-start-confirm p {
		font-size: 9px;
	}

	#fcp-root .fcp-initial-message {
		min-height: 125px;
	}

	#fcp-root .fcp-initial-message textarea {
		min-height: 115px;
	}
}

@media (max-width: 360px) {
	#fcp-root .fcp-panel[data-view="login"] #fcp-login-form {
		width: 76%;
		min-width: 0;
	}

	#fcp-root .fcp-panel[data-view="otp"] #fcp-otp-form {
		width: 82%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	#fcp-root > #fcp-launcher::before,
	#fcp-root .fs-support-circle,
	#fcp-root .fcp-loading span,
	#fcp-root .fcp-typing i,
	#fcp-root .fcp-proactive {
		animation: none;
	}

	#fcp-root .fcp-panel,
	#fcp-root .fs-support-circle,
	#fcp-root .fs-support-tooltip {
		transition: none;
	}
}

.fcp-edited-tag {
	margin-right: 5px;
	opacity: .8;
	font-size: 9px;
	font-style: normal;
}

/* تیک ارسال و دیده شدن پیام کاربر */
#fcp-root .fcp-tick {
	margin-right: 5px;
	color: #a7aebd;
	font-size: 11px;
	font-style: normal;
	letter-spacing: -2px;
}

#fcp-root .fcp-tick.is-seen {
	color: #1e9bff;
	font-weight: 700;
}
