/*
|--------------------------------------------------------------------------
| SweetMeet Profile Report / Block
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| Actions Menu
|--------------------------------------------------------------------------
*/

.sm-profile-actions-menu {
    position: fixed;
    z-index: 99990;

    min-width: 180px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 5px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12);

    overflow: hidden;
}


.sm-profile-actions-menu[hidden] {
    display: none !important;
}


.sm-profile-actions-menu__item {
    display: block;

    width: 100%;

    padding: 11px 14px;

    border: 0;

    background: #fff;

    color: #080808;

    font: inherit;

    text-align: left;

    cursor: pointer;
}


.sm-profile-actions-menu__item:hover {
    background: #f5f5f5;
}


/*
|--------------------------------------------------------------------------
| Report Overlay
|--------------------------------------------------------------------------
*/

.sm-report-overlay {
    position: fixed;
    inset: 0;

    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, 0.58);
}


.sm-report-overlay[hidden] {
    display: none !important;
}


body.sm-report-open {
    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| Report Modal
|--------------------------------------------------------------------------
*/

.sm-report-modal {
    position: relative;

    width: 100%;
    max-width: 520px;

    padding: 28px;

    background: #fff;

    border-radius: 7px;

    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.22);
}


.sm-report-modal h2 {
    margin:
        0
        36px
        6px
        0;

    font-size: 1.45rem;
    font-weight: 500;
}


.sm-report-intro {
    margin:
        0
        0
        22px;

    color: #666;
}


/*
|--------------------------------------------------------------------------
| Close
|--------------------------------------------------------------------------
*/

