.hwdw-lazy-comments-container {
    margin: 30px 0;
    text-align: center;
}

.hwdw-comments-button {
    background: var(--hwdw-button-color, #0073aa);
    color: var(--hwdw-button-text, #ffffff);
    border: none;
    border-radius: 50px;
    padding: 20px 30px 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,115,170,0.3);
}

.hwdw-comments-button:hover {
    background: var(--hwdw-button-hover, #005a87);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,115,170,0.4);
}

.hwdw-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.hwdw-modal.active {
    display: block;
}

.hwdw-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.hwdw-modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    background: var(--hwdw-modal-bg, #ffffff);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hwdw-modal-header {
    background: var(--hwdw-modal-header, #f8f9fa);
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hwdw-modal-title {
    margin: 0;
    margin-top: 17px;
    font-size: 1.2rem;
    color: var(--hwdw-modal-text, #333);
}

.hwdw-post-title {
    font-weight: bold;
    margin-left: 5px;
}

.hwdw-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    margin-top: 20px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.hwdw-modal-close:hover {
    color: #333;
}

.hwdw-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.hwdw-comments-list {
    margin-bottom: 30px;
}

.hwdw-no-comments {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.hwdw-comment-item {
    margin-bottom: 20px;
}

.hwdw-comment {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
}

.hwdw-comment:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hwdw-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.hwdw-comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hwdw-comment-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.hwdw-author-name {
    font-weight: 600;
    color: var(--hwdw-modal-text, #333);
}

.hwdw-author-name a {
    color: inherit;
    text-decoration: none;
}

.hwdw-comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.hwdw-comment-date {
    color: #999;
    font-size: 0.9rem;
}

.hwdw-reply-button {
    background: none;
    border: 1px solid var(--hwdw-button-color, #0073aa);
    color: var(--hwdw-button-color, #0073aa);
    /*padding: 5px 15px;*/
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.hwdw-reply-button:hover {
    background: var(--hwdw-button-color, #0073aa);
    color: #fff;
}

.hwdw-comment-content {
    color: var(--hwdw-modal-text, #333);
    line-height: 1.6;
}

.hwdw-children {
    margin-left: 30px;
}

.hwdw-author-badge {
    background: var(--hwdw-badge-admin, #ff6b6b);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-left: 5px;
    display: inline-block;
}

.hwdw-reply-badge {
    background: var(--hwdw-badge-reply, #4caf50);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: inline-block;
}

.hwdw-comment-form-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.hwdw-reply-info {
    background: #e9ecef;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hwdw-cancel-reply {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    /*padding: 3px 10px;*/
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.hwdw-cancel-reply:hover {
    background: #dc3545;
    color: white;
}

#commentform {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

#commentform textarea {
    min-height: 120px;
    resize: vertical;
}

#commentform input:focus,
#commentform textarea:focus {
    outline: none;
    border-color: var(--hwdw-button-color, #0073aa);
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.hwdw-submit-comment {
    background: var(--hwdw-button-color, #0073aa);
    color: white;
    border: none;
    /*padding: 12px 30px;*/
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
}

.hwdw-submit-comment:hover {
    background: var(--hwdw-button-hover, #005a87);
    transform: translateY(-2px);
}

/*.hwdw-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    display: none;
}*/

.hwdw-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    display: none;
}

.hwdw-notification.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.hwdw-notification.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.hwdw-notification-content {
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hwdw-modal-container {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }
    
    .hwdw-comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hwdw-comment-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .hwdw-children {
        margin-left: 15px;
    }
    
    .hwdw-submit-comment {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hwdw-comment-author {
        flex-wrap: wrap;
    }
    
    .hwdw-author-badge {
        margin-left: 50px;
    }
    
    .hwdw-children {
        margin-left: 10px;
    }
}





/* ===== СТИЛИЗАЦИЯ ФОРМЫ КОММЕНТАРИЯ (С МАКСИМАЛЬНЫМ ПРИОРИТЕТОМ) ===== */
/* ===== СТИЛИЗАЦИЯ ФОРМЫ КОММЕНТАРИЯ ===== */
.hwdw-comment-form-container {
    background: linear-gradient(145deg, #f0f7ff 0%, #e6f0fa 100%) !important;
    padding: 35px 30px !important;
    border-radius: 24px !important;
    margin-top: 35px !important;
    box-shadow: 0 15px 35px rgba(0, 20, 50, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

/* Сетка для полей - три в ряд */
#commentform {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    flex: 1 1 calc(33.333% - 14px) !important;
    min-width: 200px !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.comment-form-comment {
    flex: 1 1 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Стили для полей ввода */
.comment-form-author input,
.comment-form-email input,
.comment-form-url input,
.comment-form-comment textarea {
    width: 100% !important;
    padding: 16px 16px 16px 50px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 20px !important;
    font-size: 15px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    font-family: inherit !important;
}

.comment-form-comment textarea {
    min-height: 140px !important;
    resize: vertical !important;
    padding-top: 18px !important;
}

/* Иконки */
.comment-form-author::before,
.comment-form-email::before,
.comment-form-url::before,
.comment-form-comment::before {
    position: absolute !important;
    left: 18px !important;
    font-size: 20px !important;
    z-index: 1 !important;
    pointer-events: none !important;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif !important;
}

.comment-form-author::before {
    content: "👤" !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.comment-form-email::before {
    content: "📧" !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.comment-form-url::before {
    content: "🔗" !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.comment-form-comment::before {
    content: "💭" !important;
    top: 18px !important;
}

/* Скрываем label */
.comment-form-author label,
.comment-form-email label,
.comment-form-url label,
.comment-form-comment label {
    display: none !important;
}

/* Кнопка */
.hwdw-submit-comment {
    background: linear-gradient(135deg, #3498db, #2980b9) !important;
    color: white !important;
    border: none !important;
    /*padding: 16px 40px !important;*/
    border-radius: 60px !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin-top: 25px !important;
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3) !important;
    transition: all 0.3s !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment-form-author,
    .comment-form-email,
    .comment-form-url {
        flex: 1 1 100% !important;
    }
}







/* ПРИНУДИТЕЛЬНОЕ РАСПОЛОЖЕНИЕ ПОЛЕЙ В ОДНУ СТРОКУ */
/* ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ РАСПОЛОЖЕНИЯ ПОЛЕЙ */
div.hwdw-comment-form-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

div.hwdw-comment-form-container form#commentform {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

div.hwdw-comment-form-container .comment-form-author,
div.hwdw-comment-form-container .comment-form-email,
div.hwdw-comment-form-container .comment-form-url {
    flex: 1 1 200px !important;
    min-width: 200px !important;
    max-width: calc(33.333% - 14px) !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

div.hwdw-comment-form-container .comment-form-author input,
div.hwdw-comment-form-container .comment-form-email input,
div.hwdw-comment-form-container .comment-form-url input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

div.hwdw-comment-form-container .comment-form-comment {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Фикс для мобильных */
@media (max-width: 768px) {
    div.hwdw-comment-form-container .comment-form-author,
    div.hwdw-comment-form-container .comment-form-email,
    div.hwdw-comment-form-container .comment-form-url {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }
}

/* ФИКС КНОПКИ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
@media (max-width: 768px) {
    div.hwdw-comment-form-container .hwdw-submit-comment {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center !important;
    }
}