/*
 * EF24 Bot Pro — the chat window customers see.
 *
 * This sits on top of a theme it does not control, so every rule is scoped
 * under .ef24b and the type, spacing and colour are all declared rather than
 * inherited. The theme's own font would be a nice touch and a liability: if
 * it loads late, the window reflows in front of the customer.
 *
 * Accent, header colour and position come in as custom properties the server
 * writes from the settings, so this file is static and cacheable.
 *
 * Sizes are in px on purpose. A shop that sets html{font-size:62.5%} would
 * otherwise shrink the whole window to two thirds.
 */

.ef24b,
.ef24b__launch {
	--ef24b-accent: #f57224;
	--ef24b-head: #16181d;
	--ef24b-x: 22px;
	--ef24b-y: 22px;
	--ef24b-panel-y: 94px;

	--ef24b-bg: #fff;
	--ef24b-soft: #f4f5f7;
	--ef24b-line: #e6e9ee;
	--ef24b-ink: #14161a;
	--ef24b-ink-2: #545c66;
	--ef24b-ink-3: #8b929c;

	--ef24b-r: 16px;
	--ef24b-r-lg: 22px;
	--ef24b-ease: cubic-bezier(.32, .72, 0, 1);

	--ef24b-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
	              "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	font-family: var(--ef24b-font);
	letter-spacing: -.005em;
}

/* =====================================================================
 * Launcher
 * ================================================================== */

.ef24b__launch {
	position: fixed;
	right: var(--ef24b-x);
	bottom: var(--ef24b-y);
	z-index: 99998;

	width: 58px;
	height: 58px;
	padding: 0;
	border: 0;
	border-radius: 50%;

	background: var(--ef24b-head);
	color: #fff;
	cursor: pointer;

	display: grid;
	place-items: center;

	box-shadow: 0 8px 24px -6px rgba(16, 24, 40, .38), 0 2px 6px rgba(16, 24, 40, .16);
	transition: transform .24s var(--ef24b-ease), box-shadow .24s var(--ef24b-ease);
}

.ef24b__launch:hover {
	transform: translateY(-2px) scale(1.04);
	box-shadow: 0 14px 32px -8px rgba(16, 24, 40, .44), 0 3px 8px rgba(16, 24, 40, .18);
}
.ef24b__launch:active { transform: scale(.95); }

.ef24b__launch svg { width: 25px; height: 25px; fill: currentColor; }

.ef24b__launch[aria-expanded="true"] { transform: scale(.85); opacity: 0; pointer-events: none; }

/* the online pip, drawn on the launcher rather than beside it */
.ef24b__launch::after {
	content: "";
	position: absolute;
	right: 3px;
	top: 3px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #22a45d;
	border: 2.5px solid var(--ef24b-head);
	opacity: 0;
	transition: opacity .2s var(--ef24b-ease);
}
.ef24b.is-online ~ .ef24b__launch::after { opacity: 1; }

/* =====================================================================
 * Panel
 * ================================================================== */

.ef24b {
	position: fixed;
	right: var(--ef24b-x);
	bottom: var(--ef24b-panel-y);
	z-index: 99999;
	width: 384px;
	max-width: calc(100vw - 32px);
}

.ef24b[hidden] { display: none; }

.ef24b__panel {
	display: flex;
	flex-direction: column;
	max-height: min(640px, calc(100vh - var(--ef24b-panel-y) - 24px));

	background: var(--ef24b-bg);
	color: var(--ef24b-ink);
	border-radius: var(--ef24b-r-lg);
	overflow: hidden;

	box-shadow:
		0 0 0 1px rgba(16, 24, 40, .05),
		0 24px 64px -16px rgba(16, 24, 40, .3),
		0 8px 20px -8px rgba(16, 24, 40, .14);

	transform-origin: bottom right;
	animation: ef24b-in .3s var(--ef24b-ease);
}

@keyframes ef24b-in {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to { opacity: 1; transform: none; }
}

/* ---------- header ---------- */

.ef24b__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 16px;
	background: var(--ef24b-head);
	color: #fff;
}

.ef24b__avatar {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: var(--ef24b-accent);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: .02em;
}

.ef24b__ident { flex: 1 1 auto; min-width: 0; }

.ef24b__title {
	margin: 0;
	font-size: 15px;
	font-weight: 640;
	line-height: 1.3;
	letter-spacing: -.012em;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ef24b__sub {
	margin: 2px 0 0;
	font-size: 12px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .62);
	display: flex;
	align-items: center;
	gap: 6px;
}

