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

/*Contact Form*/
.bp-contact-me-list,
.bp-contact-me-ul {
    list-style-type: none;
}

.bp-content-me-container h3 {
    margin-bottom: 15px;
    line-height: 1;
}

.bp-content-me-container form.bp-contact-me-form .bp-content-me-fieldset {
    margin-bottom: 15px;
}

.bp-content-me-fieldset input[type=email],
.bp-content-me-fieldset input[type=text],
.bp-content-me-fieldset textarea {
    font-size: 15px;
    padding: 5px 15px;
    height: 42px;
    border-radius: 8px;
    width: 100%;
    display: block;
}

.bp-content-me-fieldset textarea {
    font-size: 15px;
    height: 120px;
    line-height: 1.6;
}

form.bp-contact-me-form .bp-content-me-fieldset label,
form.bp-contact-me-form .bp-content-me-fieldset .captchasum {
    margin-bottom: 5px;
    display: block;
    font-size: 15px;
}

form.bp-contact-me-form .bp-content-me-fieldset label span{
    color: red;
}

div#fieldset-captchasum .captchasum {
    display: inline-block;
    background: #eee;
    padding: 6px 10px;
    font-weight: bold;
    margin-bottom: 10px;
    border-radius: 5px;
}

form.bp-contact-me-form .bp-contact-me-btn[type="submit"] {
    margin: 5px 0 0;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 8px;
}


/*Contact Message*/
.bp-contact-me-loader{
    z-index: 999999;
    width: 100%;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-sizing: border-box;
    height: 100%;
    padding: 0.625em;
    overflow-x: hidden;
    transition: background-color .1s;
    overflow-y: auto;
}
.bp-contact-me-loader-img{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.bp-contact-me-loader img{
    width: 100px;
    height: 100px;   
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.bp_contact-me-messages th,
.bp_contact-me-messages td {
    border: 1px solid #e3e3e3;
    padding: 10px !important;
    text-align: left;
}

.bp_contact-me-messages thead {
    background: #f8f8f8;
}

.bp_contact-me-messages th.contact-me-sender-id {
    width: 5%;
}

.bp_contact-me-messages th.contact-me-subject {
    width: 25%;
}

.bp_contact-me-messages th.contact-me-message {
    width: 60%;
}

.bp_contact-me-messages th.contact-me-btn {
    width: 10% !important;
}

.bp_contact-me-messages .user_displayname a {
    display: flex;
    align-items: center;
}

.buddypress .bp_contact-me-messages .avatar {
    width: 40px;
    border-radius: 100%;
    margin-right: 10px;
}

.bp_contact-me-messages .bcm-user-subject {
    font-weight: bold;
}

.bp_contact-me-messages .bcm-user-message,
 .bp_contact-me-messages .bcm-user-subject{
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

.bp_contact-me-messages input.bcm-all-check,
.contact-me-sender-id input#bcm-select-all-contact {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.buddypress .bcm_action {
    display: flex;
    align-items: center;
    gap: 12px;
}
.buddypress .bcm_action_btn {
    position: relative !important;
    cursor: pointer !important;
    border: none !important;
    padding: 0 5px;
    background: transparent !important;
}
.bcm_action_btn .bcm-tooltip-text {
    white-space: nowrap;
    position: absolute;
    z-index: 99;
    top: -30px;
    left: 50%;
    margin-left: -55px;
    opacity: 0;
    padding:8px 20px;
    border-radius: 100px;
    visibility: hidden;
    transform: translate(0,10px);
    transition: all .3s ease-in-out 0s;
    background: #3e3f5e;
    color: #fff;
    font-size: 12px;
    line-height: 1;
}
.bcm_action_btn:hover .bcm-tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translate(0,0);
}
.buddypress .bcm_action_btn span.dashicons.bcm_message_seen {
    color: #037dbf;
    font-size: 25px;
}
.buddypress .bcm_action_btn span.dashicons.bcm_message_delete {
    color: #ea0303;
    font-size: 25px;
}
.bcm_action_btn:hover span.dashicons{
    color:#3e3f5e !important;
}
body.wbcom-bp-contact div#item-body nav#subnav,
body.contact-me div#item-body nav#subnav {
    display: none;
}


/*Popup Message Details*/
body.wbcom-bp-contact.swal2-shown.swal2-height-auto .swal2-container.swal2-center>.swal2-popup {
    max-width: 700px;
    width: 100%;
    padding:0;
    border-radius: 15px;
}
body.wbcom-bp-contact.swal2-shown.swal2-height-auto div#swal2-html-container {
    padding: 20px;
    margin: 0;
}
body.wbcom-bp-contact.swal2-shown.swal2-height-auto button.swal2-close {
    display: block !important;
    position: absolute;
    background: red;
    color: #fff;
    border-radius: 80px;
    width: 42px;
    top: -13px;
    height: 42px;
    line-height: 1;
    font-size: 28px;
    right: -13px;
    border: none;
}
body.wbcom-bp-contact.swal2-shown.swal2-height-auto button.swal2-close:focus{
    box-shadow: none !important;
}
body.wbcom-bp-contact.swal2-shown.swal2-height-auto .swal2-actions{
    display: none !important;
}
body.wbcom-bp-contact.swal2-shown.swal2-height-auto .bp-contact-me-popup-message {
    padding: 0 !important;
    margin: 0 !important;
}
body.wbcom-bp-contact .bp-contact-me-popup-message {
    padding: 0;
    margin: 0;
    border: 1px solid #eee;
    border-radius: 10px;
}
body.wbcom-bp-contact .bp-contact-me-popup-message li {
    display: flex;
    font-size: 16px;
    padding: 15px;
    align-items: center;
    flex-wrap: wrap;    
}
body.wbcom-bp-contact .bp-contact-me-popup-message li:nth-child(2n+2){
    background: #f4f4f4;
}
body.wbcom-bp-contact .bp-contact-me-popup-message li strong {
    width: 22%;
    text-align: left;
}
body.wbcom-bp-contact .bp-contact-me-popup-message li span{
    width: 78%;
    text-align: left;
}
.bp-contact-me-detials table.bp_contact-me-messages tr:nth-child(2n+2) {
    background: #f8f8f8;
}

