/* Elite Fitness Assistant - widget styles */

/* Brand fonts bundled with the plugin (SIL Open Font License) */
@font-face { font-family: "EFA Bebas"; src: url("fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EFA Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EFA Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EFA Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "EFA Barlow"; src: url("fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }


#efa-root {
	--efa-red: #E63329;
	--efa-dark: #0E0E0F;
	--efa-paper: #F4F3F1;
	--efa-line: #E3E1DC;
	--efa-ink: #151515;
	--efa-muted: #6E6C68;
	--efa-head: "EFA Bebas", "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
	--efa-body: "EFA Barlow", "Barlow", "Helvetica Neue", Arial, sans-serif;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 2147483000;
	font-family: var(--efa-body);
	font-size: 15px;
	line-height: 1.5;
	color: var(--efa-ink);
	letter-spacing: normal;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
}

#efa-root *,
#efa-root *::before,
#efa-root *::after {
	box-sizing: border-box;
}

#efa-root button,
#efa-root input,
#efa-root select,
#efa-root textarea {
	font-family: var(--efa-body);
	letter-spacing: normal;
	text-transform: none;
	margin: 0;
	box-shadow: none;
	min-height: 0;
	line-height: 1.4;
}

#efa-root svg {
	width: 100%;
	height: 100%;
	display: block;
}

#efa-root [hidden] {
	display: none !important;
}

#efa-root .efa-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ------------------------------------------------ launcher */

#efa-root .efa-launcher {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 22px 0 16px;
	border: 0;
	border-radius: 4px;
	background: var(--efa-red);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18);
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
	position: relative;
}

#efa-root .efa-launcher::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 4px;
	box-shadow: 0 0 0 0 var(--efa-red);
	animation: efa-ring 2.6s ease-out 1.2s 2;
	pointer-events: none;
}

#efa-root .efa-launcher:hover {
	transform: translateY(-2px);
	background: var(--efa-dark);
}

#efa-root .efa-launcher:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

#efa-root .efa-launcher-icon {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
}

#efa-root .efa-launcher-label {
	font-family: var(--efa-head);
	font-size: 22px;
	line-height: 1;
	letter-spacing: .06em;
	padding-top: 3px;
	white-space: nowrap;
}

@keyframes efa-ring {
	0% { box-shadow: 0 0 0 0 rgba(230, 51, 41, .55); }
	100% { box-shadow: 0 0 0 16px rgba(230, 51, 41, 0); }
}

#efa-root.efa-is-open .efa-launcher {
	display: none;
}

/* ------------------------------------------------ teaser */

#efa-root .efa-teaser {
	position: absolute;
	right: 0;
	bottom: 70px;
	width: 270px;
	background: #fff;
	border-left: 4px solid var(--efa-red);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .25s ease, transform .25s ease;
}

#efa-root .efa-teaser.efa-show {
	opacity: 1;
	transform: none;
}

#efa-root .efa-teaser-text {
	display: block;
	width: 100%;
	padding: 14px 34px 14px 16px;
	border: 0;
	background: transparent;
	color: var(--efa-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
	white-space: normal;
	word-break: normal;
	overflow-wrap: break-word;
	height: auto;
	text-transform: none;
}

#efa-root .efa-teaser-x {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	padding: 5px;
	border: 0;
	background: transparent;
	color: var(--efa-muted);
	cursor: pointer;
}

#efa-root .efa-teaser-x:hover {
	color: var(--efa-ink);
}

/* ------------------------------------------------ panel */

#efa-root .efa-panel {
	display: none;
	flex-direction: column;
	width: 392px;
	height: min(660px, calc(100vh - 40px));
	background: var(--efa-paper);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .32), 0 4px 12px rgba(0, 0, 0, .14);
}

#efa-root.efa-is-open .efa-panel {
	display: flex;
	animation: efa-in .26s cubic-bezier(.2, .8, .2, 1);
}

#efa-root.efa-no-anim .efa-panel {
	animation: none;
}

@keyframes efa-in {
	from { opacity: 0; transform: translateY(14px) scale(.98); }
	to { opacity: 1; transform: none; }
}

/* header */

#efa-root .efa-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 12px 14px 16px;
	background: var(--efa-dark);
	border-top: 4px solid var(--efa-red);
	color: #fff;
	flex: 0 0 auto;
}

#efa-root .efa-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	flex: 1 1 auto;
	min-width: 0;
}

#efa-root .efa-avatar {
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	padding: 8px;
	background: var(--efa-red);
	color: #fff;
	border-radius: 3px;
}

