.fd-thread-page {
	--fd-yellow: #fed700;
	--fd-red: #b30930;
	--fd-ink: #383838;
	--fd-card: #dddddd;
	--fd-muted: #737373;
	--fd-line: #e8e8e8;
	--fd-white: #ffffff;
	color: var(--fd-ink);
	margin-bottom: 40px;
}

.fd-thread-page,
.fd-thread-page *,
.fd-thread-page *::before,
.fd-thread-page *::after {
	box-sizing: border-box;
}

.fd-thread-page .fd-thread-breadcrumb {
	align-items: center;
	background: transparent;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0 0 16px;
	padding: 0;
}

.fd-thread-page .fd-thread-breadcrumb > li {
	color: #818181;
	font-size: 12px;
	margin: 0;
	padding: 0;
}

.fd-thread-page .fd-thread-breadcrumb > li + li::before {
	color: #b7b7b7;
	content: "\f105";
	font-family: FontAwesome;
	padding: 0 2px 0 0;
}

.fd-thread-page .fd-thread-breadcrumb a {
	color: #686868;
	transition: color .2s ease;
}

.fd-thread-page .fd-thread-breadcrumb a:hover {
	color: var(--fd-red);
	text-decoration: none;
}

.fd-thread-page .fd-thread-alert {
	border: 0;
	border-radius: 12px;
	box-shadow: 0 8px 25px rgba(56, 56, 56, .08);
	margin: 0 0 16px;
	padding: 13px 16px;
}

.fd-thread-page .fd-thread-alert i {
	margin-right: 8px;
}

.fd-thread-page .fd-thread-alert--success {
	background: #f2fbf5;
	border-left: 4px solid #35a85f;
	color: #267743;
}

.fd-thread-page .fd-thread-alert--warning {
	background: #fff7f7;
	border-left: 4px solid var(--fd-red);
	color: var(--fd-red);
}

.fd-thread-shell {
	background: var(--fd-white);
	border: 1px solid var(--fd-line);
	border-radius: 22px;
	box-shadow: 0 18px 55px rgba(56, 56, 56, .11);
	overflow: hidden;
	position: relative;
}

.fd-thread-shell::before {
	background: linear-gradient(90deg, var(--fd-yellow) 0 72%, var(--fd-red) 72% 100%);
	content: "";
	height: 5px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
	z-index: 2;
}

.fd-thread-header {
	align-items: center;
	background:
		radial-gradient(circle at 91% 12%, rgba(254, 215, 0, .14), transparent 26%),
		var(--fd-ink);
	color: var(--fd-white);
	display: flex;
	gap: 12px;
	min-height: 76px;
	padding: 16px 22px 14px;
}

.fd-thread-header__icon {
	align-items: center;
	background: var(--fd-yellow);
	border-radius: 13px;
	box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
	color: var(--fd-ink);
	display: flex;
	flex: 0 0 42px;
	font-size: 18px;
	height: 42px;
	justify-content: center;
}

.fd-thread-header__copy {
	min-width: 0;
}

.fd-thread-header h1 {
	color: var(--fd-white);
	font-size: 21px !important;
	font-weight: 700;
	letter-spacing: -.25px;
	line-height: 1.25;
	margin: 0 0 3px;
}

.fd-thread-participant {
	align-items: center;
	color: rgba(255, 255, 255, .75);
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	gap: 4px 8px;
	line-height: 1.35;
}

.fd-thread-participant i {
	color: var(--fd-yellow);
}

.fd-thread-participant__name {
	color: var(--fd-white);
	font-weight: 600;
}

.fd-thread-participant__email {
	color: rgba(255, 255, 255, .64);
	overflow-wrap: anywhere;
}