/*Profile Setting Tab*/
.enable-bp-contact-tab {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 5px;
}

.enable-bp-contact-tab label {
    font-size: 18px;
    margin: 0 !important;
    font-weight: normal !important;
}

.enable-bp-contact-tab input[type="checkbox"] {
    width: 25px !important;
    height: 25px !important;
    border: 1px solid #a0a0a0;
    border-radius: 6px;
    background: #fff;
    clear: none;
    cursor: pointer;
    display: inline-block;
    line-height: 0;
    margin: 0;
    outline: 0;
    padding: 0!important;
    text-align: center;
    vertical-align: middle;
    position: relative;
    -webkit-appearance: none;
    box-shadow: none;
}

.enable-bp-contact-tab input[type=checkbox]:checked {
    background-color: #3583f4;
    border-color: #3583f4;
}

.enable-bp-contact-tab input[type=checkbox]:checked::before {
    left: 8px;
    top: 4px;
    width: 8px;
    height: 13px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    content: "";
    position: absolute;
}


/*Reign Theme Icon*/
.contact-me.buddypress .bp-member-blog-post-form {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px !important;
    background: #fff;
    margin-top: 10px;
}
table.bp_contact-me-messages {
    background: #fff;
}
.reign-nav-iconic .rg-nouveau-sidebar-menu a#user-contact:before {
    content: "\f658";
}

.reign-nav-iconic .rg-nouveau-sidebar-menu a#user-contact-me:before {
    content: "\f1d8";
}
.not-allowed {
    opacity: 0.6;
    cursor: not-allowed!important;
}

.buddypress-wrap #bcm-bulk-manage[disabled],
.buddypress-wrap #bcm-bulk-manage[disabled] {
    display: none;
}

.reign-theme .bp-contact-me-detials {
    margin-top: 15px;
}

/*BuddyX Theme*/
.theme-buddyx.contact-me.buddypress .bp-member-blog-post-form {
    padding: 0;
    border: none;
    border-radius: 0 !important;
    background: #fff;
    margin-top: 0;
}

/*******************
BB Theme
********************/

.bcm-contact-options-nav {
    display: flex;
    gap: 15px;
}

.bcm-contact-options-nav .select-wrap {
    width: 200px;
}

/*******************
    Youzify Plugin
********************/

.wbcom-bp-contact.youzify-active .youzify-page-main-content {
    position: unset;
}
.wbcom-bp-contact.youzify-active .bcm-contact-options-nav {
    display: flex;
    gap: 15px;
}
.contact-me.youzify-active .bp-member-blog-post-form {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    margin-bottom: 50px;
}
.contact-me.youzify-active .bp-member-blog-post-form input.bp-contact-me-btn{
    cursor: pointer;
}

/*Contact Message Table Mobile*/

@media only screen and (max-width: 689px) {
    .bp-contact-me-detials table.bp_contact-me-messages thead,
    .bp-contact-me-detials table.bp_contact-me-messages tbody,
    .bp-contact-me-detials table.bp_contact-me-messages th,
    .bp-contact-me-detials table.bp_contact-me-messages td,
    .bp-contact-me-detials table.bp_contact-me-messages tr {
        display: block;
    }
    .bp-contact-me-detials table.bp_contact-me-messages thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .bp-contact-me-detials table.bp_contact-me-messages td {
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 40% !important;
    }
    .bp-contact-me-detials table.bp_contact-me-messages td:before {
        position: absolute;
        top: 10px;
        left: 12px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
    }
    .bp-contact-me-detials table.bp_contact-me-messages tr:nth-child(2n+2) {
        background: #f8f8f8;
    }
    .bp-contact-me-detials table.bp_contact-me-messages td:nth-of-type(1):before {
        content: attr(data-attr);
    }
    .bp-contact-me-detials table.bp_contact-me-messages td:nth-of-type(2):before {
        content: attr(data-attr);
    }
    .bp-contact-me-detials table.bp_contact-me-messages td:nth-of-type(3):before {
        content: attr(data-attr);
    }
    .bp-contact-me-detials table.bp_contact-me-messages td:nth-of-type(4):before {
        content: attr(data-attr);
    }
    .bp-contact-me-detials table.bp_contact-me-messages td:nth-of-type(5):before {
        content: attr(data-attr);
    }
}