#efa-root .efa-brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

#efa-root .efa-brand-text strong {
	font-family: var(--efa-head);
	font-weight: 400;
	font-size: 25px;
	line-height: 1;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #fff;
	padding-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#efa-root .efa-brand-text small {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: #B9B7B2;
	margin-top: 3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#efa-root .efa-dot {
	width: 7px;
	height: 7px;
	flex: 0 0 7px;
	border-radius: 50%;
	background: #3DDC84;
	box-shadow: 0 0 0 3px rgba(61, 220, 132, .18);
}

#efa-root .efa-strip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex: 0 0 auto;
	padding: 9px 14px 8px 16px;
	background: var(--efa-red);
	color: #fff;
	text-decoration: none;
	transition: background .15s ease;
}

#efa-root .efa-strip span {
	font-family: var(--efa-head);
	font-size: 19px;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding-top: 2px;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#efa-root .efa-strip b {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	transition: transform .15s ease;
}

#efa-root .efa-strip:hover {
	background: #C9271F;
	color: #fff;
}

#efa-root .efa-strip:hover b {
	transform: translateX(3px);
}

#efa-root .efa-close {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	padding: 8px;
	border: 0;
	border-radius: 3px;
	background: transparent;
	color: #fff;
	cursor: pointer;
}

#efa-root .efa-close:hover {
	background: rgba(255, 255, 255, .1);
}

/* body */

#efa-root .efa-body {
	position: relative;
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 14px 8px;
	scroll-behavior: smooth;
}

#efa-root .efa-msg {
	display: flex;
	margin: 0 0 12px;
}

#efa-root .efa-from-user {
	justify-content: flex-end;
}

#efa-root .efa-bubble {
	max-width: 86%;
	padding: 11px 14px;
	font-size: 15px;
	line-height: 1.5;
	word-wrap: break-word;
	overflow-wrap: anywhere;
}

#efa-root .efa-from-bot .efa-bubble {
	background: #fff;
	color: var(--efa-ink);
	border: 1px solid var(--efa-line);
	border-left: 3px solid var(--efa-red);
	border-radius: 2px 6px 6px 2px;
}

#efa-root .efa-from-user .efa-bubble {
	background: var(--efa-dark);
	color: #fff;
	border-radius: 6px 2px 2px 6px;
	white-space: pre-wrap;
}

#efa-root .efa-bubble p {
	margin: 0 0 8px;
	padding: 0;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

#efa-root .efa-bubble p:last-child {
	margin-bottom: 0;
}

#efa-root .efa-bubble ul {
	margin: 4px 0 8px;
	padding: 0;
	list-style: none;
}

#efa-root .efa-bubble ul:last-child {
	margin-bottom: 0;
}

#efa-root .efa-bubble li {
	position: relative;
	margin: 0 0 5px;
	padding: 0 0 0 16px;
	font-size: inherit;
	line-height: 1.45;
}

#efa-root .efa-bubble li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 7px;
	height: 3px;
	background: var(--efa-red);
}

#efa-root .efa-bubble strong {
	font-weight: 700;
	color: inherit;
}

#efa-root .efa-from-bot .efa-bubble a {
	color: var(--efa-red);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

#efa-root .efa-from-bot .efa-bubble a:hover {
	color: var(--efa-dark);
}

/* typing */

#efa-root .efa-typing {
	display: flex;
	gap: 5px;
	align-items: center;
	padding: 15px 16px;
}

#efa-root .efa-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--efa-red);
	opacity: .35;
	animation: efa-blink 1.1s infinite ease-in-out;
}

#efa-root .efa-typing span:nth-child(2) { animation-delay: .15s; }
#efa-root .efa-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes efa-blink {
	0%, 80%, 100% { opacity: .25; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-3px); }
}

/* chips */

#efa-root .efa-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 2px 0 14px;
}

#efa-root .efa-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border: 1.5px solid var(--efa-dark);
	border-radius: 3px;
	background: #fff;
	color: var(--efa-dark);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	white-space: normal;
	height: auto;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

#efa-root .efa-chip:hover,
#efa-root .efa-chip:focus-visible {
	background: var(--efa-red);
	border-color: var(--efa-red);
	color: #fff;
	outline: none;
}

/* callback form */

#efa-root .efa-formcard {
	margin: 0 0 14px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--efa-line);
	border-top: 4px solid var(--efa-red);
	border-radius: 2px;
}