.fd-thread-messages {
	background:
		linear-gradient(rgba(255, 255, 255, .84), rgba(255, 255, 255, .84)),
		repeating-linear-gradient(135deg, #f1f1f1 0, #f1f1f1 1px, transparent 1px, transparent 13px);
	max-height: 430px;
	min-height: 180px;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 18px 20px;
	scroll-behavior: smooth;
}

.fd-thread-message {
	align-items: flex-end;
	display: flex;
	gap: 8px;
	margin: 0 0 14px;
	width: 100%;
}

.fd-thread-message:last-child {
	margin-bottom: 0;
}

.fd-thread-message--outgoing {
	flex-direction: row-reverse;
}

.fd-thread-avatar {
	align-items: center;
	background: var(--fd-card);
	border: 2px solid var(--fd-white);
	border-radius: 50%;
	box-shadow: 0 4px 12px rgba(56, 56, 56, .12);
	color: var(--fd-red);
	display: flex;
	flex: 0 0 32px;
	font-size: 11px;
	font-weight: 800;
	height: 32px;
	justify-content: center;
	position: relative;
	text-transform: uppercase;
}

.fd-thread-message--outgoing .fd-thread-avatar {
	background: var(--fd-yellow);
	color: var(--fd-ink);
}

.fd-thread-message--new .fd-thread-avatar::after {
	background: var(--fd-red);
	border: 2px solid var(--fd-white);
	border-radius: 50%;
	content: "";
	height: 10px;
	position: absolute;
	right: -2px;
	top: -2px;
	width: 10px;
}

.fd-thread-message__body {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	max-width: min(76%, 690px);
	min-width: 0;
}

.fd-thread-message--outgoing .fd-thread-message__body {
	align-items: flex-end;
}

.fd-thread-message__sender {
	align-items: baseline;
	color: var(--fd-ink);
	display: flex;
	flex-wrap: wrap;
	font-size: 11px;
	gap: 3px 7px;
	line-height: 1.3;
	margin: 0 8px 4px;
	max-width: 100%;
}

.fd-thread-message__sender strong {
	font-weight: 700;
}

.fd-thread-message__sender span {
	color: #8a8a8a;
	font-size: 10px;
	overflow-wrap: anywhere;
}

.fd-thread-message--outgoing .fd-thread-message__sender {
	justify-content: flex-end;
	text-align: right;
}

.fd-thread-bubble {
	background: var(--fd-card);
	border-radius: 14px 14px 14px 4px;
	box-shadow: 0 7px 19px rgba(56, 56, 56, .09);
	color: var(--fd-ink);
	padding: 9px 12px 8px;
	position: relative;
	width: fit-content;
	max-width: 100%;
}

.fd-thread-message--outgoing .fd-thread-bubble {
	background: linear-gradient(135deg, var(--fd-yellow), #ffe968);
	border-radius: 14px 14px 4px 14px;
	box-shadow: 0 8px 22px rgba(179, 9, 48, .12);
}

.fd-thread-bubble__text {
	font-size: 13px;
	line-height: 1.48;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

.fd-thread-bubble__text a {
	color: var(--fd-red);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fd-thread-attachments {
	border-top: 1px solid rgba(56, 56, 56, .14);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
	padding-top: 8px;
}

.fd-thread-attachment {
	align-items: center;
	background: rgba(255, 255, 255, .68);
	border: 1px solid rgba(56, 56, 56, .13);
	border-radius: 999px;
	color: var(--fd-ink);
	display: inline-flex;
	font-size: 11px;
	font-weight: 600;
	gap: 6px;
	line-height: 1.2;
	max-width: 100%;
	padding: 6px 9px;
	transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.fd-thread-attachment span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fd-thread-attachment:hover,
.fd-thread-attachment:focus {
	border-color: var(--fd-red);
	color: var(--fd-red);
	text-decoration: none;
	transform: translateY(-1px);
}

.fd-thread-message__date {
	color: #8c8c8c;
	font-size: 10px;
	line-height: 1.3;
	margin: 4px 8px 0;
}

.fd-thread-message--outgoing .fd-thread-message__date {
	text-align: right;
}

.fd-thread-empty {
	align-items: center;
	color: #777;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 180px;
	padding: 26px 18px;
	text-align: center;
}

.fd-thread-empty__icon {
	align-items: center;
	background: var(--fd-card);
	border-radius: 50%;
	color: var(--fd-red);
	display: flex;
	font-size: 23px;
	height: 60px;
	justify-content: center;
	margin-bottom: 13px;
	width: 60px;
}

.fd-thread-empty p {
	font-size: 14px;
	margin: 0;
}

.fd-thread-pagination {
	align-items: center;
	background: #fafafa;
	border-top: 1px solid var(--fd-line);
	color: var(--fd-muted);
	display: flex;
	font-size: 12px;
	justify-content: space-between;
	min-height: 56px;
	padding: 8px 24px;
}

.fd-thread-pagination::after,
.fd-thread-pagination::before {
	display: none;
}

.fd-thread-pagination > div {
	float: none !important;
	padding: 0;
	width: auto;
}

.fd-thread-pagination .pagination {
	margin: 0;
}

.fd-thread-pagination .pagination > li > a,
.fd-thread-pagination .pagination > li > span {
	border-color: var(--fd-line);
	color: var(--fd-ink);
}

.fd-thread-pagination .pagination > .active > a,
.fd-thread-pagination .pagination > .active > span {
	background: var(--fd-red);
	border-color: var(--fd-red);
	color: var(--fd-white);
}

.fd-thread-composer {
	background: var(--fd-white);
	border-top: 1px solid var(--fd-line);
	clear: both;
	margin: 0 !important;
	padding: 16px 20px 18px !important;
	width: 100% !important;
}

.fd-thread-composer__top {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-bottom: 10px;
}

.fd-thread-composer__title {
	align-items: center;
	color: var(--fd-ink);
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: 8px;
	margin: 0;
}

.fd-thread-composer__title i {
	color: var(--fd-red);
}

.fd-thread-recipient {
	align-items: center;
	background: #f4f4f4;
	border-radius: 999px;
	color: #696969;
	display: inline-flex;
	font-size: 10px;
	gap: 6px;
	max-width: 48%;
	padding: 5px 9px;
}

.fd-thread-recipient i {
	color: var(--fd-red);
}

.fd-thread-recipient span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fd-thread-field {
	margin-bottom: 12px;
}

.fd-thread-field label {
	color: var(--fd-ink);
	display: block;
	font-size: 11px;
	font-weight: 700;
	margin: 0 0 5px;
}

.fd-thread-field.required label::after {
	color: var(--fd-red);
	content: " *";
}

.fd-thread-page .fd-thread-input,
.fd-thread-page .fd-thread-textarea {
	background: #fafafa;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	box-shadow: none;
	color: var(--fd-ink);
	font-size: 13px;
	height: 40px;
	outline: 0;
	padding: 9px 11px;
	transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
	width: 100%;
}

.fd-thread-page .fd-thread-textarea {
	height: 96px;
	line-height: 1.5;
	min-height: 96px;
	resize: vertical;
}

.fd-thread-page .fd-thread-input:focus,
.fd-thread-page .fd-thread-textarea:focus {
	background: var(--fd-white);
	border-color: var(--fd-yellow);
	box-shadow: 0 0 0 3px rgba(254, 215, 0, .22);
}

.fd-thread-textarea-wrap {
	position: relative;
}

.fd-thread-character-count {
	bottom: 10px;
	color: #999;
	font-size: 10px;
	pointer-events: none;
	position: absolute;
	right: 12px;
}

.fd-thread-page .text-danger {
	color: var(--fd-red);
	font-size: 11px;
	margin-top: 6px;
}

.fd-thread-uploader {
	background: #f7f7f7;
	border: 1px dashed #cfcfcf;
	border-radius: 11px;
	padding: 8px;
}

.fd-thread-uploader__toolbar {
	align-items: center;
	display: flex;
	justify-content: space-between;
}

.fd-thread-uploader__label {
	align-items: center;
	color: #737373;
	display: flex;
	font-size: 11px;
	gap: 7px;
}

.fd-thread-uploader__label i {
	color: var(--fd-red);
}

.fd-thread-add-file {
	align-items: center;
	background: var(--fd-card);
	border: 0;
	border-radius: 9px;
	color: var(--fd-ink);
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	gap: 7px;
	min-height: 32px;
	padding: 6px 10px;
	transition: background .2s ease, color .2s ease, transform .2s ease;
}

.fd-thread-add-file:hover,
.fd-thread-add-file:focus {
	background: var(--fd-yellow);
	color: var(--fd-ink);
	outline: 0;
	transform: translateY(-1px);
}

.fd-thread-upload-list:empty {
	display: none;
}

.fd-thread-upload-list {
	border-top: 1px solid #e1e1e1;
	margin-top: 10px;
	padding-top: 4px;
}

.fd-thread-upload-row {
	align-items: center;
	display: flex;
	gap: 9px;
	padding-top: 8px;
}

.fd-thread-file-control {
	align-items: center;
	background: var(--fd-white);
	border: 1px solid var(--fd-line);
	border-radius: 9px;
	cursor: pointer;
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	margin: 0 !important;
	min-height: 39px;
	min-width: 0;
	padding: 8px 11px;
}

.fd-thread-file-control i {
	color: var(--fd-red);
	flex: 0 0 auto;
}

.fd-thread-file-control input[type="file"] {
	height: 1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.fd-thread-file-name {
	color: #777;
	font-size: 11px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fd-thread-remove-file {
	align-items: center;
	background: transparent;
	border: 1px solid #e2b9c2;
	border-radius: 9px;
	color: var(--fd-red);
	display: flex;
	flex: 0 0 39px;
	height: 39px;
	justify-content: center;
	transition: background .2s ease, color .2s ease;
}

.fd-thread-remove-file:hover,
.fd-thread-remove-file:focus {
	background: var(--fd-red);
	color: var(--fd-white);
	outline: 0;
}

.fd-thread-captcha {
	margin-top: 12px;
}

.fd-thread-actions {
	align-items: center;
	display: flex;
	justify-content: flex-end;
	margin-top: 14px;
}

.fd-thread-submit {
	align-items: center;
	background: var(--fd-red);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 9px 20px rgba(179, 9, 48, .2);
	color: var(--fd-white);
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	gap: 9px;
	justify-content: center;
	min-height: 40px;
	min-width: 120px;
	padding: 9px 18px;
	transition: box-shadow .2s ease, transform .2s ease;
}

.fd-thread-submit:hover,
.fd-thread-submit:focus {
	box-shadow: 0 12px 24px rgba(179, 9, 48, .28);
	color: var(--fd-white);
	outline: 0;
	transform: translateY(-1px);
}

.fd-thread-submit i {
	color: var(--fd-yellow);
}

@media (max-width: 767px) {
	.fd-thread-page {
		margin-left: -5px;
		margin-right: -5px;
	}

	.fd-thread-shell {
		border-radius: 17px;
	}

	.fd-thread-header {
		min-height: 68px;
		padding: 13px 14px 11px;
	}

	.fd-thread-header__icon {
		border-radius: 11px;
		flex-basis: 37px;
		font-size: 16px;
		height: 37px;
	}

	.fd-thread-header h1 {
		font-size: 18px !important;
	}

	.fd-thread-participant__email {
		display: none;
	}

	.fd-thread-messages {
		max-height: 390px;
		min-height: 165px;
		padding: 14px 11px;
	}

	.fd-thread-message {
		gap: 6px;
		margin-bottom: 12px;
	}

	.fd-thread-avatar {
		border-width: 2px;
		flex-basis: 28px;
		font-size: 10px;
		height: 28px;
	}

	.fd-thread-message__body {
		max-width: calc(100% - 42px);
	}

	.fd-thread-bubble {
		border-radius: 12px 12px 12px 3px;
		padding: 8px 10px 7px;
	}

	.fd-thread-message--outgoing .fd-thread-bubble {
		border-radius: 12px 12px 3px 12px;
	}

	.fd-thread-bubble__text {
		font-size: 12px;
	}

	.fd-thread-message__sender span {
		display: none;
	}

	.fd-thread-composer {
		padding: 13px 12px 15px !important;
	}

	.fd-thread-composer__top {
		align-items: flex-start;
		flex-direction: column;
	}

	.fd-thread-recipient {
		max-width: 100%;
	}

	.fd-thread-pagination {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
		padding: 12px 16px;
	}

	.fd-thread-actions,
	.fd-thread-submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fd-thread-page *,
	.fd-thread-page *::before,
	.fd-thread-page *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
