/**
 * AnimeFLV comments (jkanime-style layout in the AnimeFLV palette).
 * Palette follows css.css: primary #01bcf3, dark #3b4248, muted #9da1a4, lines #eceff1.
 * Global css.css rules for button/textarea/ul/[class*=fa-] are neutralised inside .afl-cmts.
 */

.afl-cmts {
	--afl-c-primary: #01bcf3;
	--afl-c-primary-dark: #00a2d2;
	--afl-c-dark: #3b4248;
	--afl-c-text: #50575c;
	--afl-c-muted: #9da1a4;
	--afl-c-line: #eceff1;
	--afl-c-soft: #f5f7f8;
	--afl-c-danger: #f44336;
	--afl-c-warn: #ff7e00;
	font-size: 13px;
	line-height: 1.5;
	color: var(--afl-c-text);
}

.afl-cmts [hidden],
.afl-cmts-modal[hidden],
.afl-cmts-lightbox[hidden] {
	display: none !important;
}

.afl-cmts button,
.afl-cmts-modal button {
	margin: 0;
	box-shadow: none;
	font-family: inherit;
	cursor: pointer;
}

.afl-cmts [class*=fa-]:before {
	margin-right: 0;
	vertical-align: baseline;
}

.afl-cmts ul,
.afl-cmts li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.afl-cmts textarea,
.afl-cmts input {
	margin: 0;
}

/* Header: title + sort tabs ------------------------------------------------ */

.afl-cmts .afl-cmts__top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 15px;
	border-bottom: 1px solid var(--afl-c-line);
}

.afl-cmts .afl-cmts__top .Title {
	padding-bottom: 8px;
}

.afl-cmts__total {
	color: var(--afl-c-muted);
	font-weight: 400;
	letter-spacing: 0;
}

.afl-cmts__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: -1px;
}

.afl-cmts .afl-cmts__tabs button {
	padding: 6px 10px 8px;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background-color: transparent;
	color: var(--afl-c-muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 18px;
}

.afl-cmts .afl-cmts__tabs button:hover {
	background-color: transparent;
	color: var(--afl-c-dark);
}

.afl-cmts .afl-cmts__tabs button.is-active {
	border-bottom-color: var(--afl-c-primary);
	color: var(--afl-c-dark);
}

.afl-cmts--bare .afl-cmts__top {
	justify-content: flex-end;
}

/* Buttons ------------------------------------------------------------------ */

.afl-cmts .afl-cmts__btn,
.afl-cmts-modal .afl-cmts__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 16px;
	border: 0;
	border-radius: 5px;
	background-color: var(--afl-c-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 34px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color .15s, opacity .15s;
}

.afl-cmts .afl-cmts__btn:hover,
.afl-cmts-modal .afl-cmts__btn:hover {
	background-color: var(--afl-c-primary-dark);
	color: #fff;
}

.afl-cmts .afl-cmts__btn--ghost,
.afl-cmts-modal .afl-cmts__btn--ghost {
	background-color: var(--afl-c-soft);
	color: var(--afl-c-dark);
}

.afl-cmts .afl-cmts__btn--ghost:hover,
.afl-cmts-modal .afl-cmts__btn--ghost:hover {
	background-color: var(--afl-c-line);
	color: var(--afl-c-dark);
}

.afl-cmts .afl-cmts__btn--block {
	width: 100%;
}

.afl-cmts .afl-cmts__btn[disabled],
.afl-cmts .afl-cmts__btn.is-busy {
	opacity: .6;
	cursor: default;
}

/* Editor ------------------------------------------------------------------- */

.afl-editor {
	margin-bottom: 20px;
}

.afl-editor__box {
	position: relative;
	border: 1px solid var(--afl-c-line);
	border-radius: 8px;
	background-color: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.afl-editor__box:focus-within {
	border-color: var(--afl-c-primary);
	box-shadow: 0 0 0 3px rgba(1, 188, 243, .15);
}

.afl-editor__box.is-invalid {
	border-color: var(--afl-c-danger);
}

.afl-editor__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	padding: 5px 6px;
	border-bottom: 1px solid var(--afl-c-line);
	border-radius: 8px 8px 0 0;
	background-color: var(--afl-c-soft);
}

.afl-cmts .afl-editor__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 30px;
	padding: 0 6px;
	border-radius: 5px;
	background-color: transparent;
	color: var(--afl-c-dark);
	font-size: 14px;
	line-height: 30px;
}

