/* Styling for some features of QuickReply Reloaded. */
.qr_quickreply #attach-panel {
  display: block;
}
.qr_dropdown a {
	font-size: 11px !important;
}

.qr_quickquote {
	cursor: pointer;
}

.post.hidden_subject .postbody p.author {
	padding-top: 10px;
	padding-bottom: 5px;
}
#preview_close {
  float: inline-end;
}
#qr_loading_text > div {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 0;
  text-align: center;
  flex-direction: column;
}
#qr_loading_text .fa-refresh {
  font-size: 2rem;
}
#qr_loading_text #qr_loading_cancel {
  transition: 0.5s all;
}
#qr_loading_text #qr_loading_cancel:hover {
  color: #fff;
}
.qr-form-buttons {
  justify-content: center;
}

dl.attachbox {
  margin-top: 14px;
  font-size: 14px;
}
dl.attachbox > dt {
  margin-bottom: 4px;
  font-weight: 600;
}


/* Fixed form style. */
.qr_fixed_form {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 8;
	max-height: 50%;
	overflow-y: auto;
	overflow-x: hidden;
	margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 -8px 15px -10px #CCC;
}
.dark .qr_fixed_form {
  background-color: #0f172a;
  box-shadow: 0 -8px 15px -10px #0b101a;
}

#qr_postform.qr_fixed_form .md\:col-span-4 {
	box-sizing: border-box;
	width: 100%;
	transition: width 0.5s ease;
  grid-column: span 5 / span 5;
}

#qr_postform.qr_extended_form .md\:col-span-4 {
	transition: width 0s;
}

#qr_postform.qr_fixed_form.with_smileys .md\:col-span-4 {
  grid-column: span 4 / span 4;
}

#qr_postform.qr_fixed_form #message-box textarea {
  width: calc(100% - 45px);
  box-sizing: border-box;
  overflow-y: scroll;
  resize: none;
  left: 40px;
  position: relative;
}

#qr_postform.qr_fixed_form.qr_compact_form #message-box textarea {
  left: 0;
  width: 100%;
}

#qr_postform.qr_fixed_form #message-box textarea.qr_fixed_textarea {
	height: 115px !important;
	min-height: 0;
	transition: 0.5s ease;
}

.qr_fixed_form #attach-panel,
.qr_fixed_form #register-and-translit,
.qr_fixed_form #qr_captcha_container,
.qr_fixed_form .quickreply-title,
.qr_fixed_form .additional-element {
	display: none;
	min-height: 0;
}

#qr_text_action_box {
	display: block;
	width: 30px;
  position: absolute;
  z-index: 1;
}

#qr_text_action_box i,
#qr_action_box i,
#qr_show_fixed_form i {
	box-sizing: content-box;
	font-size: 16px;
	border: 1px solid;
	border-radius: 100%;
	padding: 0.35em 0.2em;
	margin-top: 7px;
	cursor: pointer;
}

#qr_text_action_box i:hover,
#qr_action_box i:hover {
	opacity: 0.7;
}

#qr_action_box {
	display: block;
	position: relative;
	width: 100%;
	z-index: 5;
	height: 0;
}

#qr_action_box_container {
	position: absolute;
	right: 18px;
	width: 30px;
}

#qr_show_fixed_form {
	display: inline-block;
	position: fixed;
	bottom: 0;
	left: 0;
	z-index: 41;
	font-size: 16px;
	font-weight: bold;
	color: #1f4e79;
	background-color: #FFF;
	box-shadow: 0 0 15px -3px #CCC;
	border-radius: 0 16px 0 0;
	border: 3px solid #FFF;
	transition: all 0.3s ease;
	cursor: pointer;
	overflow: hidden;
	width: auto;
}

#qr_show_fixed_form i {
	float: left;
	margin: 1px;
}

#qr_show_fixed_form span {
	display: block;
	float: left;
	margin: 4px -1000px 0 50px;
	transition: all 0.3s ease;
}

