/*
|--------------------------------------------------------------------------
| SweetMeet Moderation
|--------------------------------------------------------------------------
*/

.sm-moderation {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2px 20px 60px 0px;
    color: #000;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.sm-mod-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 5px;
}

.sm-mod-header h1 {
    margin: 0 0 0px;
    font-size: 1.7rem !important;
    font-weight: 600 !important;
}

.sm-mod-header p {
    margin: 0;
    color: #666;
}

.sm-mod-user {
    text-align: right;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;	
}

.sm-mod-role {
    display: inline;
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Tabs
|--------------------------------------------------------------------------
*/

.sm-mod-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.sm-mod-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 15px;
    border: 1px solid #c8a96a;
    border-radius: 4px;
    color: #080808;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.sm-mod-tabs a:hover,
.sm-mod-tabs a.is-active {
    background: #c8a96a;
    color: #fff;
}

.sm-mod-tab-count {
    margin-left: 4px;
}

/*
|--------------------------------------------------------------------------
| Queue
|--------------------------------------------------------------------------
*/

.sm-mod-list {
    display: grid;
    gap: 18px;
}

.sm-mod-case {
    padding: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.sm-mod-case.is-processing {
    opacity: 0.55;
    pointer-events: none;
}

.sm-mod-case.is-complete {
    opacity: 0;
    transform: translateY(-5px);
}


/*
|--------------------------------------------------------------------------
| Case header
|--------------------------------------------------------------------------
*/

.sm-mod-case-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sm-mod-case-type {
    display: block;
    margin-bottom: 3px;
    color: #666;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sm-mod-case h2 {
    margin: 0;
    font-size: 1.3rem !important;
    font-weight: 600 !important;
}

.sm-mod-badges {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;

    flex-shrink: 0;
    margin-left: auto;
}

.sm-mod-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.78rem;
}

.sm-mod-badge--premium {
    border-color: #c8a96a;
}


/*
|--------------------------------------------------------------------------
| Meta
|--------------------------------------------------------------------------
*/

.sm-mod-meta,
.sm-mod-field {
    margin-top: 2px;
    color: #666;
    font-size: 0.86rem;
}


/*
|--------------------------------------------------------------------------
| Comparison
|--------------------------------------------------------------------------
*/

.sm-mod-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 3px;
}

.sm-mod-comparison h3 {
    margin: 3px 0 0;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.sm-mod-content {
    min-height: 60px;
    padding: 6px;
    background: #f5f5f5;
    border-radius: 4px;
    line-height: 1.2;
}

.sm-mod-content p:last-child {
    margin-bottom: 2px;
	font-size: 14px;
}


/*
|--------------------------------------------------------------------------
| Notes
|--------------------------------------------------------------------------
*/

.sm-mod-note,
.sm-mod-history {
    margin-top: 2px;
    padding: 4px 4px;
    background: #f5f5f5;
    border-left: 3px solid #c8a96a;
    font-size: 0.8rem;
}


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

.sm-mod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 8px;
}

.sm-mod-btn {
    min-height: 38px;
    padding: 7px 8px;
    background: transparent;
    border: 1px solid #c8a96a;
    border-radius: 4px;
    color: #080808;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.sm-mod-btn:hover {
    background: #c8a96a;
    color: #fff;
}

.sm-mod-btn--approve {
    background: #c8a96a;
    color: #fff;
}

.sm-mod-btn--danger {
    border-color: #999;
}


/*
|--------------------------------------------------------------------------
| Action panels
|--------------------------------------------------------------------------
*/

.sm-mod-panel {
    margin-top: 15px;
    padding: 18px;
    background: #f5f5f5;
    border-radius: 4px;
}

.sm-mod-panel[hidden] {
    display: none;
}

.sm-mod-panel label {
    display: block;
    margin-bottom: 15px;
    font-weight: 500;
}

.sm-mod-panel label small {
    display: block;
    margin-top: 2px;
    color: #777;
    font-weight: 400;
}

.sm-mod-panel select,
.sm-mod-panel textarea {
    width: 100%;
    margin-top: 7px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font: inherit;
}

.sm-mod-panel textarea {
    resize: vertical;
}


/*
|--------------------------------------------------------------------------
| Empty queue
|--------------------------------------------------------------------------
*/

.sm-mod-empty {
    padding: 35px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
}

.sm-mod-empty p {
    margin: 5px 0 0;
    color: #666;
}


/*
|--------------------------------------------------------------------------
| Image moderation
|--------------------------------------------------------------------------
*/

.sm-mod-image-review {
    margin-top: 2px;
}

.sm-mod-image-review h3 {
    margin: 0 0 2px;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.sm-mod-image-wrap {
    display: inline-block;
    max-width: 220px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
}

.sm-mod-image-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 250px;
    border-radius: 3px;
}
/*
|--------------------------------------------------------------------------
| Profile Link
|--------------------------------------------------------------------------
*/

.sm-mod-profile-link {
    color: inherit;
    text-decoration: none;
}

.sm-mod-profile-link:hover {
    color: #c8a96a;
    text-decoration: underline;
}

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

@media (max-width: 700px) {

    .sm-moderation {
        padding: 5px 5px 5px;
    }

    .sm-mod-header {
        display: block;
    }

    .sm-mod-user {
        margin-top: 1px;
        text-align: left;
    }

    .sm-mod-tabs {
        gap: 6px;
    }

    .sm-mod-tabs a {
        font-size: 0.84rem;
    }

    .sm-mod-case {
        padding: 17px;
    }

    .sm-mod-case-top {
        gap: 10px;
    }

    .sm-mod-comparison {
        grid-template-columns: 1fr;
    }
	
    .sm-mod-badges {
        flex-wrap: nowrap;
        justify-content: flex-end;
        margin-top: 0;
        margin-left: auto;
    }	

}
/*
|--------------------------------------------------------------------------
| SweetMeet Moderation - Mobile overflow correction
|--------------------------------------------------------------------------
| Version: 1.6.1
| Date: 18/11/2026
| Description: Keep moderation cards and long profile text within the mobile
|              viewport without changing the desktop comparison layout.
*/

.sm-mod-list {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.sm-mod-case,
.sm-mod-case-top,
.sm-mod-comparison,
.sm-mod-comparison > div,
.sm-mod-content {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.sm-mod-content,
.sm-mod-history,
.sm-mod-note {
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 700px) {
    .sm-moderation {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .sm-mod-case {
        padding: 10px;
    }

    .sm-mod-case-top {
        flex-wrap: wrap;
    }

    .sm-mod-badges {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .sm-mod-comparison {
        grid-template-columns: minmax(0, 1fr);
    }

    .sm-mod-case h2,
    .sm-mod-meta,
    .sm-mod-field {
        overflow-wrap: anywhere;
    }
	
	.smp-member-container {
        padding: 10px 3px 30px 3px !important;
    }	
}
