/* ==========================================================
   AGRO COMMENT ENGINE
   VERSION 1.0
   NATIVE WORDPRESS / ASTRA COMMENT VISUAL SYSTEM

   IMPORTANT:
   CSS ONLY.
   DO NOT MODIFY PHP.
   DO NOT MODIFY JAVASCRIPT.
   DO NOT MODIFY RENDERING.
   ========================================================== */


/* ==========================================================
   01. COMMENTS ENGINE ROOT
   ========================================================== */

#comments.agro-comments-area {
    width: 100%;
    max-width: 100%;
    margin: 60px 0 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}


/* ==========================================================
   02. COMMENTS TITLE
   ========================================================== */

#comments.agro-comments-area > .comments-title {
    margin: 0;
    padding: 30px 40px;

    background: #ffffff;

    color: #1f2933;

    font-family: inherit;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.35;

    border: 0;
    box-shadow: none;
}


/* ==========================================================
   03. COMMENT LIST
   ========================================================== */

#comments.agro-comments-area .ast-comment-list {

    width: 100%;

    margin: 16px 0 0;
    padding: 0;

    list-style: none;

    background: transparent;
}



/* Remove browser / Astra list styling */

#comments.agro-comments-area .ast-comment-list > li {
    margin: 0;
    padding: 0;

    list-style: none;
}


/* ==========================================================
   04. INDIVIDUAL COMMENT SURFACE
   ========================================================== */

#comments.agro-comments-area
.ast-comment-list
> .agro-comment-item {

    position: relative;

    width: 100%;

    margin: 0 0 26px;
    padding: 48px 40px 54px;

    list-style: none;

    background: #ffffff;

    border: 0;

    box-shadow: none;
}

/* Remove bottom margin from final comment */

#comments.agro-comments-area
.ast-comment-list
> .agro-comment-item:last-child {

    margin-bottom: 0;
}

/* ==========================================================
   05. COMMENT ARTICLE
   ========================================================== */

#comments.agro-comments-area .agro-comment {

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;

    box-shadow: none;
}


/* ==========================================================
   06. COMMENT INFORMATION
   ========================================================== */

#comments.agro-comments-area .ast-comment-info {

    display: flex;
    align-items: flex-start;

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
}


/* ==========================================================
   07. AVATAR WRAPPER
   ========================================================== */

