@use '../abstracts';

/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.toolbar {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background: abstracts.$link-theme-color;
    border-radius: 0.25rem;
    color: #fff;
    padding: 0;
    z-index: 1;
    align-items: center;
    display: flex;
    justify-content: center;
}
.toolbar::after {
    content: '';
    position: absolute;
    border-style: solid;
    height: 0px;
    width: 0px;
} 
.toolbar--bottom::after {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0%);
    border-color: abstracts.$link-theme-color transparent transparent;
    border-width: 0.5rem 0.5rem 0;
}
.toolbar--top::after {
    top: 0%;
    left: 50%;
    transform: translate(-50%, -100%);
    border-color: transparent transparent abstracts.$link-theme-color;
    border-width: 0 0.5rem 0.5rem;
}

.toolbar__button {
    padding: 0 0.25rem;
}
.toolbar__button svg {
    stroke: #fff;
}
button.cf_comment_front{
    cursor: pointer;
    border: none;
    background-color: abstracts.$link-theme-color;
    padding: 0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: unset;
    border: none;
    outline: none;
    line-height: 35px;
    width: 40px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    user-select: text;
	-webkit-user-select: text;

    &:hover,
    &:focus,
    &:active,
    &:focus-visible {
        background-color: abstracts.$link-theme-color;
    }
}

.cf_comment_front img{
    position: relative;
    top: 2px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

mark[data-icfp-highlight-id] {
    background-color: transparent;
}

mark.mdspan-front-comment {
    background-color: #fcef45;
}

.cf-front-comment-wrapper{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 360px;
    padding: 45px 0;
    overflow-y: auto;
    z-index: 99999;
    background-color: #fff;
    transition: transform 0.4s ease-in-out;
    -webkit-transition: transform 0.4s ease-in-out;
    -moz-transition: transform 0.4s ease-in-out;
    -ms-transition: transform 0.4s ease-in-out;
    -o-transition: transform 0.4s ease-in-out;
    box-shadow: 0 10px 40px 0 rgba(111, 137, 163, .2);

    .cf-front-comment-inner-wrapper {
        padding-bottom: 30px;
        .comment-reply-title,
        .comment-form-url{
            display: none;
        }
        img#cf-front-cancel {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }
        img{
            width: 40px;
            height: 40px;
            border-radius: 30px;
        }
        p{
            box-sizing: border-box;
        }
        .comment-notes{
            font-size: 14px;
            line-height:26px;
            margin-top: 10px;
            margin-bottom: 5px;
        }
        .form-submit{
            margin-bottom: 0;
        } 
    }
    .comment-respond {
        padding: 0 30px;
    }
    .cf-front-comment {
        padding: 0 0 20px;
        border-bottom: 1px solid rgb(112 112 112 / 16%);
        margin-bottom: 20px;
    }
    .cf_front_comment_slider_wrapper {
        padding: 0 30px;

        .show-more-link {
            font-size: 13px;
            text-align: center;
            margin-bottom: 12px;
            text-decoration: none;
            color: abstracts.$link-theme-color; 
            &:hover {
                text-decoration: underline;
            }
        }

        ul {
            list-style: none;
            margin-left: 0;

            li {
                list-style: none;
            }
        }
  
        ul.children {
            padding-left: 15px;
            
            .cf-front-comment {
                border-left: 1px solid rgb(112 112 112 / 20%);
                padding-left: 15px;
            }
        }

        .comment-respond {
            border-left: 3px solid rgb(242, 242, 242);
        }
        h3#reply-title {
            font-size: 18px;

            small {
                display: flex;
                justify-content: space-between;
                margin-top: 6px;

                a {
                    text-decoration: none;

                    &:hover {
                        text-decoration: underline;
                    }
                }
            }
            
        }
    }
    .cf-front-comment_cancel_wrapper {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 30px;
    }
    #cf-front-comment-count-inside-slider {
        span {
            font-size: 20px;
            font-weight: 500;
        }
    }
}

