/* ==================================================
   HACCRETION CREATE POST COMPONENT
   Shared across the Haccretion platform
================================================== */

.hcr-popup-host {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 14px !important;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e5ebe1;
    border-radius: 12px;
    box-sizing: border-box;
}

.hcr-popup-host[hidden] {
    display: none !important;
}

.hcr-popup-host .hcr-popup-trigger {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 44px;
    padding: 12px 13px !important;
    border: 1px solid #d6e5cb !important;
    border-radius: 13px !important;
    background: #fbfcfa !important;
    color: #4c514c !important;
    font-size: 10px !important;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.hcr-popup-host .composer-post {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 40px;
    padding: 11px 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #edf4e8 !important;
    color: #46682f !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    white-space: nowrap;
    cursor: pointer;
}

.hcr-popup-host .composer-post:hover {
    background: #e2eed8 !important;
}

.hcr-popup-host .composer-post:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 650px) {
    .hcr-popup-host {
        gap: 8px !important;
        padding: 10px !important;
    }

    .hcr-popup-host .hcr-popup-trigger {
        min-height: 38px;
        padding: 9px 10px !important;
    }

    .hcr-popup-host .composer-post {
        min-height: 36px;
        padding: 8px 10px !important;
    }
}
/* HACCRETION SHARED CREATE POST AUTHOR V1 */

.hcr-popup-host {
    flex-wrap: wrap !important;
}

.hcr-create-post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
}

.hcr-create-post-author-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #e8f1e2;
    color: #517a35;
    font-size: 15px;
    font-weight: 800;
}

.hcr-create-post-author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hcr-create-post-author-info {
    flex: 1;
    min-width: 0;
}

.hcr-create-post-author-name {
    font-size: 12px;
    font-weight: 700;
    color: #263126;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcr-create-post-author-handle {
    margin-top: 2px;
    font-size: 10px;
    color: #71806d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hcr-popup-host .hcr-popup-trigger {
    flex: 1 1 0 !important;
}

.hcr-popup-host .composer-post {
    flex: 0 0 auto !important;
}

@media (max-width: 650px) {
    .hcr-create-post-author-avatar {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}
/* HACCRETION HORIZONTAL CREATE POST V1 */

.hcr-popup-host {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 12px 14px !important;
}

/* Author information alongside the input */

.hcr-popup-host .hcr-create-post-author {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    width: auto !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: 175px !important;
}

.hcr-popup-host .hcr-create-post-author-avatar {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
}

.hcr-popup-host .hcr-create-post-author-info {
    min-width: 0 !important;
    max-width: 125px !important;
}

.hcr-popup-host .hcr-create-post-author-name {
    font-size: 11px !important;
    font-weight: 700 !important;
}

.hcr-popup-host .hcr-create-post-author-handle {
    font-size: 9px !important;
}

/* Input takes remaining space */

.hcr-popup-host .hcr-popup-trigger {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 40px !important;
    padding: 10px 12px !important;
    font-size: 10px !important;
}

/* Create Post button */

.hcr-popup-host .composer-post {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    padding: 10px 13px !important;
    font-size: 10px !important;
}

/* Hide legacy textarea and status from card layout */

.hcr-popup-host > [data-hcr-post-content],
.hcr-popup-host > [data-hcr-post-status] {
    display: none !important;
}

/* Mobile */

@media (max-width: 650px) {
    .hcr-popup-host {
        gap: 7px !important;
        padding: 9px !important;
    }

    .hcr-popup-host .hcr-create-post-author {
        max-width: 38px !important;
    }

    .hcr-popup-host .hcr-create-post-author-avatar {
        width: 34px !important;
        height: 34px !important;
        flex-basis: 34px !important;
    }

    .hcr-popup-host .hcr-create-post-author-info {
        display: none !important;
    }

    .hcr-popup-host .hcr-popup-trigger {
        min-height: 36px !important;
        padding: 8px 9px !important;
        font-size: 10px !important;
    }

    .hcr-popup-host .composer-post {
        min-height: 36px !important;
        padding: 8px 9px !important;
        font-size: 9px !important;
    }
}