/* Highlighted text in the document */
.comment-highlight {
    background-color: #fff8a6;
    border-radius: 3px;
    padding: 0 2px;
    cursor: pointer;
}

/* Optional right sidebar to display comments */
#commentmargin-sidebar {
    position: fixed;
    top: 4em;
    right: 0;
    width: 300px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #f7f7f7;
    border-left: 1px solid #ccc;
    padding: 0.5em;
    z-index: 999;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    font-size: 0.9em;
}

#commentmargin-sidebar:empty {
  display: none;
}

/* Each comment box inside the sidebar */
.comment-box {
    top: 2em;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5em;
    padding: 0.5em;
    position: absolute;
    right: 0;
    width: 200px;
    background: #f9f9f9;
    border-left: 2px solid #ccc;
    padding: 0.5em;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.comment-box a {
    font-weight: bold;
    color: #0645ad;
    text-decoration: none;
}

.comment-box a:hover {
    text-decoration: underline;
}

.comment-box p {
    margin: 0.3em 0 0;
}

.action.commentmargin {
  color: inherit;
}

.action.commentmargin:hover {
  color: var(--focus-color); /* usually blue in default template */
}

.action.commentmargin svg {
  fill: currentColor;
}

#dokuwiki__content.has-comments {
    margin-right: 8% !important;
    width: 92% !important;
}
