.comment-section {
  clear: both;
}

.comment-section > summary {
  position: relative;
}

.comment-section > h3,
.comment-section > summary h3 {
  padding: .5rem 0;
  margin-bottom: 1rem;
  border-bottom: var(--stroke-width) solid var(--main-separator-color);
}

.comment-section:not(.comment-section-empty) > summary:after,
#block-views-block-comments-recent-block-1 > summary:after {
  position: absolute;
  right: -.5rem;
  top: .8rem;

  display: block;
  padding: 0 2rem .15rem .8rem;

  content: "Prikaži";
  color: var(--main-bg-color);
  background-color: var(--main-text-color);
  border-radius: 2rem;
}
.comment-section:not(.comment-section-empty) > summary:before,
#block-views-block-comments-recent-block-1 > summary:before {
  content: '';
  display: block;
  background-image: url(../images/puscica.svg);
  background-size: contain;
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  top: 1.3rem;
  right: 0;
  filter: invert(1);
  transform: rotate(90deg);
  z-index: 5;
}
[temna-tema] .comment-section > summary:before,
[temna-tema] #block-views-block-comments-recent-block-1 > summary:before {
  filter: none;
}

.comment-section[open]:not(.comment-section-empty) > summary:after,
#block-views-block-comments-recent-block-1[open] > summary:after {
  content: 'Skrij';
}
.comment-section[open]:not(.comment-section-empty) > summary:before,
#block-views-block-comments-recent-block-1[open] > summary:before {
  transform: rotate(-90deg);
}

.comment-section.comment-section-empty > summary + h3 {
  display: none;
}
.comment-section .form-item label[for="edit-comment-body-0-value"] {
  display: none;
}

.comment-section:not(.comment-section-empty) > summary h3:last-child {
  display: none;
}
.comment-section:not(.comment-section-empty) > summary h3:first-child {
  display: block;
}
.comment-section:not(.comment-section-empty)[open] > summary h3:first-child {
  display: none;
}
.comment-section[open]:not(.comment-section-empty) > summary h3:last-child {
  display: block;
}

.comment {
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
}
.comment:not(:last-of-type) {
  border-bottom: var(--stroke-width) solid var(--main-text-color);
}
.comment.status-unpublished {
  background: rgba(255, 0, 0, 0.15);
  padding: .5rem;
}

.comment .field {
  margin: 0;
}

.comment .field > :last-child {
  margin: 0;
}

.comment .datum {
  text-transform: lowercase;
}

.comment a {
  text-decoration: none;
}

.comment h4 {
  font-size: var(--header4-font-size);
  line-height: var(--header4-font-leading);
  margin-bottom: .5rem;
}

.comment .comment__meta {
  margin-bottom: 1rem;
}

.comment .links {
  display: flex;
  margin: .1rem 0 -1rem;
  justify-content: flex-end;
}

.comment .links:empty {
  display: none;
}

.comment .links li {
  flex: none;
  margin-left: .5rem;
}

.comment .links li a {
  display: block;
  font-size: 1rem;
  padding: 0 .6rem .1rem;
  border: var(--stroke-width) solid white;
  border-radius: 1rem;
}

.comment .links li a:hover {
  color: var(--header-text-color);
  background: var(--main-text-color);
}

.comment-form {
  margin: 0 0 1rem;
}

.comment-form .js-form-item-name label {
  display: none;
}
.comment-form .js-form-item-name input::placeholder {
  content: 'Ime';
}

.comment-form input[type=text] {
  color: var(--main-text-color);
  background-color: var(--main-bg-color);
  max-width: 10rem;
}

#block-views-block-comments-recent-block-1 {
  position: relative;
  margin: 3rem 0 5rem;
}

@media screen and (max-width: 640px) {
  .comment-section:not(.comment-section-empty) > summary:after,
  #block-views-block-comments-recent-block-1 > summary:after {
    top: .5rem;
  }
  .comment-section:not(.comment-section-empty) > summary:before,
  #block-views-block-comments-recent-block-1 > summary:before {
    top: 1rem;
  }
}