#comments.agro-comments-area
.ast-comment-avatar-wrap {

    flex: 0 0 70px;

    width: 70px;
    min-width: 70px;

    height: auto;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   08. AVATAR
   ========================================================== */

#comments.agro-comments-area
.agro-avatar {

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    color: #ffffff;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: .02em;

    text-transform: uppercase;

    text-align: center;

    user-select: none;

    box-shadow: none;

    overflow: hidden;
}


/* ==========================================================
   09. COMMENT DATA
   ========================================================== */

#comments.agro-comments-area
.ast-comment-data-wrap {

    flex: 1 1 auto;

    min-width: 0;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   10. COMMENT META
   ========================================================== */

#comments.agro-comments-area
.ast-comment-meta {

    display: block;

    width: 100%;

    margin: 0;
    padding: 0;

    background: transparent;

    border: 0;
}


/* ==========================================================
   11. AUTHOR
   ========================================================== */

#comments.agro-comments-area
.ast-comment-cite-wrap {

    margin: 0;
    padding: 0;
}


#comments.agro-comments-area
.ast-comment-meta cite {

    margin: 0;
    padding: 0;

    font-style: normal;
}


#comments.agro-comments-area
.ast-comment-meta .fn {

    display: inline-block;

    margin: 0;
    padding: 0;

    color: #5f9635;

    font-family: inherit;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.4;

    letter-spacing: .02em;

    text-transform: uppercase;
}


/* ==========================================================
   12. COMMENT DATE
   ========================================================== */

#comments.agro-comments-area
.ast-comment-time {

    margin: 5px 0 0;
    padding: 0;
}


#comments.agro-comments-area
.ast-comment-time
.timendate {

    display: block;

    margin: 0;
    padding: 0;
}


#comments.agro-comments-area
.ast-comment-time a {

    margin: 0;
    padding: 0;

    color: #73a83e;

    font-family: inherit;

    font-size: 12px;
    font-weight: 400;

    line-height: 1.4;

    letter-spacing: .01em;

    text-decoration: none;
}


#comments.agro-comments-area
.ast-comment-time a:hover {

    color: #4d8f2f;

    text-decoration: none;
}


#comments.agro-comments-area
.ast-comment-time time {

    color: inherit;

    font-size: inherit;

    font-weight: inherit;

    text-transform: uppercase;
}


/* ==========================================================
   13. COMMENT CONTENT
   ========================================================== */

#comments.agro-comments-area
.ast-comment-content {

    width: 100%;

    margin: 36px 0 0;
    padding: 0;

    color: #3c4654;

    font-family: inherit;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.85;

    background: transparent;

    border: 0;

    box-shadow: none;
}


/* Paragraph */

#comments.agro-comments-area
.ast-comment-content p {

    margin: 0;
    padding: 0;

    color: #3c4654;

    font-family: inherit;

    font-size: inherit;
    font-weight: inherit;

    line-height: inherit;
}


/* Multiple paragraphs */

#comments.agro-comments-area
.ast-comment-content p + p {

    margin-top: 16px;
}


/* Comment links */

#comments.agro-comments-area
.ast-comment-content a {

    color: #5f9635;

    text-decoration: none;
}


#comments.agro-comments-area
.ast-comment-content a:hover {

    color: #2d6e1f;

    text-decoration: underline;
}


/* ==========================================================
   14. COMMENT ACTIONS
   ========================================================== */

#comments.agro-comments-area
.agro-comment-actions {

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 28px 0 0;
    padding: 0;

    background: transparent;

    border: 0;
}


/* ==========================================================
   15. LEFT ACTIONS
   ========================================================== */

#comments.agro-comments-area
.agro-comment-actions-left {

    display: flex;
    align-items: center;

    gap: 18px;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   16. RIGHT ACTIONS
   ========================================================== */

#comments.agro-comments-area
.agro-comment-actions-right {

    display: flex;
    align-items: center;

    gap: 18px;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   17. HELPFUL BUTTON
   ========================================================== */

#comments.agro-comments-area
button.agro-helpful {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    color: #5f9635;

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;

    cursor: pointer;

    box-shadow: none;

    transition:
        color .2s ease,
        transform .2s ease;
}


#comments.agro-comments-area
button.agro-helpful:hover {

    color: #2d6e1f;

    background: transparent;

    transform: translateY(-1px);

    box-shadow: none;
}


/* ==========================================================
   18. LIKE ICON
   ========================================================== */

#comments.agro-comments-area
.agro-like-icon {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    margin: 0;
    padding: 0;

    transition: transform .25s ease;
}


#comments.agro-comments-area
.agro-thumb-icon {

    display: block;

    width: 17px;
    height: 17px;

    margin: 0;
    padding: 0;

    color: currentColor;

    transition:
        transform .25s ease,
        color .25s ease;
}


/* ==========================================================
   19. LIKE TEXT
   ========================================================== */

#comments.agro-comments-area
.agro-like-text {

    display: inline-block;

    margin: 0;
    padding: 0;
}


#comments.agro-comments-area
.agro-like-count {

    display: inline-block;

    margin: 0;
    padding: 0;
}


/* ==========================================================
   20. LIKED STATE
   ========================================================== */

#comments.agro-comments-area
button.agro-helpful.liked {

    color: #0f7d37;
}


#comments.agro-comments-area
button.agro-helpful.liked
.agro-thumb-icon {

    transform: translateY(-1px);
}


/* ==========================================================
   21. LIKE ANIMATION
   ========================================================== */

#comments.agro-comments-area
.agro-thumb-icon.pop {

    animation:
        agroThumb .45s cubic-bezier(.18,.89,.32,1.28);
}


#comments.agro-comments-area
.agro-like-icon.pop {

    animation:
        agroLike .3s ease;
}


@keyframes agroThumb {

    0% {
        transform: scale(.6) rotate(-18deg);
        opacity: .4;
    }

    45% {
        transform: scale(1.35) rotate(8deg);
        opacity: 1;
    }

    70% {
        transform: scale(.92);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}


@keyframes agroLike {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.45);
    }

    100% {
        transform: scale(1);
    }

}


/* ==========================================================
   22. REPLY
   ========================================================== */

#comments.agro-comments-area
.agro-reply {

    display: inline-block;

    margin: 0;
    padding: 0;

    color: #5f9635;

    font-family: inherit;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.4;

    cursor: pointer;

    transition: color .2s ease;
}


#comments.agro-comments-area
.agro-reply:hover {

    color: #2d6e1f;

    text-decoration: underline;
}


/* ==========================================================
   23. GALLERY
   ========================================================== */

#comments.agro-comments-area
.agro-gallery {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(130px, 1fr));

    gap: 12px;

    width: 50%;

    margin: 24px 0 0;
    padding: 0;
}


#comments.agro-comments-area
.agro-gallery-item {

    display: block;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border-radius: 6px;

    line-height: 0;

    box-shadow: none;
}


#comments.agro-comments-area
.agro-gallery img {

    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 6px;

    transition: transform .35s ease;
}


#comments.agro-comments-area
.agro-gallery-item:hover img {

    transform: scale(1.03);
}


/* ==========================================================
   24. REMOVE ARTIFICIAL CARD EFFECTS
   ========================================================== */

#comments.agro-comments-area
.agro-comment-item,
#comments.agro-comments-area
.agro-comment,
#comments.agro-comments-area
.ast-comment-info,
#comments.agro-comments-area
.ast-comment-data-wrap {

    box-shadow: none !important;
}


/* ==========================================================
   25. ASTRA COMPATIBILITY
   ========================================================== */

#comments.agro-comments-area
.ast-comment-list
.ast-comment {

    margin: 0;
}


#comments.agro-comments-area
.ast-comment-list
.ast-comment-info {

    padding: 0;
}


/* ==========================================================
   26. PREMIUM FLOATING SUPPORT
   EXISTING SYSTEM PRESERVED
   ========================================================== */

#agro-floating-contact {

    position: fixed;

    left: 18px;

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 14px;

    z-index: 999999999;
}


/* ==========================================================
   27. SUPPORT LABEL
   ========================================================== */

.agro-support-label {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 10px 8px;

    border-radius: 12px;

    background: #ffffff;

    border: 1px solid rgba(16,152,120,.18);

    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}


/* ==========================================================
   28. SUPPORT CONTACT ICONS
   ========================================================== */

.agro-contact-item {

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    transition:
        transform .28s ease,
        box-shadow .28s ease;

    box-shadow:
        0 12px 30px rgba(0,0,0,.12);
}


.agro-contact-item:hover {

    transform:
        translateY(-4px) scale(1.08);
}


.agro-contact-item svg {

    width: 23px;
    height: 23px;
}


.agro-email {

    background: #109878;
}


.agro-telegram {

    background: #229ED9;
}


/* ==========================================================
   29. ONLINE STATUS
   ========================================================== */

.agro-online-status {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 4px;
}


/* ==========================================================
   30. ONLINE DOT
   ========================================================== */

.agro-online-dot {

    position: relative;

    width: 12px;
    height: 12px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #00C853;

    animation:
        agroDotPulse 1.5s infinite;
}


.agro-online-dot::after {

    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #00C853;

    transform:
        translate(-50%,-50%);

    animation:
        agroDotRing 1.5s infinite;
}


/* ==========================================================
   31. LIVE NOW TEXT
   ========================================================== */

.agro-online-text {

    writing-mode: vertical-rl;

    transform:
        rotate(180deg);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .18em;

    color: #109878;

    text-transform: uppercase;

    line-height: 1;

    white-space: nowrap;
}


/* ==========================================================
   32. DOWN ARROW
   ========================================================== */

.agro-down-arrow {

    width: 22px;
    height: 22px;

    color: #00C853;

    filter:
        drop-shadow(
            0 0 6px rgba(0,200,83,.35)
        );

    animation:
        agroArrowDown .8s
        cubic-bezier(.25,.46,.45,.94)
        infinite;
}


/* ==========================================================
   33. SUPPORT ANIMATIONS
   ========================================================== */

@keyframes agroDotPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.18);
    }

}


