@charset "utf-8";

.paper + form,
.order_comments form,
.comments {
  max-width: 1030px;
  margin: 30px auto !important;
  text-align: left;  
  width: 100%;
}
form + .comments a[href*="all=1"] {
  display: inline-block !important;
  margin-bottom: 80px;
}
.paper + form,
.order_comments form {
  position: relative;
}
.paper + form input[type="submit"],
.order_comments form input[type="submit"]{
  position: absolute;
  top: 0;
  margin: 0 0 0 10px;
  font-size: 1em;
  line-height: 37px;
}
.paper + form textarea,
.order_comments form textarea {
  width: 93%;
}
.paper + form[action$="commentable_type=Page"] textarea {
  margin-left: 40px;
  width: 89%;
}

@media screen and (max-width:1200px) {
  .paper + form,
  .order_comments form,
  .comments {
    max-width: 900px;
  }
}
@media screen and (max-width:770px) {
  .paper + form,
  .order_comments form,
  .comments {
    max-width: 100%;
    background: rgba(228, 228, 228, 0.5);
    padding: 20px 0 50vh 20px !important;
  }
  .paper + form input[type="submit"],
  .order_comments form input[type="submit"] {
    position: relative;
    margin: 0;
  }
  .paper + form[action$="commentable_type=Page"] textarea {
    margin-left: inherit;
    height: 54px;
    width: 96% !important;
  }
}

/* Comments list */
.comments li {
  margin: 0 0 14px 0;
  padding: 10px 24px 10px 20px;
  background: #e5f4ff;
  font-size: 0.8rem;
  line-height: 1.1rem;
  position: relative;
  border-radius: 5px;
  max-width: 93%;
  list-style: none;
}
.comments li:after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -20px;
  border-width: 0 0 10px 20px;
  border-style: solid;
  border-color: #e5f4ff transparent;
  display: block;
  width: 0;
}
.comments li.wg {
  background: #faca3d52;
}
.comments li.wg:after {
  top: auto;
  right: -20px;
  bottom: 10%;
  left: auto;
  border-width: 10px 0 0 20px;
  border-color: transparent #faca3d52;
}
.comments li.edit {
  font-size: 0.7rem;
  background: transparent;
  border: 1px dotted lightgrey;
  padding: 5px 24px 5px 20px;
}
.comments li.edit:after {
  top: auto;
  right: -20px;
  bottom: 10%;
  left: auto;
  border-width: 10px 0 0 20px;
  border-color: transparent transparent;
}
.comments li.archived,
.comments li.archived:after {
  opacity: 0.5;
  font-size: 0.7rem;
}
.comments li .comment {
  grid-area: comment;
  padding: 4px 20px 0 0;
  word-wrap: break-word;
}
.comments li:not(.archived):not(:edit) .comment {
  font-size: 0.85rem;
}
.comments li .date {
  grid-area: date;
  font-style: normal;
  color: #0000006e;
  margin-top: 2px;
  font-size: 0.7rem;
}
.comments li .date .hilight {
  font-weight: bold;
  margin-bottom: 0 !important;
  margin-left: 0 !important;
}
.comments li .links {
  grid-area: links;
  text-align: right;
}
.comments li .links a {
  font-size: 0.85rem;
  margin-left: 6px;
  color: slategrey !important;
}
.comments li .links a:hover {
  color: black;
}
.comments li .comments.answers {
  grid-area: answers;
  margin: 20px auto 10px auto !important;
  padding: 0;
  width: 107%;
}
.comments li form textarea {
  grid-area: textarea;
  width: 645px;
  min-height: 37px;
}
.comments li form input[type="submit"] {
  grid-area: button;
  margin: 0 0 0 10px;
  font-size: 1em;
  line-height: 37px;
  display: inline-block;
  height: 37px;
}
.comments li form {
  grid-area: answers_form;
  margin: 20px 80px 20px 50px !important;
  display: grid;
  grid-template-columns: 1fr 100px;
  grid-template-areas: "textarea button";
}
.comments li .comments.answers + form {
  margin: 0 80px 20px 50px !important;
}
.comments li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "comment comment"
    "answers answers"
    "answers_form answers_form"
    "date links";
}
.comments li .pins {
  color: rgba(0,0,0,0.4);
  display: inline;
}
.comments li > img {
  height:14px;
  width:auto;
  position: absolute;
  right: 1%;
  bottom:10%;
}
.comments li.wg:after,
.comments li .comments.answers li:after {
  border: none;
}
.comments li.wg .comments.answers li {
  background: #faca3d29;
}
.comments li.edit .comments.answers li {
  background: #d3d3d33d;
}
.comments li .comments.answers li {
  background: #c9e4f8a3;
}