.logged-in .cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-comment label{
    display: none;
}
#comment-status {
    .cf-ajax-info {
        font-size: 14px;
        line-height: 20px;
        padding: 12px;
        background-color: #f6f3ff;
        color: #4b1bce;
        border-left: 2px solid #4b1bce;
    }
    
    .ajax-error {
        font-size: 14px;
        line-height: 20px;
        padding: 12px;
        background-color: #fff5f5;
        color: #d32f2f;
        border-left: 2px solid #d32f2f;
        margin: 0;
    }
    
    .ajax-success {
        font-size: 14px;
        line-height: 20px;
        padding: 12px;
        background-color: #f0fdf4;
        color: #16a34a;
        border-left: 2px solid #16a34a;
        margin: 0;
    }
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .logged-in-as{
    width: 100%;
    line-height: 26px;
    font-size: 14px;
    
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .logged-in-as a{
    color: abstracts.$link-theme-color;
    text-decoration: none;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper {
    .comment-form input:placeholder-shown+label, 
    .comment-form textarea:placeholder-shown+label {
        transform: none;
        max-width: none;
        font-size: 14px;
    }
    .comment-form input:not(:placeholder-shown)+label, 
    .comment-form input:focus+label, 
    .comment-form textarea:not(:placeholder-shown)+label, 
    .comment-form textarea:focus+label {
        transform: none;
    }
    .logged-in-as a:hover{
        color: #000;
    }
    .comment-form {
        display: block;
        .comment-input-wrap {
            display: block;
        }
    }
} 
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-comment textarea{
    font-family: 'Inter';
    font-size: 14px;
    line-height: 20px;
    color: #000;
    border-radius: 4px;
    padding: 20px;
    width: 100%;
    height: 100px;
    border: 1px solid rgb(112 112 112 / 16%);
    background-color: transparent;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 1px 4px;
    outline: none;
    box-sizing: border-box;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper {
    .form-submit input,
    [type=submit]{
        font-size: 14px;
        font-weight: 500;
        padding: 8px 15px;
        margin: 0 0 20px;
        background-color: transparent;
        color: abstracts.$link-theme-color;
        -webkit-border-radius: 4px;
        border-radius: 6px;
        border: 2px solid abstracts.$link-theme-color;
        
    }
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper input:focus-visible{
    border: none;
    outline: none;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-comment,
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-author,
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-email{
    display: flex;
    gap: 5px;
    margin-top: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    float: none;
    margin-left: 0;
    margin-bottom: 0;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-comment {
    margin-bottom: 15px;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .ast-comment-formwrap {
    display: block;

    .comment-form-author, 
    .comment-form-email {
        margin-top: 0;
    }
    + .comment-form-cookies-consent {
        margin-top: 0;
    }
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-author input,
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-email input,
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper {
    input[type="text"], 
    input[type="email"], 
    input[type="url"] {
    font-family: 'Inter';
    font-size: 14px;
    line-height: 20px;
    border-radius: 4px;
    color: #000;
    width: 100%;
    border: none;
    padding: 10px;
    background-color: transparent;
    box-sizing: border-box;
    border: 1px solid rgb(112 112 112 / 16%);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 1px 4px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    margin-bottom: 15px;
    }
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-cookies-consent{
    margin-top: 20px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form {
    .comment-form-cookies-consent {
        label {
            padding-left: 30px;
            font-size: 13px;
            line-height: 20px;

            &:not(:placeholder-shown) {
                padding-left: 30px;
                font-size: 13px;
                line-height: 20px;
            }
        }
    }
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper label {
    font-size: 14px;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-cookies-consent input[type="checkbox"]{
    width: 20px;
    height: 20px;
    line-height: 20px;
    cursor: pointer;
    margin-right: 20px;
    position: absolute;
    top: 4px;
    left: 0;
    margin: 0;
}
.cf-front-comment-wrapper .cf-front-comment-inner-wrapper .comment-form-cookies-consent input[type="checkbox"]:checked::after{
    content: "✔︎";
    color: #fff;
    vertical-align: middle;
    text-align: center;
    line-height: 18px;
    position: absolute;
    cursor: pointer;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    font-size: 14px;
    background: #1bce2d;
    z-index: 9;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
}
/* Comment section Css */
.cf-comment_awaiting__moderation {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 15px;
    display: inline-block;
}
.cf-front-class .cf-front-comment{
    border: 1px solid #b3b3b340;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px #b3b3b340;
}
.cf-front-class .cf-front-comment-main{
    display: flex;
    gap: 0.5rem;
}
.cf-front-class .cf-front-comment-main .cf-front-comment-section img{
    border-radius: 90px;
    width: 40px;
    height: 40px;

}
.cf-front-class .cf-front-comment-main .commentmetadata{
    display: flex;
    flex-direction: column;
}
.cf-front-class .cf-front-comment-main .commentmetadata .cf-front-comment-date,
.cf-front-class .cf-front-comment-main .commentmetadata .cf-front-comment-time a{
    line-height: normal;
}
.cf-front-class .cf-front-comment-main .commentmetadata .cf-front-comment-date a{
    font-weight: 600;
    font-size: 14px;
    font-style: normal;
    text-decoration: none;
}
.cf-front-class .cf-front-comment-main .commentmetadata .cf-front-comment-time a{
    font-size: 14px;
    font-style: normal;
    text-decoration: none;
    color: #636363;
}
.cf-front-class .cf-front-comment-main .commentmetadata .cf-front-comment-date a:hover,
.cf-front-class .cf-front-comment-main .commentmetadata .cf-front-comment-time a:hover{
    text-decoration: underline;
}
.cf-front-class .cf-front-comment .cf-inline-feedback-info{
    position: relative;
}
.cf-front-class .cf-front-comment .cf-inline-feedback-info::before{
    content: '';
    // background: url("../images/author-quote.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 0;
    left: -30px;
}
.cf-front-class .cf-front-comment .cf-inline-feedback-wrapper{
    background-color: #fefce4;
    padding: 30px 30px 30px 50px;
    margin-top: 20px;
    border-radius: 4px;
}
.cf-front-class .cf-front-comment .cf-inline-feedback-wrapper .cf-inline-feedback-info .cf-front-comment-except{
    color: #999797;
    font-style: italic;
}
.cf-front-class .cf-front-comment .cf-inline-feedback-wrapper .cf-inline-feedback-info .cf-feedback-content-link{
    font-style: italic;
}
.cf-front-class .cf-front-comment .cf-front-comment-text-para p{
    margin-bottom: 0;
}
.cf-front-comment-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cf-front-comment-wrapper .comment-author img {width: 30px;height: 30px;}

.cf-front-comment-wrapper .comment-meta a, .comment-meta cite.fn {
    font-size: 14px;
    line-height: 22px;
    font-style: normal;
    /* text-transform: lowercase; */
    text-decoration: none;
}

.cf-front-comment-wrapper .cf-front-comment-time {
    line-height: normal;
}

.cf-front-comment-wrapper .cf-front-comment-date {
    line-height: normal;
}

.cf-front-comment-wrapper .cf-inline-feedback-info {
    font-size: 14px;
}
.cf-front-comment-wrapper .cf-feedback-content-link {
    color: abstracts.$link-theme-color;
    display: none;
}
.cf-front-comment-wrapper .cf-inline-feedback-wrapper {
    border: 1px solid rgb(112 112 112 / 16%);
    box-shadow: rgba(0, 0, 0, 0.04) 0px 1px 4px;
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}
.cf-front-comment-wrapper .cf-front-comment-except {
    background-color: rgba(75, 28, 206, .2);
    color: currentColor;
    font-size: 16px;
    cursor: pointer;
}
.cf-front-comment-wrapper .cf-front-comment-time a {
    color: #50575E;
    font-style: normal;
}
.cf-front-comment-wrapper .cf-front-comment-text-para p {
    font-size: 14px;
    margin-bottom: 0;
}
div#cf-front-comment-count svg,
div#cf-front-comment-count-top svg {
    position: relative;
    top: 8px;
    width: 30px;
    height: 30px;
}
:where(body .is-layout-constrained) > :last-child:last-child.cf-front-comment-count_wrap{
    margin-block-start: unset;
    max-width: var(--wp--style--global--wide-size);
}
.cf-front-comment-count_wrap{
    margin: 30px 0 30px 0;
}
div#cf-front-comment-count,
div#cf-front-comment-count-top {
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}
div#cf-front-comment-count span:not(.cf-comment-count-bottom),
div#cf-front-comment-count-top span:not(.cf-comment-count-top) {
    background-color: rgb(152 152 152 / 31%);
    padding: 5px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
}
.no-comments { 
    display: none; 
}
.cf_front_comment_close{
    padding: 15px 0 15px 0;
}
.cf-sort-comments {
    padding: 0 30px 20px;
    border-bottom: 1px solid rgba(112, 112, 112, 0.16);
    margin-bottom: 20px;

    label {
        display: none;
    }
    #cf_sort_comments {
        border: none;
        font-size: 14px;
        font-weight: 600;
        padding-right: 8px;
        appearance: none;
        padding-right: 25px;
        cursor: pointer;
        outline: none;
        background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 5"><path d="M0 0h10L5 5z"/></svg>') no-repeat right center;
        background-size: 12px;
    }
}
.cf-front-comment-list {
    padding-left: 0;

    .cf-front-comment-reply {
        display: flex;
        justify-content: space-between;
        margin-top: 20px;

        a {
            font-size: 13px;
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }
    }
    .comment-meta {
        position: relative;
        margin-left: 0;
        font-size: inherit;
    }
}
.cf-media-highlighted {
    border: 3px solid #dbd355 !important;
}
main section.comments-area {
    display: none;
}
@media (min-width: 768px) {
    .cf-front-comment-wrapper {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        -moz-transform: translateX(100%);
        -ms-transform: translateX(100%);
        -o-transform: translateX(100%);
    }
}
@media (max-width: 767px) {
    .cf-front-comment-count_wrap {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: none;
        background-color: #fff;
        padding-bottom: 12px;
        margin: 0;
        text-align: center;
        box-shadow: 10px 10px 13px 8px rgb(0 0 0 / 13%);
        z-index: 9;
        transform: translateY(0);
        transition: transform 0.3s ease;

        &.cf-hide-toolbar {
            transform: translateY(100%);
        }

        &.cf-front-comment-bottom {
            display: none;
        }
    }
    .cf-front-comment-wrapper {
        bottom: 0;
        width: 100%;
        margin-top: 78px;
        border-radius: 25px 25px 0 0;
        padding: 25px 0;
        transform: translateY(100%);
        -webkit-transform: translateY(100%);
        -moz-transform: translateY(100%);
        -ms-transform: translateY(100%);
        -o-transform: translateY(100%);

        .cf_front_comment_slider_wrapper {
            padding: 0 20px 80px;

            ul.children {
                padding-left: 10px;
                .cf-front-comment {
                    padding-left: 10px;
                }
            }
        }
        .cf-front-comment-text-para p {
            margin-top: 5px;
        }

        .cf-front-comment-list .cf-front-comment-reply {
            margin-top: 10px;
        }
        .cf-front-comment {
            padding: 0 0 10px;
            margin-bottom: 15px;
        }

        .cf-front-comment-inner-wrapper img#cf-front-cancel {
            width: 15px;
            height: 15px;
        }
    }   
}