#qr_show_fixed_form:hover span {
	margin: 4px 5px 0 5px;
}

.qr_fixed_form #smiley-box {
	position: absolute;
	right: -1000px;
	z-index: 31;
	overflow-y: auto;
	width: 20%;
	max-height: 115px;
}

.qr_fixed_form > div {
	margin-bottom: 0;
}

@media only screen and (max-width: 700px), only screen and (max-device-width: 700px) {
	.qr_fixed_form #smiley-box {
		display: none;
		position: static;
		right: auto !important;
		width: 100%;
		max-height: none;
	}

	#qr_postform.qr_fixed_form.with_smileys .md\:col-span-4 {
    grid-column: span 5 / span 5;
	}
}


/* Compact form style. */
.qr_compact_form {
	overflow-y: hidden;
}

#qr_postform.qr_compact_form #message-box textarea.qr_fixed_textarea {
	height: 48px !important;
}

.qr_compact_form #qr_text_action_box,
.qr_compact_form .qr_attach_button {
	display: none;
}

#qr_postform.qr_fixed_form.qr_compact_form #message-box {
	padding: 0;
}

/* Fullscreen form style. */
.qr_fullscreen_form.qr_compact_form {
	overflow-y: auto;
}

#qr_postform.qr_fullscreen_form {
	background-color: #ffffff;
}

#qr_postform.qr_fullscreen_form #message-box textarea {
	min-height: 115px;
	max-height: 50%;
	transition: height 0.5s ease;
	resize: vertical;
  left: 0;
  width: 100%;
}

#qr_postform.qr_fixed_form.qr_fullscreen_form #smiley-box {
	max-height: none;
}

#qr_postform.qr_fixed_form.qr_fullscreen_form #message-box {
	padding-left: 0;
}

.qr_fullscreen_form #qr_text_action_box {
	display: none;
}

.qr_fullscreen_form #qr_action_box .qr_attach_button {
	display: none;
}

/* Fixed quick reply */
.dark #qr_postform.qr_fullscreen_form {
  background-color: #0f172a;
}
.qr_fixed_form > div.card {
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.qr_fixed_form #attach-panel .card {
  border: 0;
  margin: 20px 16px;
  width: auto;
  background-color: #f9fafb;
  font-size: 14px;
  --tw-shadow: 0 1px 2px 0 #0000000d;
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: #e5e7eb;
}
.dark .qr_fixed_form #attach-panel .card {
  background-color: #1e293b;
  --tw-ring-color: #1e293b;
}
.qr_fixed_form div.card .card-title,
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick .topiclist > div:first-child,
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick .topiclist > div.mt-3 label,
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick #smiley-box > div:first-child {
  display: none;
}
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick .topiclist > div:last-child {
  transition: 0.5s all;
}
.qr_fixed_form #zn-topics-collapse-quick .topiclist > div:first-child {
  margin-bottom: 12px;
}
.qr_fixed_form.qr_compact_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick .topiclist > div:last-child {
  height: 0;
  overflow: hidden;
  margin: 0;
  transform: translateY(150%);
}
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick .topiclist > div.mt-3,
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick .topiclist > div.mt-3 .md\:grid-cols-5,
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick .topiclist > div.mt-3 .mt-3.text-sm,
.qr_fixed_form:not(.qr_fullscreen_form) #zn-topics-collapse-quick #message-box {
  margin: 0;
}
.qr_fixed_form #zn-topics-collapse-quick .topiclist > div.mt-3 .md\:grid-cols-5 {
  position: relative;
  gap: 0;
}
#qr_postform.qr_fixed_form #smiley-box {
  margin-right: -10px;
  margin-top: 5px;
  top: 0;
}
.qr_fixed_form #zn-topics-collapse-quick .topiclist > div:last-child {
  justify-content: center;
  gap: 8px;
}

.qr_fixed_form #zn-topics-collapse-quick #message-box {
  position: relative;
}