.afl-cmts .afl-editor__tool:hover {
	background-color: #fff;
	color: var(--afl-c-primary);
}

.afl-cmts .afl-editor__tool--gif {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
}

.afl-cmts .afl-editor textarea {
	display: block;
	width: 100%;
	min-height: 92px;
	padding: 10px 12px;
	border: 0;
	border-radius: 0 0 8px 8px;
	background-color: #fff;
	color: var(--afl-c-dark);
	font-size: 13px;
	line-height: 1.5;
	resize: vertical;
	box-shadow: none;
	outline: 0;
}

.afl-editor__media {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0 12px 10px;
}

.afl-editor__thumb {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 64px;
	height: 64px;
	border: 1px solid var(--afl-c-line);
	border-radius: 6px;
	background-color: var(--afl-c-soft);
	color: var(--afl-c-muted);
	font-size: 11px;
	overflow: hidden;
}

.afl-editor__thumb.is-uploading {
	padding: 0 10px;
}

.afl-editor__thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.afl-cmts .afl-editor__thumb button {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	padding: 0;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 14px;
	line-height: 20px;
}

.afl-editor__pop {
	position: absolute;
	top: 42px;
	left: 6px;
	z-index: 40;
	padding: 8px;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.afl-editor__emojis {
	display: grid;
	grid-template-columns: repeat(8, 34px);
	gap: 2px;
	max-width: calc(100% - 12px);
}

.afl-cmts .afl-editor__emojis button {
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 6px;
	background-color: transparent;
	font-size: 20px;
	line-height: 34px;
}

.afl-cmts .afl-editor__emojis button:hover {
	background-color: var(--afl-c-soft);
}

.afl-editor__gifs {
	width: 340px;
	max-width: calc(100% - 12px);
}

.afl-cmts .afl-editor__gif-q {
	display: block;
	width: 100%;
	height: 32px;
	margin-bottom: 8px;
	padding: 0 10px;
	border: 1px solid var(--afl-c-line);
	border-radius: 5px;
	font-size: 13px;
}

.afl-editor__gif-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	max-height: 260px;
	overflow-y: auto;
}

.afl-cmts .afl-editor__gif-item,
.afl-cmts .afl-editor__gif-next {
	height: 80px;
	padding: 0;
	border-radius: 4px;
	background-color: var(--afl-c-soft);
	overflow: hidden;
}

.afl-editor__gif-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.afl-editor__loading {
	grid-column: 1 / -1;
	padding: 20px;
	color: var(--afl-c-muted);
	text-align: center;
}

.afl-editor__powered {
	display: block;
	margin-top: 6px;
	color: var(--afl-c-muted);
	font-size: 10px;
	text-align: right;
}

.afl-editor__mentions {
	position: absolute;
	left: 12px;
	z-index: 40;
	min-width: 220px;
	margin-top: -6px;
	padding: 4px 0;
	border-radius: 6px;
	background-color: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .18);
}

.afl-cmts .afl-editor__mentions li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	cursor: pointer;
}

.afl-cmts .afl-editor__mentions li.is-active,
.afl-cmts .afl-editor__mentions li:hover {
	background-color: var(--afl-c-soft);
}

.afl-editor__mentions img {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.afl-editor__mentions strong {
	color: var(--afl-c-dark);
	font-size: 13px;
}

.afl-editor__mentions span {
	color: var(--afl-c-muted);
	font-size: 12px;
}

.afl-cmts__warn {
	margin-top: 6px;
	padding: 6px 10px;
	border-radius: 6px;
	background-color: #fdecea;
	color: #c62828;
	font-size: 12px;
}

.afl-editor__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 8px;
}

