/* Comment Style */
:root {
  --BackGround: #e3e3e3;
}

div#comments {
  margin-top: 1.5rem;

  & * {
    color: #000000;
    font-family: "Inter" !important;
  }

  & h3 {
    font-size: 15px;

    &:before {
      content: "";
      background: red;
      display: block;
      width: 40px;
      height: 2px;
    }
  }

  & h2.comments-title {
    font-size: 13px !important;
    padding: 10px;
    background: var(--BackGround);
    margin-bottom: 2rem !important;
    border-radius: 5px;
    margin-bottom: 8px;

    &:before {
      content: "";
      width: 12px;
      height: 12px;
      border: 3px dashed #ff0500;
      border-radius: 100%;
      display: inline-flex;
      margin-right: 6px;
      animation: bRotate 8s cubic-bezier(0, 0, 1, 1) infinite;
    }

    &:after {
      content: "post";
    }
  }

  & ol {
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;

    & li {
      border-radius: 5px;
      padding: 12px 8px;
      border: 1px dashed #0000002b;
      list-style: none;

      & .comment-body {
        margin-left: 6px !important;
      }

      & p {
        font-size: 13px !important;
        background: #427e842e;
        margin-top: 1rem;
        padding: 5px 8px;
        border-radius: 5px;
        font-weight: bold;
      }

      & .vcard {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 7px;

        & img {
          width: 35px;
          height: 35px;
          border-radius: 100%;
          border: 1px solid;
          padding: 1px;
        }

        & .fn a,
        span {
          font-family: "Tagesschrift" !important;
          font-style: normal;
          background: #00000012;
          padding: 1px 10px;
          border-radius: 100px;
          font-size: 14px;
        }
      }

      & .commentmetadata {
        font-size: 10px;
        font-weight: bold;
      }

      & ol.children {
        margin-top: 6px;
        margin-left: 1rem;
        list-style: none;
        border-left: 1px dashed #d4d4d4;
        border-radius: 0;
        padding-left: 10px;
      }
    }

    & .reply {
      border: 1px solid #898989;
      width: fit-content;
      padding: 5px 6px 4px;
      border-radius: 50px;
      transition: 0.4s;
      display: flex;
      margin: 10px 0 0;

      & a {
        color: #605656;
        font-size: 13px;
      }

      &:hover {
        border-color: #83a2a5;

        & a {
          color: #83a2a5;
        }
      }
    }
  }

  & #respond {
    padding: 10px;
    border-radius: 5px;

    & h3#reply-title {
      margin-bottom: 15px;
    }

    & .logged-in-as {
      margin: 10px 0px;
      font-size: 13px;

      & a {
        color: #241dff78 !important;
      }
    }

    & form {
      & p.comment-notes {
        font-size: 13px;
      }

      & p {
        margin-bottom: 10px;

        & label {
          font-size: 13px;
        }

        & textarea,
        & input {
          padding: 10px;
          border-radius: 9px;
          border: 1px solid #00000038;
          width: 100%;
          margin-bottom: 0px;
          resize: none;
        }
      }

      & input#submit {
        padding: 12px 15px;
        cursor: pointer;
        text-align: center;
        width: fit-content;
        border-radius: 6px;
        transition: 0.5s;

        &:hover {
          background: #215f9a !important;
          color: #fff;
        }
      }

      & p.comment-form-cookies-consent {
        & input {
          width: fit-content;
        }

        & label {
          font-size: 13px;
        }
      }
    }
  }
}

/*  */
& #comments {
  & ol {
    padding: 0 !important;

    & li {
      list-style: none !important;

      & .comment-awaiting-moderation {
        font-family: "Inria Sans" !important;
      }

      & .fn {
        font-family: "Tagesschrift" !important;
        font-style: normal;
        background: #00000012;
        padding: 1px 10px;
        border-radius: 100px;
        font-size: 14px;
      }
    }

    & .comment-meta {
      margin-bottom: 8px;

      & a {
        font-family: "Inter" !important;
      }
    }
  }
}

/*  */
@keyframes bRotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}