/* the status dot lives in the subtitle, where the words explain it */
.ef24b.is-online .ef24b__sub::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22a45d;
	box-shadow: 0 0 0 3px rgba(34, 164, 93, .22);
	flex: 0 0 auto;
}

.ef24b__close {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .18s var(--ef24b-ease), transform .16s var(--ef24b-ease);
}
.ef24b__close:hover { background: rgba(255, 255, 255, .2); }
.ef24b__close:active { transform: scale(.9); }
.ef24b__close svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- log ---------- */

.ef24b__log {
	flex: 1 1 auto;
	min-height: 180px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 18px 16px 6px;
	background: var(--ef24b-soft);
	scroll-behavior: smooth;
}

.ef24b__log::-webkit-scrollbar { width: 6px; }
.ef24b__log::-webkit-scrollbar-thumb {
	background: rgba(16, 24, 40, .16);
	border-radius: 3px;
}
.ef24b__log { scrollbar-width: thin; scrollbar-color: rgba(16, 24, 40, .16) transparent; }

/* ---------- messages ---------- */

.ef24b__msg {
	display: flex;
	margin-bottom: 11px;
	animation: ef24b-pop .24s var(--ef24b-ease) both;
}

@keyframes ef24b-pop {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.ef24b__msg--me { justify-content: flex-end; }

.ef24b__bubble {
	max-width: 84%;
	padding: 10px 14px;
	border-radius: var(--ef24b-r);
	font-size: 14.5px;
	line-height: 1.6;
	overflow-wrap: anywhere;

	background: var(--ef24b-bg);
	color: var(--ef24b-ink);
	border-bottom-left-radius: 6px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 0 0 1px rgba(16, 24, 40, .04);
}

.ef24b__msg--me .ef24b__bubble {
	background: var(--ef24b-head);
	color: #fff;
	border-bottom-left-radius: var(--ef24b-r);
	border-bottom-right-radius: 6px;
	box-shadow: none;
}

.ef24b__msg--agent .ef24b__bubble {
	background: #fff;
	border: 1px solid var(--ef24b-accent);
	box-shadow: 0 2px 10px -4px rgba(245, 114, 36, .4);
}

/* the agent's name, so the customer knows the software stepped aside */
.ef24b__msg--agent .ef24b__bubble[data-who]:not([data-who=""])::before {
	content: attr(data-who);
	display: block;
	margin-bottom: 4px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ef24b-accent);
}

.ef24b__bubble p { margin: 0 0 9px; }
.ef24b__bubble p:last-child { margin-bottom: 0; }

.ef24b__bubble a {
	color: var(--ef24b-accent);
	text-underline-offset: 2px;
}
.ef24b__msg--me .ef24b__bubble a { color: #fff; }

.ef24b__bubble ul,
.ef24b__bubble ol { margin: 0 0 9px; padding-left: 19px; }
.ef24b__bubble li { margin-bottom: 4px; }

.ef24b__bubble strong { font-weight: 640; }

/* a line of context, not a message */
.ef24b__notice {
	margin: 12px auto 14px;
	max-width: 88%;
	text-align: center;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--ef24b-ink-3);
}

/* ---------- typing ---------- */

.ef24b__dots { display: inline-flex; gap: 4px; padding: 3px 0; }

.ef24b__dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ef24b-ink-3);
	animation: ef24b-bounce 1.3s infinite ease-in-out;
}
.ef24b__dots i:nth-child(2) { animation-delay: .16s; }
.ef24b__dots i:nth-child(3) { animation-delay: .32s; }

@keyframes ef24b-bounce {
	0%, 62%, 100% { transform: translateY(0); opacity: .45; }
	28% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- product cards ---------- */

.ef24b__cards {
	display: flex;
	gap: 9px;
	overflow-x: auto;
	padding: 2px 2px 10px;
	margin: 0 0 4px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}
.ef24b__cards::-webkit-scrollbar { height: 4px; }
.ef24b__cards::-webkit-scrollbar-thumb { background: rgba(16, 24, 40, .16); border-radius: 4px; }

.ef24b__card {
	flex: 0 0 136px;
	scroll-snap-align: start;
	display: block;
	border-radius: 13px;
	overflow: hidden;
	background: var(--ef24b-bg);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 0 0 1px rgba(16, 24, 40, .05);
	transition: transform .2s var(--ef24b-ease), box-shadow .2s var(--ef24b-ease);
}
.ef24b__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px -8px rgba(16, 24, 40, .24), 0 0 0 1px var(--ef24b-accent);
}