.afl-editor__hint {
	color: var(--afl-c-muted);
	font-size: 11px;
}

.afl-cmts__counter {
	margin-left: auto;
	color: var(--afl-c-muted);
	font-size: 11px;
}

.afl-cmts__counter.is-over {
	color: var(--afl-c-danger);
	font-weight: 700;
}

.afl-cmts__check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.afl-cmts__check input {
	margin: 0;
}

/* Guest prompt / closed ---------------------------------------------------- */

.afl-cmts__guest {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	padding: 16px 18px;
	border-radius: 8px;
	background: linear-gradient(135deg, #3b4248 0%, #2b3034 100%);
	color: #fff;
}

.afl-cmts__guest-icon {
	display: flex;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--afl-c-primary);
	font-size: 20px;
}

.afl-cmts__guest-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 180px;
}

.afl-cmts__guest-text strong {
	font-size: 15px;
	line-height: 20px;
}

.afl-cmts__guest-text span {
	color: #c5cacd;
	font-size: 12px;
}

.afl-cmts__guest-actions {
	display: flex;
	gap: 8px;
}

.afl-cmts .afl-cmts__guest .afl-cmts__btn--ghost {
	background-color: rgba(255, 255, 255, .12);
	color: #fff;
}

.afl-cmts .afl-cmts__guest .afl-cmts__btn--ghost:hover {
	background-color: rgba(255, 255, 255, .22);
}

.afl-cmts__closed {
	margin: 0 0 15px;
	padding: 10px 12px;
	border-radius: 6px;
	background-color: var(--afl-c-soft);
	color: var(--afl-c-muted);
	font-size: 12px;
}

.afl-cmts__closed i {
	margin-right: 6px;
}

/* Comment list --------------------------------------------------------------- */

.afl-cmts__empty {
	padding: 30px 10px;
	color: var(--afl-c-muted);
	text-align: center;
}

.afl-cmts.is-loading .afl-cmts__list {
	opacity: .5;
	transition: opacity .15s;
}

.afl-cmt {
	position: relative;
	padding: 14px 0;
	border-top: 1px solid var(--afl-c-line);
}

.afl-cmts__list > .afl-cmt:first-child {
	border-top: 0;
}

.afl-cmt.is-pinned {
	margin: 0 -20px;
	padding: 14px 20px;
	background: linear-gradient(90deg, rgba(255, 126, 0, .07), rgba(255, 126, 0, 0) 70%);
}

.afl-cmt.is-temp {
	opacity: .55;
}

.afl-cmt.is-highlight > .afl-cmt__row {
	animation: afl-cmt-flash 2s ease-out;
}

@keyframes afl-cmt-flash {
	from { background-color: rgba(1, 188, 243, .18); }
	to { background-color: transparent; }
}

.afl-cmt__row {
	display: flex;
	gap: 12px;
}

.afl-cmt__avatar {
	flex: 0 0 40px;
}

.afl-cmt__avatar img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.afl-cmt.is-reply .afl-cmt__avatar {
	flex-basis: 32px;
}

.afl-cmt.is-reply .afl-cmt__avatar img {
	width: 32px;
	height: 32px;
}

.afl-cmt__body {
	flex: 1;
	min-width: 0;
}

.afl-cmt__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 3px;
}

.afl-cmt__who {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 3px 6px;
	min-width: 0;
	line-height: 20px;
}

.afl-cmt__user {
	color: var(--afl-c-dark);
	font-size: 13px;
	font-weight: 700;
}

a.afl-cmt__user:hover {
	color: var(--afl-c-primary);
}