@keyframes agroDotRing {

    0% {

        transform:
            translate(-50%,-50%)
            scale(1);

        opacity: .65;
    }

    100% {

        transform:
            translate(-50%,-50%)
            scale(2.8);

        opacity: 0;
    }

}


@keyframes agroArrowDown {

    0% {

        transform:
            translateY(0)
            scale(1);

        opacity: .85;
    }

    35% {

        transform:
            translateY(5px)
            scale(1.15);

        opacity: 1;
    }

    70% {

        transform:
            translateY(10px)
            scale(1);

        opacity: .95;
    }

    100% {

        transform:
            translateY(0)
            scale(1);

        opacity: .85;
    }

}


/* ==========================================================
   34. DESKTOP COMMENT WIDTH
   ========================================================== */

@media (min-width: 921px) {

    #comments.agro-comments-area
    .ast-comment-list
    > .agro-comment-item {

        padding-left: 40px;
        padding-right: 40px;
    }

}


/* ==========================================================
   35. TABLET
   ========================================================== */

@media (max-width: 920px) {

    #comments.agro-comments-area
    > .comments-title {

        padding: 26px 28px;

        font-size: 27px;
    }


    #comments.agro-comments-area
    .ast-comment-list
    > .agro-comment-item {

        padding:
            42px
            28px
            48px;
    }


    #comments.agro-comments-area
    .ast-comment-content {

        margin-top: 32px;
    }

}


/* ==========================================================
   36. MOBILE
   ========================================================== */