.ef24b__card img {
	display: block;
	width: 100%;
	height: 118px;
	object-fit: cover;
	background: var(--ef24b-soft);
}

.ef24b__card-b { display: block; padding: 9px 10px 11px; }

.ef24b__card-n {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.38;
	font-weight: 560;
}

.ef24b__card-p {
	display: block;
	margin-top: 5px;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--ef24b-accent);
}

.ef24b__card-o {
	display: block;
	margin-top: 3px;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--ef24b-ink-3);
}

/* ---------- attachments ---------- */

.ef24b__files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

.ef24b__files img {
	width: 92px;
	height: 92px;
	object-fit: cover;
	border-radius: 11px;
	display: block;
	background: var(--ef24b-soft);
}

.ef24b__doc {
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(16, 24, 40, .06);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	color: inherit;
	text-decoration: none;
}
.ef24b__msg--me .ef24b__doc { background: rgba(255, 255, 255, .18); }

/* ---------- actions ---------- */

.ef24b__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 13px;
	animation: ef24b-pop .24s var(--ef24b-ease) both;
}

.ef24b__action {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid var(--ef24b-line);
	border-radius: 100px;
	background: var(--ef24b-bg);
	color: var(--ef24b-ink-2);
	font: inherit;
	font-size: 12.5px;
	font-weight: 560;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: border-color .18s var(--ef24b-ease), color .18s var(--ef24b-ease), transform .14s var(--ef24b-ease);
}
.ef24b__action:hover { border-color: var(--ef24b-accent); color: var(--ef24b-ink); }
.ef24b__action:active { transform: scale(.97); }

.ef24b__action--human {
	background: var(--ef24b-accent);
	border-color: var(--ef24b-accent);
	color: #fff;
	font-weight: 620;
}
.ef24b__action--human:hover { color: #fff; filter: brightness(1.07); }

.ef24b__action--wa {
	background: #25d366;
	border-color: #25d366;
	color: #fff;
}
.ef24b__action--wa:hover { color: #fff; filter: brightness(1.05); }

/* ---------- escalation ---------- */

.ef24b__escalate {
	margin: 0 0 13px;
	padding: 14px;
	border-radius: var(--ef24b-r);
	background: var(--ef24b-bg);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 0 0 1px rgba(16, 24, 40, .05);
	animation: ef24b-pop .24s var(--ef24b-ease) both;
}

.ef24b__escalate p {
	margin: 0 0 10px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--ef24b-ink-2);
}

.ef24b__email {
	width: 100%;
	height: 42px;
	padding: 0 14px;
	margin-bottom: 10px;
	border: 1px solid var(--ef24b-line);
	border-radius: 11px;
	background: var(--ef24b-soft);
	font: inherit;
	font-size: 14px;
	color: var(--ef24b-ink);
	transition: border-color .18s var(--ef24b-ease), background .18s var(--ef24b-ease);
}
.ef24b__email::placeholder { color: var(--ef24b-ink-3); }
.ef24b__email:focus {
	outline: none;
	border-color: var(--ef24b-accent);
	background: var(--ef24b-bg);
}

/* ---------- quick replies ---------- */

.ef24b__chips {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	padding: 10px 16px 0;
	background: var(--ef24b-soft);
	scrollbar-width: none;
}
.ef24b__chips::-webkit-scrollbar { display: none; }
.ef24b__chips:empty { display: none; }

.ef24b__chip {
	flex: 0 0 auto;
	padding: 8px 14px;
	border: 1px solid var(--ef24b-line);
	border-radius: 100px;
	background: var(--ef24b-bg);
	color: var(--ef24b-ink-2);
	font: inherit;
	font-size: 12.5px;
	font-weight: 540;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .18s var(--ef24b-ease), color .18s var(--ef24b-ease), transform .14s var(--ef24b-ease);
}
.ef24b__chip:hover { border-color: var(--ef24b-accent); color: var(--ef24b-ink); }
.ef24b__chip:active { transform: scale(.96); }

/* ---------- composer ---------- */

.ef24b__form {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 14px;
	background: var(--ef24b-bg);
	border-top: 1px solid var(--ef24b-line);
}

.ef24b__form input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--ef24b-line);
	border-radius: 22px;
	background: var(--ef24b-soft);
	font: inherit;
	font-size: 14.5px;
	color: var(--ef24b-ink);
	transition: border-color .18s var(--ef24b-ease), background .18s var(--ef24b-ease);
}
.ef24b__form input[type="text"]::placeholder { color: var(--ef24b-ink-3); }
.ef24b__form input[type="text"]:focus {
	outline: none;
	border-color: var(--ef24b-accent);
	background: var(--ef24b-bg);
}