.afl-cmt__badge {
	display: inline-block;
	padding: 0 7px;
	border-radius: 10px;
	background-color: var(--afl-badge, #01bcf3);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-transform: uppercase;
	letter-spacing: .3px;
}

.afl-cmt__ach {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #fff4e0;
	color: #ff9800;
	font-size: 10px;
}

.afl-cmt__pin {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: var(--afl-c-warn);
	font-size: 11px;
	font-weight: 700;
}

.afl-cmt__time,
.afl-cmt__edited {
	color: var(--afl-c-muted);
	font-size: 11px;
}

.afl-cmt__tools {
	display: flex;
	flex: 0 0 auto;
	gap: 2px;
}

.afl-cmts .afl-cmt__tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 50%;
	background-color: transparent;
	color: var(--afl-c-muted);
	font-size: 13px;
	line-height: 26px;
}

.afl-cmts .afl-cmt__tool:hover {
	background-color: var(--afl-c-soft);
	color: var(--afl-c-dark);
}

.afl-cmt.is-collapsed > .afl-cmt__row .afl-cmt__collapsible,
.afl-cmt.is-collapsed > .afl-cmt__thread {
	display: none;
}

.afl-cmt.is-collapsed > .afl-cmt__row .afl-cmt__avatar {
	opacity: .5;
}

.afl-cmt__collapsible.is-editing {
	display: none;
}

.afl-cmt__pending {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-bottom: 4px;
	padding: 1px 7px;
	border-radius: 3px;
	background-color: #fff4e0;
	color: #b25e00;
	font-size: 11px;
	font-weight: 700;
}

/* Comment body --------------------------------------------------------------- */

.afl-cmt__content {
	position: relative;
}

.afl-cmt__content.is-clamped {
	overflow: hidden;
}

.afl-cmt__content.is-clamped:after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 48px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.afl-cmt.is-pinned .afl-cmt__content.is-clamped:after {
	background: linear-gradient(rgba(255, 255, 255, 0), #fffaf5);
}

.afl-cmt__text {
	color: var(--afl-c-text);
	font-size: 13px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

.afl-cmt__text strong {
	color: var(--afl-c-dark);
}

.afl-cmt__mention {
	color: var(--afl-c-primary);
	font-weight: 700;
}

.afl-cmt__quote {
	margin: 6px 0;
	padding: 4px 10px;
	border-left: 3px solid var(--afl-c-primary);
	border-radius: 0 4px 4px 0;
	background-color: var(--afl-c-soft);
	color: #6b7276;
	font-size: 13px;
}

.afl-cmt__text code {
	padding: 1px 5px;
	border-radius: 3px;
	background-color: #eef1f3;
	color: #c7254e;
	font-family: Consolas, Monaco, monospace;
	font-size: 12px;
}

.afl-cmt__code {
	margin: 6px 0;
	padding: 10px 12px;
	border-radius: 6px;
	background-color: #2b3034;
	overflow-x: auto;
}

.afl-cmt__code code {
	padding: 0;
	background-color: transparent;
	color: #e8eaeb;
	white-space: pre;
}

.afl-spoiler {
	padding: 0 3px;
	border-radius: 3px;
	cursor: pointer;
	user-select: none;
	filter: blur(4px);
	transition: filter .2s;
}

.afl-spoiler.is-revealed {
	cursor: text;
	user-select: auto;
	filter: none;
}

.afl-cmt__media {
	position: relative;
	display: block;
	max-width: 100%;
	margin: 6px 0;
}

.afl-cmt__media img {
	display: block;
	width: auto;
	max-width: min(100%, 420px);
	height: auto;
	max-height: 320px;
	border-radius: 6px;
	cursor: zoom-in;
}

.afl-cmt__gif-by {
	position: absolute;
	bottom: 4px;
	left: 4px;
	padding: 0 4px;
	border-radius: 3px;
	background-color: rgba(0, 0, 0, .55);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 14px;
}

.afl-cmts .afl-cmt__see-more {
	margin-top: 2px;
	padding: 0;
	background-color: transparent;
	color: var(--afl-c-primary);
	font-size: 12px;
	font-weight: 700;
}

.afl-cmts .afl-cmt__see-more:hover {
	background-color: transparent;
	color: var(--afl-c-primary-dark);
}

/* Reactions and actions ----------------------------------------------------- */

.afl-cmt__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.afl-cmts .afl-cmt__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 24px;
	padding: 0 8px;
	border: 1px solid var(--afl-c-line);
	border-radius: 12px;
	background-color: var(--afl-c-soft);
	color: var(--afl-c-dark);
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
}

.afl-cmts .afl-cmt__chip:hover {
	border-color: var(--afl-c-primary);
	background-color: #fff;
	color: var(--afl-c-dark);
}

.afl-cmts .afl-cmt__chip.is-active {
	border-color: var(--afl-c-primary);
	background-color: rgba(1, 188, 243, .1);
	color: var(--afl-c-primary);
}

.afl-cmt__emoji {
	font-size: 14px;
	line-height: 1;
}

.afl-cmt__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px;
	margin: 6px 0 0 -8px;
}

