#comments {
    font-family: 'Crimson Text', serif;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#comments a {
    color: var(--color-green);
}

#comments a:hover {
    text-decoration: underline;
}

#comments .comments-container {
    max-width: 80ch;
}

#comments .comment-metadata a {
    color: var(--color-dark-gray);
}


#comments .comment {
    margin-top: 20px;
    background-color: white;
    box-shadow: 0 0px 2px var(--color-dark-gray);
    border-radius: 3px;
    padding: 20px;
    position: relative;
}

#comments .comment .reply::after {
    display: inline-block;
    width: 20px;
    height: 20px;
    content: " ";
    margin-left: 5px;
}

#comments .comment .reply {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 2px 8px;
    color: var(--color-dark-gray);
}

#comments .comment .reply:hover {
    text-decoration: underline;
}


#comments .comment-author img {
    text-transform: capitalize;
    vertical-align: middle;
    border-radius: 50%;
}

#comments .fn {
    font-weight: var(--weight-bold);
    padding-left: 10px;
}

#comments .comment-meta {
    color: var(--color-dark-gray);
}

#comments .comment-respond {
    margin-top: 20px;
}

#comments .comment-reply-title {
    font-size: var(--fs-4); 
}

#cancel-comment-reply-link {
    display: inline-block;
    margin: 0 10px;
    font-size: var(--fs-6);
}

/* Comment form */
#comments .comment-form label {
    display: block;
    font-weight: var(--weight-bold);
    margin-bottom: 5px;
    font-size: var(--fs-5);
}

#comments .comment-form input[type="text"],
#comments .comment-form input[type="email"],
#comments .comment-form input[type="url"],
#comments .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: 'Crimson Text', serif;
    font-size: 1.1rem;
    box-sizing: border-box;
}

#comments .comment-form input[type="text"]:focus,
#comments .comment-form input[type="email"]:focus,
#comments .comment-form input[type="url"]:focus,
#comments .comment-form textarea:focus {
    border-color: var(--color-purple);
    outline: none;
    box-shadow: 0 0 3px var(--color-purple);
}

#comments .comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

#comments .comment-form p {
    margin-bottom: 15px;
}

#comments .comment-form .form-submit input[type="submit"] {
    background-color: var(--color-purple);
    color: white;
    border: none;
    padding: 10px 30px;
    font-size: var(--fs-5);
    font-weight: var(--weight-bold);
    border-radius: 3px;
    cursor: pointer;
}

#comments .comment-form .form-submit input[type="submit"]:hover {
    opacity: 0.9;
}

#comments .comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 8px;
}

#comments .comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
}

#comments .comments-form {
    width: 100%;
    max-width: 80ch;
}