@media (max-width: 768px) {

    #comments.agro-comments-area {

        margin-top: 40px;
    }


    /* Title */

    #comments.agro-comments-area
    > .comments-title {

        padding:
            22px
            18px;

        font-size: 23px;

        line-height: 1.4;
    }


    /* Comment surface */

    #comments.agro-comments-area
    .ast-comment-list
    > .agro-comment-item {

        padding:
            34px
            18px
            40px;
    }


    /* Comment information */

    #comments.agro-comments-area
    .ast-comment-info {

        gap: 0;
    }


    /* Avatar */

    #comments.agro-comments-area
    .ast-comment-avatar-wrap {

        flex:
            0 0 58px;

        width: 58px;
        min-width: 58px;

        margin: 0;
    }


    #comments.agro-comments-area
    .agro-avatar {

        width: 44px;
        height: 44px;

        font-size: 15px;
    }


    /* Author */

    #comments.agro-comments-area
    .ast-comment-meta .fn {

        font-size: 13px;
    }


    /* Time */

    #comments.agro-comments-area
    .ast-comment-time {

        margin-top: 4px;
    }


    #comments.agro-comments-area
    .ast-comment-time a {

        font-size: 11px;
    }


    /* Content */

    #comments.agro-comments-area
    .ast-comment-content {

        margin-top: 27px;

        font-size: 15px;

        line-height: 1.8;
    }


    #comments.agro-comments-area
    .ast-comment-content p {

        font-size: 15px;

        line-height: 1.8;
    }


    /* Actions */

    #comments.agro-comments-area
    .agro-comment-actions {

        margin-top: 24px;
    }


    #comments.agro-comments-area
    button.agro-helpful {

        font-size: 12px;
    }


    #comments.agro-comments-area
    .agro-reply {

        font-size: 12px;
    }


    /* Gallery */

    #comments.agro-comments-area
    .agro-gallery {

        margin-top: 20px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    /* Support widget */

    #agro-floating-contact {

        left: 10px;

        bottom: 90px;

        top: auto;

        transform: none;

        gap: 10px;
    }


    .agro-support-label {

        padding: 8px 6px;
    }


    .agro-contact-item {

        width: 46px;
        height: 46px;
    }


    .agro-contact-item svg {

        width: 20px;
        height: 20px;
    }

}


/* ==========================================================
   37. SMALL MOBILE
   ========================================================== */

@media (max-width: 480px) {

    #comments.agro-comments-area
    > .comments-title {

        padding:
            20px
            16px;

        font-size: 21px;
    }


    #comments.agro-comments-area
    .ast-comment-list
    > .agro-comment-item {

        padding:
            30px
            15px
            36px;
    }


    #comments.agro-comments-area
    .ast-comment-avatar-wrap {

        flex:
            0 0 52px;

        width: 52px;
        min-width: 52px;
    }


    #comments.agro-comments-area
    .agro-avatar {

        width: 40px;
        height: 40px;

        font-size: 14px;
    }


    #comments.agro-comments-area
    .ast-comment-content {

        margin-top: 24px;

        font-size: 14px;
    }


    #comments.agro-comments-area
    .ast-comment-content p {

        font-size: 14px;

        line-height: 1.8;
    }


    #comments.agro-comments-area
    .agro-comment-actions {

        margin-top: 22px;
    }


    #comments.agro-comments-area
    .agro-gallery {

        grid-template-columns:
            1fr;
    }

}


/* ==========================================================
   38. VERY SMALL MOBILE
   ========================================================== */

@media (max-width: 360px) {

    #comments.agro-comments-area
    > .comments-title {

        font-size: 20px;
    }


    #comments.agro-comments-area
    .ast-comment-list
    > .agro-comment-item {

        padding:
            28px
            13px
            34px;
    }


    #comments.agro-comments-area
    .ast-comment-avatar-wrap {

        flex:
            0 0 48px;

        width: 48px;
        min-width: 48px;
    }


    #comments.agro-comments-area
    .agro-avatar {

        width: 38px;
        height: 38px;

        font-size: 13px;
    }

}


/* ==========================================================
   39. ACCESSIBILITY
   ========================================================== */

#comments.agro-comments-area
button.agro-helpful:focus-visible,
#comments.agro-comments-area
.agro-reply:focus-visible,
#comments.agro-comments-area
.ast-comment-time a:focus-visible {

    outline:
        2px solid #5f9635;

    outline-offset: 3px;
}


/* ==========================================================
   40. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    #comments.agro-comments-area
    .agro-thumb-icon,
    #comments.agro-comments-area
    .agro-like-icon,
    .agro-online-dot,
    .agro-online-dot::after,
    .agro-down-arrow {

        animation: none !important;

        transition: none !important;
    }

}


/* ==========================================================
   END AGRO COMMENT ENGINE
   ========================================================== */