.afl-cmts .afl-cmt__act {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 8px;
	border-radius: 14px;
	background-color: transparent;
	color: var(--afl-c-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 28px;
	transition: background-color .15s, color .15s;
}

.afl-cmts .afl-cmt__act:hover {
	background-color: var(--afl-c-soft);
	color: var(--afl-c-dark);
}

.afl-cmts .afl-cmt__act i {
	font-size: 14px;
}

.afl-cmts .afl-cmt__like.is-active {
	color: var(--afl-c-primary);
}

.afl-cmts .afl-cmt__dislike.is-active {
	color: var(--afl-c-danger);
}

.afl-cmts .afl-cmt__replies {
	color: var(--afl-c-primary);
}

.afl-cmts .afl-cmt__replies.is-open {
	background-color: rgba(1, 188, 243, .1);
}

.afl-cmt__act .afl-cmt__n:empty {
	display: none;
}

.afl-cmt__pop-wrap {
	position: relative;
	display: inline-block;
}

.afl-cmt__picker {
	position: absolute;
	bottom: 100%;
	left: 0;
	z-index: 30;
	display: flex;
	gap: 2px;
	margin-bottom: 4px;
	padding: 4px;
	border-radius: 24px;
	background-color: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}

.afl-cmts .afl-cmt__pick {
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 50%;
	background-color: transparent;
	font-size: 20px;
	line-height: 34px;
	transition: transform .15s, background-color .15s;
}

.afl-cmts .afl-cmt__pick:hover {
	background-color: var(--afl-c-soft);
	transform: scale(1.18);
}

.afl-cmts .afl-cmt__pick.is-active {
	background-color: rgba(1, 188, 243, .16);
}

.afl-cmt__menu {
	position: absolute;
	top: 100%;
	right: 0;
	z-index: 30;
	min-width: 170px;
	margin-top: 2px;
	padding: 6px 0;
	border-radius: 6px;
	background-color: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
}

.afl-cmts .afl-cmt__menu button {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 7px 14px;
	border-radius: 0;
	background-color: transparent;
	color: var(--afl-c-dark);
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	text-align: left;
	white-space: nowrap;
}

.afl-cmts .afl-cmt__menu button:hover {
	background-color: var(--afl-c-soft);
	color: var(--afl-c-primary);
}

.afl-cmts .afl-cmt__menu button[disabled] {
	background-color: transparent;
	color: var(--afl-c-muted);
	cursor: default;
}

.afl-cmt__menu i {
	width: 14px;
	text-align: center;
}

/* Threads ------------------------------------------------------------------ */

.afl-cmt__thread {
	margin: 0 0 0 52px;
}

.afl-cmt__children:not([hidden]) {
	margin-top: 6px;
	padding-left: 12px;
	border-left: 2px solid var(--afl-c-line);
}

.afl-cmt__children .afl-cmt {
	padding: 10px 0 0;
	border-top: 0;
}

.afl-cmts .afl-cmt__more-replies {
	margin: 6px 0 0 14px;
	padding: 2px 0;
	background-color: transparent;
	color: var(--afl-c-primary);
	font-size: 12px;
	font-weight: 700;
}

.afl-cmts .afl-cmt__more-replies:hover {
	background-color: transparent;
	color: var(--afl-c-primary-dark);
}

.afl-cmt__body > .afl-editor {
	margin: 10px 0 0;
}

.afl-cmts__more {
	margin-top: 14px;
}

/* Report dialog and lightbox ----------------------------------------------- */

.afl-cmts-modal,
.afl-cmts-lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background-color: rgba(0, 0, 0, .6);
}

