/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# GIF Styles
# Compose Message Section
# Activity Comments Section
# Extra
# Themes Specific
    # Aardvark
    # Kleo
    # Gwangi
# BB Platform
# BuddyPress Legacy
--------------------------------------------------------------*/


/*--------------------------------------------------------------
# GIF Styles
--------------------------------------------------------------*/
.wb-icons {
    font-size: 18px;
    min-width: 24px;
    height: 24px;
    line-height: 24px;
    display: inline-block;
}

.wb-icons:before {
    margin: 0 !important;
}

.mce-toolbar .mce-btn i.wb-icons {
    vertical-align: top;
    display: inline-flex;
}

.wb-icons.wb-icon-gif {
    font-size: 22px;
}

#whats-new-options .post-elements-buttons-item {
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

#whats-new-submit {
    clear: both;
}

#whats-new-toolbar .post-elements-buttons-item {
    margin-right: 10px;
    position: relative;
}

@media screen and (min-width: 46.8em) {
    #whats-new-options .post-elements-buttons-item:first-child {
        margin-left: 65px;
    }
}

.bp-giphy-html-container {
    display: inline-block;
}

.bp-giphy-icon {
    display: inline-block;
    cursor: pointer;
}

.bp-giphy-media-search {
    position: relative;
    line-height: 0;
}

.activity-giphy-container {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.activity-giphy-container .bp-acivity-gif-image-remove {
    border-radius: 10px;
    cursor: pointer;
    height: 19px;
    right: 2px;
    top: 4px;
    width: 19px;
}

.activity-giphy-container .bp-acivity-gif-image-overlay {
    color: #fff;
    margin-top: 0;
    position: absolute;
}

.activity-giphy-container .bp-acivity-gif-image-overlay .dashicons-no-alt {
    font-size: 20px;
    vertical-align: top;
}

.bp-giphy-media-search-dropdown {
    position: absolute;
    top: 100%;
    z-index: 99;
    display: none;
    margin: 10px 0 0 -16px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.05), 0 6px 32px 0 rgba(18, 43, 70, 0.1);
    padding-bottom: 10px;
}

.bp-giphy-media-search-dropdown.open {
    display: block;
    width: 300px;
}

.bp-giphy-media-search-dropdown:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    top: 1px;
    margin: 0 auto;
    left: 20px;
    box-sizing: border-box;
    border: 6px solid #000;
    border-color: #fff #fff transparent transparent;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    transform: rotate(-45deg);
    box-shadow: 2px -3px 3px 0 rgba(0, 0, 0, 0.02);
    transition: all linear 0.2s;
    z-index: 101;
}

.bp-giphy-media-search-dropdown-comment {
    position: absolute;
    top: 100%;
    z-index: 99;
    display: none;
    margin: 10px 0 0 -16px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 7px 1px rgba(0, 0, 0, 0.05), 0 6px 32px 0 rgba(18, 43, 70, 0.1);
    padding-bottom: 10px;
}

.bp-giphy-media-search-dropdown-comment.open {
    display: block;
    width: 300px;
}

.bp-giphy-media-search-dropdown-comment:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    top: 1px;
    margin: 0 auto;
    left: 20px;
    box-sizing: border-box;
    border: 6px solid #000;
    border-color: #fff #fff transparent transparent;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    transform: rotate(-45deg);
    box-shadow: 2px -3px 3px 0 rgba(0, 0, 0, 0.02);
    transition: all linear 0.2s;
    z-index: 101;
}

@media screen and (min-width: 46.8em) {
    .activity-giphy-container {
        margin-left: 65px;
    }
}

.activity-comments .activity-giphy-container {
    margin: 10px 0;
}

.bpchk-marker-container+.bp-giphy-html-container {
    margin-left: 0;
}

/*.bp-giphy-html-container + .bpolls-html-container {
    margin-left: 10px !important;
}*/

@media screen and (min-width: 768px) {
    .bp-giphy-media-search-dropdown.open {
        width: 360px;
    }
}

.gif-search-query {
    background-color: #fff;
    border-radius: 4px 4px 0 0;
    position: relative;
    padding: 10px;
    margin: 0;
}

.gif-search-query input[type="search"] {
    width: 100%;
    margin: 0;
}

.gif-search-content .gif-search-results {
    padding: 0 10px;
    overflow: auto;
    min-height: 280px;
    max-height: 380px;
}

