/* SavvyGreat Snapic post management — 20260810-snapic-post-management-1. */

.sgsnapic-managed-tile {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sgsnapic-managed-tile > .sgsnapic-tile {
    width: 100%;
    min-width: 0;
}

.sgsnapic-post-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px 10px;
}

.sgsnapic-gallery-body > .sgsnapic-post-actions {
    padding: 10px 0 0;
}

.sgsnapic-post-action {
    appearance: none;
    border: 1px solid rgba(90, 83, 99, .34);
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    color: #353038;
    min-height: 32px;
    padding: 5px 11px;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    cursor: pointer;
}

.sgsnapic-post-action:hover,
.sgsnapic-post-action:focus-visible {
    background: #f1ecf4;
}

.sgsnapic-post-action:disabled {
    opacity: .5;
    cursor: wait;
}

.sgsnapic-post-action.is-edit {
    border-color: rgba(50, 80, 160, .42);
}

.sgsnapic-post-action.is-hide {
    border-color: rgba(92, 88, 72, .46);
}

.sgsnapic-post-action.is-remove {
    border-color: rgba(173, 95, 25, .52);
}

.sgsnapic-post-action.is-delete {
    border-color: rgba(179, 38, 30, .52);
    color: #8c1d18;
}

.sgsnapic-post-state {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #ece7ee;
    color: #514b55;
    font-size: 11px;
    font-weight: 700;
}

.sgsnapic-post-state.is-removed {
    background: #ffeadf;
    color: #7b3f00;
}

.sgsnapic-post-state.is-hidden {
    background: #ececec;
    color: #4d4d4d;
}

[data-sgsnapic-post-card].is-sgsnapic-removed .sgsnapic-gallery-media,
[data-sgsnapic-post-card].is-sgsnapic-removed > .sgsnapic-tile {
    opacity: .62;
}

.sgsnapic-post-toast {
    position: fixed;
    left: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 99999;
    max-width: min(520px, calc(100vw - 28px));
    border-radius: 14px;
    background: #252129;
    color: #fff;
    padding: 10px 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    font-size: 13px;
    line-height: 1.35;
}

.sgsnapic-post-toast.is-error {
    background: #7d1d19;
}

.sgsnapic-post-edit-dialog {
    width: min(560px, calc(100vw - 28px));
    max-width: 560px;
    border: 0;
    border-radius: 22px;
    padding: 0;
    background: #fff;
    color: #211f22;
    box-shadow: 0 22px 70px rgba(0, 0, 0, .34);
}

.sgsnapic-post-edit-dialog::backdrop {
    background: rgba(0, 0, 0, .54);
}

.sgsnapic-post-edit-shell {
    display: grid;
    gap: 15px;
    padding: 20px;
}

.sgsnapic-post-edit-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sgsnapic-post-edit-head h2 {
    margin: 0;
    font-size: 20px;
}

.sgsnapic-post-edit-head button {
    appearance: none;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #efebf0;
    color: inherit;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.sgsnapic-post-edit-shell label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 650;
}

.sgsnapic-post-edit-shell input,
.sgsnapic-post-edit-shell textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #79747e;
    border-radius: 12px;
    background: #fff;
    color: #211f22;
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
}

.sgsnapic-post-edit-shell textarea {
    min-height: 120px;
    resize: vertical;
}

.sgsnapic-post-edit-status {
    min-height: 18px;
    margin: 0;
    color: #625b65;
    font-size: 12px;
}

.sgsnapic-post-edit-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.sgsnapic-post-edit-buttons button {
    appearance: none;
    border: 1px solid #79747e;
    border-radius: 999px;
    background: #fff;
    color: #352f37;
    min-height: 38px;
    padding: 8px 15px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.sgsnapic-post-edit-buttons button.is-primary {
    border-color: #6750a4;
    background: #6750a4;
    color: #fff;
}

@media (max-width: 760px) {
    .sgsnapic-post-actions {
        gap: 5px;
        padding: 7px 8px 9px;
    }

    .sgsnapic-post-action {
        min-height: 30px;
        padding: 5px 9px;
        font-size: 11px;
    }

    .sgsnapic-post-edit-shell {
        padding: 16px;
    }
}