.sm-report-close {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #080808;

    font-size: 26px;
    line-height: 1;

    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Fields
|--------------------------------------------------------------------------
*/

.sm-report-field {
    margin-bottom: 18px;
}


.sm-report-field label {
    display: block;

    margin-bottom: 6px;

    color: #080808;

    font-weight: 500;
}


.sm-report-reason,
.sm-report-details {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #ddd;
    border-radius: 4px;

    background: #fff;

    color: #080808;

    font: inherit;
}


.sm-report-details {
    resize: vertical;
}


/*
|--------------------------------------------------------------------------
| Also Block
|--------------------------------------------------------------------------
*/

.sm-report-block-option {
    display: flex;
    align-items: center;

    gap: 9px;

    margin:
        4px
        0
        22px;

    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Actions
|--------------------------------------------------------------------------
*/

.sm-report-actions {
    display: flex;
    justify-content: flex-end;

    gap: 10px;
}


.sm-report-button {
    min-height: 42px;

    padding:
        9px
        18px;

    border-radius: 4px;

    font: inherit;

    cursor: pointer;
}


.sm-report-button--cancel {
    border:
        1px
        solid
        #ddd;

    background: #fff;

    color: #666;
}


.sm-report-button--submit {
    border:
        1px
        solid
        #c8a96a;

    background:
        #c8a96a;

    color:
        #080808;
}


.sm-report-button--submit:hover {
    background: transparent;
}


.sm-report-button:disabled {
    opacity: 0.55;

    cursor: default;
}


/*
|--------------------------------------------------------------------------
| Status
|--------------------------------------------------------------------------
*/

.sm-report-status {
    min-height: 20px;

    margin-top: 14px;

    color: #666;

    font-size: 0.9rem;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 620px) {

    .sm-report-overlay {
        align-items: flex-end;

        padding: 0;
    }


    .sm-report-modal {
        max-width: none;

        padding:
            24px
            18px;

        border-radius:
            10px
            10px
            0
            0;
    }


    .sm-report-actions {
        flex-direction: column-reverse;
    }


    .sm-report-button {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| SweetMeet - Blocked Profiles
|--------------------------------------------------------------------------
|
| Add to:
| /assets/profile/profilereport.css
|
|--------------------------------------------------------------------------
*/

.sm-blocked-profiles {
    --sm-block-gold: #c8a96a;
    --sm-block-black: #080808;
    --sm-block-grey: #666666;
    --sm-block-border: #e3ddd2;

    width: 100%;
    margin: 30px auto;
}


.sm-blocked-profiles-header {
    margin-bottom: 22px;
}


.sm-blocked-profiles-header h1 {
    margin: 0 0 5px;

    color: var(--sm-block-black);

    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
}


.sm-blocked-profiles-header p {
    margin: 0;

    color: var(--sm-block-grey);

    font-size: 15px;
}


.sm-blocked-profiles-status {
    min-height: 0;

    margin: 0 0 10px;

    color: var(--sm-block-grey);

    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.sm-blocked-profiles-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}


/*
|--------------------------------------------------------------------------
| Compact Card
|--------------------------------------------------------------------------
*/

.sm-blocked-profile-card {
    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    min-width: 0;

    padding: 12px 14px;

    background: #ffffff;

    border:
        1px solid
        var(--sm-block-border);

    border-radius: 10px;

    transition:
        opacity 0.16s ease,
        transform 0.16s ease;
}


.sm-blocked-profile-card.is-removing {
    opacity: 0;

    transform:
        scale(0.985);
}


/*
|--------------------------------------------------------------------------
| Avatar
|--------------------------------------------------------------------------
*/

.sm-blocked-profile-avatar {
    width: 52px;
    height: 52px;

    overflow: hidden;

    border:
        1px solid
        var(--sm-block-gold);

    border-radius: 50%;

    background: #f5f5f5;
}


.sm-blocked-profile-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.sm-blocked-profile-avatar-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: #aaaaaa;

    font-size: 20px;
}


/*
|--------------------------------------------------------------------------
| Details
|--------------------------------------------------------------------------
*/

.sm-blocked-profile-main {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;
}


.sm-blocked-profile-name {
    overflow: hidden;

    color: var(--sm-block-black);

    font-size: 17px;
    font-weight: 500;
    line-height: 1.25;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.sm-blocked-profile-state {
    display: flex;

    align-items: center;

    gap: 5px;

    margin-top: 4px;

    color: var(--sm-block-grey);

    font-size: 13px;
    line-height: 1.25;
}


.sm-blocked-profile-state i {
    color: var(--sm-block-gold);

    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Unblock
|--------------------------------------------------------------------------
*/

.sm-blocked-profile-action {
    display: flex;

    align-items: center;
    justify-content: flex-end;
}


.sm-blocked-profile-unblock {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 38px;

    margin: 0;

    padding: 7px 13px;

    background: #ffffff;

    border:
        1px solid
        var(--sm-block-gold);

    border-radius: 4px;

    color: var(--sm-block-black);

    font: inherit;
    font-size: 13px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.16s ease,
        color 0.16s ease,
        border-color 0.16s ease;
}


.sm-blocked-profile-unblock:hover,
.sm-blocked-profile-unblock:focus {
    background:
        var(--sm-block-gold);

    border-color:
        var(--sm-block-gold);

    color: #ffffff;

    outline: none;
}


.sm-blocked-profile-unblock:disabled {
    opacity: 0.6;

    cursor: wait;
}


/*
|--------------------------------------------------------------------------
| Empty State
|--------------------------------------------------------------------------
*/

.sm-blocked-profiles-empty {
    padding: 24px;

    background: #ffffff;

    border:
        1px solid
        var(--sm-block-border);

    border-radius: 10px;

    color: var(--sm-block-grey);

    text-align: center;
}


/*
|--------------------------------------------------------------------------
| Tablet - 2 Wide
|--------------------------------------------------------------------------
*/

@media (max-width: 1199.98px) {

    .sm-blocked-profiles-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }
}


/*
|--------------------------------------------------------------------------
| Mobile - 1 Wide
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .sm-blocked-profiles {
        margin-top: 22px;
        margin-bottom: 22px;
    }


    .sm-blocked-profiles-grid {
        grid-template-columns:
            1fr;

        gap: 12px;
    }


    .sm-blocked-profile-card {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            auto;

        gap: 10px;

        padding: 11px 12px;
    }


    .sm-blocked-profile-avatar {
        width: 48px;
        height: 48px;
    }


    .sm-blocked-profile-name {
        font-size: 16px;
    }


    .sm-blocked-profile-unblock {
        min-height: 36px;

        padding:
            6px
            11px;
    }
}


/*
|--------------------------------------------------------------------------
| Very Narrow Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 390px) {

    .sm-blocked-profile-card {
        grid-template-columns:
            44px
            minmax(0, 1fr);

        row-gap: 8px;
    }


    .sm-blocked-profile-avatar {
        width: 44px;
        height: 44px;
    }


    .sm-blocked-profile-action {
        grid-column:
            1 / -1;

        justify-content:
            flex-end;
    }
}