.ef24b__form button[type="submit"] {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ef24b-head);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: transform .14s var(--ef24b-ease), filter .18s var(--ef24b-ease);
}
.ef24b__form button[type="submit"]:hover { filter: brightness(1.15); }
.ef24b__form button[type="submit"]:active { transform: scale(.92); }
.ef24b__form button[type="submit"] svg { width: 17px; height: 17px; fill: currentColor; }

.ef24b__clip {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ef24b-ink-3);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .18s var(--ef24b-ease), color .18s var(--ef24b-ease), transform .14s var(--ef24b-ease);
}
.ef24b__clip:hover { background: var(--ef24b-soft); color: var(--ef24b-ink); }
.ef24b__clip:active { transform: scale(.92); }
.ef24b__clip svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- footer ---------- */

.ef24b__foot {
	margin: 0;
	padding: 0 16px 12px;
	background: var(--ef24b-bg);
	font-size: 10.5px;
	line-height: 1.5;
	color: var(--ef24b-ink-3);
	text-align: center;
}

/* =====================================================================
 * Accessibility
 * ================================================================== */

.ef24b .screen-reader-text,
.ef24b__launch .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.ef24b :focus-visible,
.ef24b__launch:focus-visible {
	outline: 2px solid var(--ef24b-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ef24b *, .ef24b__launch,
	.ef24b__panel, .ef24b__msg, .ef24b__actions, .ef24b__escalate {
		animation: none !important;
		transition-duration: .001ms !important;
	}
}

/* =====================================================================
 * Phones: full screen, because a 384px card on a 360px screen is not one
 * ================================================================== */

@media (max-width: 560px) {
	.ef24b {
		right: 0;
		left: 0;
		bottom: 0;
		top: 0;
		width: auto;
		max-width: none;
	}

	.ef24b__panel {
		max-height: none;
		height: 100%;
		border-radius: 0;
		padding-top: env(safe-area-inset-top);
	}

	.ef24b__form {
		padding-bottom: calc(12px + env(safe-area-inset-bottom));
	}

	.ef24b__foot { display: none; }

	/* 16px stops iOS zooming the page when the field takes focus */
	.ef24b__form input[type="text"],
	.ef24b__email { font-size: 16px; }

	.ef24b__bubble { max-width: 88%; font-size: 15px; }

	.ef24b__launch { width: 54px; height: 54px; }
}

/* the theme's own mobile bar sits where the launcher wants to be */
body.mobile-device .ef24b__launch { bottom: calc(var(--ef24b-y) + 54px); }

/* =====================================================================
 * No automatic dark mode
 *
 * prefers-color-scheme describes the visitor's operating system, not this
 * shop's page. Honouring it put a dark chat window on a white shop for
 * anyone with dark mode on, which looked broken rather than considerate.
 * The window follows the colours set in the plugin's own settings, so it
 * matches the shop for every visitor.
 * ================================================================== */

/* =====================================================================
 * Themes that fight back
 *
 * XStore (and plenty of others) style bare form elements globally, which
 * beats the [hidden] attribute and puts a "Choose File" control in the
 * middle of the composer. These are scoped and explicit so the widget looks
 * the same on any theme.
 * ================================================================== */

.ef24b [hidden] { display: none !important; }

.ef24b input[type="file"] {
	display: none !important;
	position: absolute !important;
	width: 0 !important;
	height: 0 !important;
	opacity: 0 !important;
}

.ef24b button,
.ef24b input,
.ef24b a.ef24b__action {
	box-shadow: none;
	text-transform: none;
	letter-spacing: inherit;
	min-height: 0;
	min-width: 0;
	margin: 0;
	line-height: normal;
}

.ef24b__form input[type="text"] {
	box-sizing: border-box;
	max-width: none;
	background-image: none;
}

.ef24b__action,
.ef24b__chip,
.ef24b__form button,
.ef24b__close,
.ef24b__clip {
	-webkit-appearance: none;
	appearance: none;
	text-shadow: none;
}

.ef24b__launch {
	-webkit-appearance: none;
	appearance: none;
	text-transform: none;
	letter-spacing: normal;
	min-width: 0;
	min-height: 0;
	margin: 0;
	line-height: normal;
}

.ef24b__log ul,
.ef24b__log ol { list-style-position: outside; }
.ef24b__log img { max-width: 100%; height: auto; }

/* =====================================================================
 * Image preview
 * ================================================================== */

.ef24b__files img {
	cursor: zoom-in;
	transition: transform .2s cubic-bezier(.32, .72, 0, 1);
}
.ef24b__files img:hover { transform: scale(1.03); }

.ef24b__lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 14px;
	padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
	background: rgba(10, 12, 16, .92);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: ef24b-fade .2s ease-out;
}