#efa-root .efa-formtitle {
	font-family: var(--efa-head);
	font-size: 23px;
	line-height: 1;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--efa-dark);
	margin: 0 0 12px;
}

#efa-root .efa-formgrid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 10px;
}

#efa-root .efa-field {
	display: block;
	margin: 0 0 10px;
}

#efa-root .efa-field span {
	display: block;
	margin: 0 0 4px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--efa-ink);
}

#efa-root .efa-field em {
	color: var(--efa-red);
	font-style: normal;
}

#efa-root .efa-field input,
#efa-root .efa-field select {
	display: block;
	width: 100%;
	height: 40px;
	padding: 0 10px;
	background: #fff;
	border: 1px solid #CFCCC6;
	border-radius: 3px;
	color: var(--efa-ink);
	font-size: 15px;
}

#efa-root .efa-field input:focus,
#efa-root .efa-field select:focus {
	outline: none;
	border-color: var(--efa-red);
	box-shadow: 0 0 0 3px rgba(230, 51, 41, .15);
}

#efa-root .efa-formerr {
	min-height: 0;
	color: #C0261D;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 8px;
}

#efa-root .efa-formerr:empty {
	display: none;
}

#efa-root .efa-submit {
	display: block;
	width: 100%;
	height: 46px;
	border: 0;
	border-radius: 3px;
	background: var(--efa-red);
	color: #fff;
	font-family: var(--efa-head);
	font-size: 20px;
	letter-spacing: .06em;
	cursor: pointer;
	transition: background .15s ease;
	padding-top: 3px;
}

#efa-root .efa-submit:hover {
	background: var(--efa-dark);
}

#efa-root .efa-submit:disabled {
	opacity: .65;
	cursor: wait;
}

#efa-root .efa-fine {
	margin: 9px 0 0;
	font-size: 12px;
	color: var(--efa-muted);
	text-align: center;
}

/* input */

#efa-root .efa-input {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 10px 10px 14px;
	background: #fff;
	border-top: 1px solid var(--efa-line);
	flex: 0 0 auto;
	margin: 0;
}

#efa-root .efa-input textarea {
	flex: 1 1 auto;
	min-height: 24px;
	max-height: 120px;
	padding: 9px 0;
	border: 0;
	background: transparent;
	color: var(--efa-ink);
	font-size: 15.5px;
	line-height: 1.4;
	resize: none;
	outline: none;
	width: auto;
	height: auto;
}

#efa-root .efa-input textarea::placeholder {
	color: #9A9893;
}

#efa-root .efa-send {
	width: 42px;
	height: 42px;
	flex: 0 0 42px;
	padding: 10px;
	border: 0;
	border-radius: 3px;
	background: var(--efa-red);
	color: #fff;
	cursor: pointer;
	transition: background .15s ease;
}

#efa-root .efa-send:hover {
	background: var(--efa-dark);
}

#efa-root .efa-send:disabled {
	opacity: .5;
	cursor: wait;
}

/* footer */

#efa-root .efa-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 14px 10px;
	background: #fff;
	font-size: 12.5px;
	color: var(--efa-muted);
	flex: 0 0 auto;
}

#efa-root .efa-foot a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--efa-dark);
	font-weight: 700;
	text-decoration: none;
}

#efa-root .efa-foot a svg {
	width: 14px;
	height: 14px;
	color: var(--efa-red);
}

#efa-root .efa-foot a:hover span {
	color: var(--efa-red);
}

/* ------------------------------------------------ small screens */

@media (max-width: 600px) {
	#efa-root {
		right: 14px;
		bottom: 14px;
	}

	#efa-root .efa-launcher {
		height: 52px;
		padding: 0 18px 0 14px;
	}

	#efa-root .efa-launcher-label {
		font-size: 20px;
	}

	#efa-root .efa-teaser {
		width: min(270px, calc(100vw - 28px));
		bottom: 64px;
	}

	#efa-root.efa-is-open {
		inset: 0;
		right: 0;
		bottom: 0;
	}

	#efa-root .efa-panel {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		border-radius: 0;
	}

	#efa-root .efa-brand-text strong {
		font-size: 22px;
	}

	#efa-root .efa-input textarea {
		font-size: 16px;
	}

	#efa-root .efa-formgrid {
		grid-template-columns: 1fr;
	}
}

html.efa-lock,
html.efa-lock body {
	overflow: hidden !important;
}

@media (prefers-reduced-motion: reduce) {
	#efa-root *,
	#efa-root .efa-launcher::after {
		animation: none !important;
		transition: none !important;
	}
}
