html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Main comment container */
.comments-section {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 1.25rem 0.5rem 0.5rem; /* right padding increased for scrollbar */
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    position: relative;
    box-sizing: border-box; /* ensures padding is included in width */
}


/* Single comment */
.comment {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
    word-wrap: break-word;
    max-width: 100%;
}
/* Main Comment Form */
.comment-form,
.reply-form {
    display: flex;
    flex-direction: row; /* put textarea + button in same row */
    align-items: center; /* align button and textarea vertically */
    gap: 8px;
    margin-top: 0.5rem;
}

    /* Textareas */
    .comment-form textarea,
    .reply-form textarea {
        flex: 1; /* take remaining width */
        resize: none; /* prevent resizing if you want fixed look */
        min-height: 38px; /* match button height */
        padding: 6px 10px;
        border-radius: 4px;
        border: 1px solid #ccc;
        font-size: 0.9rem;
        line-height: 1.4; /* keeps single-line look */
        overflow: hidden; /* no scrollbars inside */
    }

    /* Buttons */
    .comment-form button,
    .reply-form button {
        flex-shrink: 0; /* don’t shrink button */
        height: 38px; /* same height as textarea */
        display: flex;
        align-items: center; /* center text inside button */
        justify-content: center;
        white-space: nowrap; /* prevent wrapping to 2 lines */
        padding: 0 12px;
    }


/* Responsive: stack textarea and button on small screens */
@media (max-width: 576px) {
    .comment-form {
        flex-direction: column;
    }

        .comment-form button {
            width: 100%;
        }
}