.gif-search-content .gif-search-results ul,
.bp-giphy-gif-load ul.gif-search-results-list {
    columns: 2 auto;
    column-gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gif-search-content .gif-search-results ul li,
.bp-giphy-gif-load ul.gif-search-results-list li {
    margin: 0 0 4px;
    padding: 0;
}

.found-media-item img {
    width: 100%;
    height: 100%;
    min-width: 100%;
}

.activity-attached-gif-container {
    margin-top: 10px;
}

.activity-attached-gif-container p:before {
    content: none;
}

.gif-search-content .gif-search-results ul .bp-giphy1 {
    background: #e0245e;
}

.gif-search-content .gif-search-results ul .bp-giphy2 {
    background: #f45d22;
}

.gif-search-content .gif-search-results ul .bp-giphy3 {
    background: #ffad1f;
}

.gif-search-content .gif-search-results ul .bp-giphy4 {
    background: #17bf63;
}

.gif-search-content .gif-search-results ul .bp-giphy5 {
    background: #1c94e0;
}

.gif-search-content .gif-search-results ul .bp-giphy6 {
    background: #794bc4;
}


/*--------------------------------------------------------------
# Compose Message Section
--------------------------------------------------------------*/

input.search-gif-editor-input {
    font-size: 13px;
    height: 38px;
    padding: 6px 10px;
}

.bp-giphy-gif-load {
    padding: 10px;
}

.compose.buddypress-giphy-active button.mce-close:hover {
    background: transparent;
}

@media screen and (max-width: 480px) {
    .compose.buddypress-giphy-active .mce-window.mce-in {
        width: 90% !important;
        left: 0 !important;
        right: 0 !important;
        margin: auto !important;
    }
    .compose.buddypress-giphy-active .mce-window .mce-container-body.mce-abs-layout {
        width: 100% !important;
    }
}


/*--------------------------------------------------------------
# Activity Comments Section
--------------------------------------------------------------*/

.buddypress-giphy-active .buddypress-wrap .activity-comments {
    overflow: visible;
}

.buddypress-giphy-active form.ac-form .ac-reply-content .bp-giphy-html-container {
    margin-left: 0;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.buddypress-giphy-active .buddypress-wrap .activity-comments .acomment-content p img,
.buddypress-giphy-active .rtmedia-activity-text span img {
    display: block;
}


/*--------------------------------------------------------------
# Extra
--------------------------------------------------------------*/

.buddypress-giphy-active #whats-new-post-in-box {
    float: none;
}

.buddypress-giphy-active #buddypress #whats-new-options {
    overflow: visible;
}


/*--------------------------------------------------------------
## Aardvark
--------------------------------------------------------------*/

.gp-theme.buddypress-giphy-active #buddypress #whats-new-options {
    overflow: visible;
}

.gp-theme .bp-giphy-html-container,
.gp-theme .activity-giphy-container {
    margin: 0;
    margin-top: 10px;
}


/*--------------------------------------------------------------
## Kleo
--------------------------------------------------------------*/

.kleo-page .bp-giphy-html-container,
.kleo-page .activity-giphy-container {
    margin-left: 0;
}


/*--------------------------------------------------------------
## Gwangi
--------------------------------------------------------------*/

.grimlock #buddypress #item-body form#whats-new-form #whats-new-options #whats-new-submit,
.grimlock #buddypress form#whats-new-form #whats-new-options #whats-new-submit {
    order: 5;
}

.grimlock .bp-giphy-html-container,
.grimlock .activity-giphy-container {
    margin-left: 15px;
    order: 1;
}

.grimlock.buddypress-giphy-active .card {
    overflow: visible;
}

.grimlock.buddypress-giphy-active #buddypress div.item-list-tabs.primary-list-tabs>ul>li>a span,
.grimlock.buddypress-giphy-active #buddypress div.item-list-tabs.bp-navs>ul>li>a span {
    z-index: 1;
}

.grimlock.buddypress-giphy-active .found-media-item img {
    height: 100% !important;
}


/*--------------------------------------------------------------
# BB Platform
--------------------------------------------------------------*/

#whats-new-toolbar .wb-icons {
    color: rgba(18, 43, 70, .5);
    font-size: 18px;
}

#whats-new-toolbar .wb-icons.wb-icon-gif {
    font-size: 24px;
}

#whats-new-toolbar .post-elements-buttons-item {
    min-width: 24px;
}

/*--------------------------------------------------------------
# BuddyPress Legacy
--------------------------------------------------------------*/
.bp-legacy #buddypress div.activity-comments ul:after {
    content: "";
    display: table;
    clear: both;
}

.bp-legacy #buddypress div.activity-comments {
    overflow: visible;
}

.bp-legacy #buddypress ul.activity-list li {
    overflow: visible;
    clear: both;
}

.bp-legacy #buddypress div.activity-comments div.acomment-content span img {
    margin-top: 10px;
}

/*--------------------------------------------------------------
# Youzify
--------------------------------------------------------------*/

.youzify-page-main-content .youzify-main-column ul#activity-stream .activity-comments .gif-search-results-list li {
    height: auto !important;
}

.youzify-page-main-content .youzify-main-column ul#activity-stream .activity-comments a.found-media-item {
    display: block !important;
    height: 100% !important;
    padding: 0 !important;
}