@keyframes ef24b-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

.ef24b__lb img {
	max-width: min(100%, 1100px);
	max-height: calc(100vh - 150px);
	width: auto;
	height: auto;
	border-radius: 10px;
	display: block;
	box-shadow: 0 24px 64px -20px rgba(0, 0, 0, .8);
	animation: ef24b-zoom .24s cubic-bezier(.32, .72, 0, 1);
}

@keyframes ef24b-zoom {
	from { opacity: 0; transform: scale(.95); }
	to { opacity: 1; transform: none; }
}

.ef24b__lb-x {
	position: absolute;
	top: calc(16px + env(safe-area-inset-top));
	right: 16px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background .18s ease;
}
.ef24b__lb-x:hover { background: rgba(255, 255, 255, .26); }
.ef24b__lb-x svg { width: 17px; height: 17px; fill: currentColor; }

.ef24b__lb-h {
	margin: 0;
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
	letter-spacing: .02em;
	text-align: center;
}

/* =====================================================================
 * The made-to-measure brief
 * ================================================================== */

.ef24b__brief {
	margin: 0 0 13px;
	padding: 15px;
	border-radius: var(--ef24b-r);
	background: var(--ef24b-bg);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 0 0 1px rgba(16, 24, 40, .05);
	animation: ef24b-pop .24s var(--ef24b-ease) both;
}

.ef24b__brief-h {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 640;
	color: var(--ef24b-ink);
}

.ef24b__brief-l {
	display: block;
	margin: 0 0 4px;
	font-size: 11.5px;
	font-weight: 560;
	color: var(--ef24b-ink-2);
}

.ef24b__brief input,
.ef24b__brief textarea {
	width: 100%;
	margin: 0 0 11px;
	padding: 9px 12px;
	border: 1px solid var(--ef24b-line);
	border-radius: 9px;
	background: var(--ef24b-soft);
	font: inherit;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--ef24b-ink);
	resize: vertical;
	box-sizing: border-box;
}

.ef24b__brief input::placeholder,
.ef24b__brief textarea::placeholder { color: var(--ef24b-ink-3); }

.ef24b__brief input:focus,
.ef24b__brief textarea:focus {
	outline: none;
	border-color: var(--ef24b-accent);
	background: var(--ef24b-bg);
}

.ef24b__brief-go { width: 100%; justify-content: center; margin-top: 2px; }
.ef24b__brief-go:disabled { opacity: .55; cursor: default; }

@media (max-width: 560px) {
	.ef24b__brief input,
	.ef24b__brief textarea { font-size: 16px; }
}

/* the describe-it box at the top of the brief */

.ef24b__brief-d {
	padding: 0 0 13px;
	margin: 0 0 13px;
	border-bottom: 1px solid var(--ef24b-line);
}

.ef24b__brief-read {
	width: 100%;
	padding: 9px 14px;
	border: 1px solid var(--ef24b-accent);
	border-radius: 9px;
	background: transparent;
	color: var(--ef24b-accent);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s var(--ef24b-ease), color .18s var(--ef24b-ease);
}
.ef24b__brief-read:hover { background: var(--ef24b-accent); color: #fff; }
.ef24b__brief-read:disabled { opacity: .5; cursor: default; }

.ef24b__brief-note {
	display: block;
	margin-top: 8px;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--ef24b-ink-2);
}

/* a field the assistant filled, so it is obvious what to check */
.ef24b__brief input.is-filled,
.ef24b__brief textarea.is-filled {
	border-color: var(--ef24b-accent);
	background: #fffaf6;
}