.afl-cmts-lightbox {
	background-color: rgba(0, 0, 0, .85);
}

.afl-cmts-lightbox img {
	max-width: 100%;
	max-height: 90vh;
	border-radius: 6px;
}

.afl-cmts .afl-cmts-lightbox__close {
	position: absolute;
	top: 12px;
	right: 16px;
	padding: 0 10px;
	background-color: transparent;
	color: #fff;
	font-size: 32px;
	line-height: 40px;
}

.afl-cmts-modal__box {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 20px;
	border-radius: 8px;
	background-color: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
	color: #50575c;
	font-size: 13px;
}

.afl-cmts-modal .afl-cmts-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	background-color: transparent;
	color: #9da1a4;
	font-size: 22px;
	line-height: 32px;
}

.afl-cmts-modal .afl-cmts-modal__close:hover {
	background-color: #f5f7f8;
	color: #3b4248;
}

.afl-cmts-modal__title {
	margin: 0 30px 6px 0;
	color: #3b4248;
	font-size: 17px;
	font-weight: 700;
}

.afl-cmts-modal__text {
	margin: 0 0 12px;
	color: #9da1a4;
}

.afl-cmts-modal__reasons {
	display: grid;
	gap: 6px;
}

.afl-cmts-modal__reasons .afl-cmts__check {
	padding: 8px 10px;
	border: 1px solid #eceff1;
	border-radius: 6px;
	color: #3b4248;
	font-size: 13px;
}

.afl-cmts-modal__reasons .afl-cmts__check:hover {
	border-color: #01bcf3;
}

.afl-cmts-modal textarea {
	display: block;
	width: 100%;
	min-height: 70px;
	margin: 12px 0 0;
	padding: 8px 10px;
	border: 1px solid #eceff1;
	border-radius: 6px;
	background-color: #f5f7f8;
	color: #3b4248;
	font-size: 13px;
}

.afl-cmts-modal textarea:focus {
	border-color: #01bcf3;
	background-color: #fff;
	outline: 0;
}

.afl-cmts-modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 560px) {
	.afl-cmts .afl-cmts__top {
		align-items: stretch;
		flex-direction: column;
	}

	.afl-cmts__tabs {
		justify-content: space-between;
	}

	.afl-cmts .afl-cmts__tabs button {
		flex: 1;
		padding-right: 4px;
		padding-left: 4px;
		font-size: 12px;
	}

	.afl-cmt__row {
		gap: 10px;
	}

	.afl-cmt__avatar {
		flex-basis: 34px;
	}

	.afl-cmt__avatar img {
		width: 34px;
		height: 34px;
	}

	.afl-cmt__thread {
		margin-left: 16px;
	}

	.afl-cmt__children:not([hidden]) {
		padding-left: 8px;
	}

	.afl-cmt.is-pinned {
		margin: 0 -15px;
		padding: 14px 15px;
	}

	.afl-cmts__guest-actions {
		width: 100%;
	}

	.afl-cmts__guest-actions .afl-cmts__btn {
		flex: 1;
	}

	.afl-editor__hint {
		width: 100%;
	}

	.afl-cmts__counter {
		margin-left: 0;
	}

	.afl-editor__foot .afl-cmts__btn {
		margin-left: auto;
	}

	.afl-editor__emojis {
		grid-template-columns: repeat(7, 34px);
	}

	.afl-editor__gif-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
