/* ===========================
   COMMENTS.CSS — Statut24
   =========================== */


/* ============================================================
   1. CONTENEUR
   ============================================================ */

#comments {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
}


/* ============================================================
   2. FORMULAIRE
   ============================================================ */

#reply-title {
    margin-bottom: 20px;

    color: #333;

    font-size: 22px;
    font-weight: 600;
}


/* Убираем лишние тексты WordPress */

.comment-notes,
.comment-form-cookies-consent {
    display: none !important;
}


/* Убираем стандартные поля WordPress */

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: none !important;
}


/* Поле Prénom */

.comment-form-prenom label {
    display: block;

    margin-bottom: 6px;

    color: #333;

    font-size: 15px;
    font-weight: 600;
}


.comment-form-prenom input {
    width: 160px !important;
    max-width: 160px !important;

    padding: 12px 14px;

    border: 2px solid #e8e8e8;
    border-radius: 8px;

    background: #fafafa;

    font-size: 15px;

    transition:
        border-color .2s,
        background .2s;
}


.comment-form-prenom input:focus {
    border-color: #ff4fa3;

    background: #fff;

    outline: none;
}


/* Поле комментария */

#comment {
    width: 100%;
    min-height: 120px;

    padding: 14px 16px;

    box-sizing: border-box;

    border: 2px solid #e8e8e8;
    border-radius: 8px;

    background: #fafafa;

    font-size: 15px;

    resize: vertical;

    transition:
        border-color .2s,
        background .2s;
}


#comment:focus {
    border-color: #ff4fa3;

    background: #fff;

    outline: none;
}


/* Кнопка отправки */

#submit {
    margin-top: 12px;
    padding: 12px 22px;

    border: none;
    border-radius: 8px;

    background: #ff4fa3;
    color: #fff;

    font-size: 15px;

    cursor: pointer;

    transition:
        background .2s,
        transform .1s;
}


#submit:hover {
    background: #e63f92;
}


#submit:active {
    transform: scale(.97);
}


/* ============================================================
   3. LISTE DES COMMENTAIRES
   ============================================================ */

.comment-list {
    max-width: 760px;
    margin: 40px auto;
}


.comment {
    position: relative !important;

    margin-bottom: 20px;

    border: 1px solid #e8e8e8;
    border-radius: 8px;

    background: #fff;

    box-shadow:
        0 2px 4px rgba(0, 0, 0, .05);
}


/* Внутренний контейнер */

.comment-body {
    display: block !important;

    padding: 16px 20px;
}


/* FIX: убираем конфликт позиционирования */

.comment-body * {
    position: static !important;
}


/* Автор */

.comment-author {
    margin-bottom: 4px;

    font-weight: 600;
}


/* Дата */

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

    color: #777;

    font-size: 12px;
}


/* Текст комментария */

.comment-content {
    color: #444;

    font-size: 15px;
}


/* ============================================================
   4. SIGNALER
   ============================================================ */

.sm-triangle {
    position: absolute !important;
    top: 6px;
    right: 12px;

    z-index: 9999;

    color: #f7c600;

    font-size: 12px;

    cursor: pointer;
}


.sm-triangle::before {
    content: "▲";
}


/* ============================================================
   5. RÉPONSES
   ============================================================ */

.children {
    margin-left: 20px;
    padding-left: 20px;

    border-left: 2px solid #ffe3f1;
}


.children .comment-body {
    margin-left: 32px !important;
}


#cancel-comment-reply-link {
    position: absolute !important;

    top: -9999px !important;
    left: -9999px !important;

    width: 0 !important;
    height: 0 !important;

    overflow: hidden !important;

    opacity: 0 !important;
}


/* ============================================================
   6. POPUP SIGNALEMENT
   ============================================================ */

.sm-popup {
    position: fixed;

    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    z-index: 99999;

    background: rgba(0, 0, 0, .4);
}


.sm-popup.hidden {
    display: none;
}


.sm-popup-inner {
    width: 360px;

    padding: 20px 24px;

    border-radius: 10px;

    background: #fff;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, .15);
}
/* ============================================================
   COMMENTAIRES — BOUTON
============================================================ */

.comment-form input[type="submit"],
#submit {
    background: #0877c9 !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 9px !important;

    padding: 12px 18px !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    cursor: pointer;
    box-shadow: none !important;
}

.comment-form input[type="submit"]:hover,
#submit:hover {
    background: #0668b1 !important;
}