#questions-answers-box select,
#questions-answers-box textarea,
#questions-answers-box input[type=text] {
    display: block;
    width: 100%;
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #282828;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

#questions-answers-box input[type="text"]:read-only {
    background-color: #ccc;
    cursor: auto;
}

#questions-answers-box label{
    width: 100%;
}


#questions-answers-box .qa-row{
    display: flex;
}
#questions-answers-box .qa-col .scroller{
    overflow: auto;
    max-height:60vh;
}
#questions-answers-box .qa-col{
    padding: .5rem;
    margin: .5rem;
    width: 100%;
}
#questions-answers-box .qa-col:first-child{
    padding-left: 0;
    margin-left: 0;
}
#questions-answers-box .qa-col:last-child{
    padding-right: 0;
    margin-right: 0;
}

#questions-answers-box #qacheck{
    visibility: hidden;
    height: 0;
	width: 0;
}

#questions-answers-box .qacheck{
    cursor: pointer;
    width: 4rem;
    height: 2rem;
    background: grey;
    display: block;
    border-radius: 5rem;
    position: relative;
    text-indent: .5rem;
    white-space: nowrap;
    padding-top: .5rem;
    padding-left: 4rem;
    margin-right: 10rem;
}

#questions-answers-box .qacheck:after {
	content: '';
	position: absolute;
	top: .2rem;
	left: .2rem;
	width: 1.6rem;
	height: 1.6rem;
	background: #fff;
	border-radius: 90px;
	transition: 0.3s;
}

#questions-answers-box #qacheck:checked + label {
	background: var(--primary);
}

#questions-answers-box #qacheck:checked + label:after {
	left: calc(100% - .2rem);
	transform: translateX(-100%);
}

#questions-answers-box .qacheck:active:after {
	width: 3rem;
}

#questions-answers-box button{
    border-radius: .2rem;
    background-color: var(--primary);
    color:#fff;
    border: 1px solid #fff;
    padding: .3rem 2rem;
}

#questions-answers-box button.like{
    border: 0;
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    top: .2em;
    right: .4em;
    padding: .2rem;
    background-color: #fff0;
}
#questions-answers-box button.like::before{
    content: "👍";
    display: block;
    font-size: 1.2em;
    background-color: var(--primary);
    margin: -.5em;
    border-radius: 100%;
    width: 1.8rem;
    height: 1.8rem;
}
#questions-answers-box button.like::after{
    content: attr(count);
    position: absolute;
    transform: translate(-100%, 0);
    top: 0px;
    color: #555;
    left: -.5rem;
}
#questions-answers-box #moderator .qa_del,
#questions-answers-box #moderator button.like{
    display: none;
}

#questions-answers-box .qa-messages{
    background-color: #aaa;
    color: #333;
    display: flex;
    flex-direction: column-reverse;
    justify-content:flex-end;
    transition-duration: 1s;
    scroll-behavior: smooth;
    flex-grow: 1;
}

#questions-answers-box .qa-message-box{
    padding: .5rem 1rem;
    border-bottom:1px solid #aaa;
    margin-bottom:.5rem;
    position: relative;
    animation: flash 1s ease .1s 2;
    background-color: #eeee;
    overflow-wrap: break-word;
}

#questions-answers-box .alert{
    display: none;
    padding: .5rem 1rem;
    background-color: rgb(255, 192, 20);
    color: rgb(138, 78, 0);
}

#qa-messages .qa_edit{
    display: none;
}

#questions-answers-box .alert.show{ display: block; }

@keyframes flash {
    from {background-color: var(--primary);}
    to {background-color: #eeee;}
  }