/*
|--------------------------------------------------------------------------
| Upgrade 016 TinyMCE + Pull Request Suggestions
|--------------------------------------------------------------------------
*/

.suggest-edit-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.suggest-edit-side {
    position: sticky;
    top: 92px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
}

.suggest-edit-side h5 {
    font-weight: 950;
}

.suggest-edit-side p,
.suggest-edit-side li {
    color: var(--muted);
}

.suggest-edit-side a {
    color: var(--primary);
    font-weight: 900;
}

.suggest-edit-form {
    max-width: none;
}

.commit-box {
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin: 22px 0;
}

.commit-box h3 {
    font-weight: 950;
    margin-bottom: 6px;
}

.commit-box p {
    color: var(--muted);
}

.suggestion-review-list {
    display: grid;
    gap: 18px;
}

.suggestion-review-card {
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .04);
}

.suggestion-review-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e5ebf3;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.suggestion-review-head h2 {
    font-size: 1.25rem;
    font-weight: 950;
    margin: 10px 0 4px;
}

.suggestion-review-head p {
    color: #64748b;
    margin: 0;
}

.suggestion-review-head small {
    color: #64748b;
    white-space: nowrap;
}

.suggestion-commit-message {
    background: #f8fafc;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
}

.suggestion-diff-box {
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 18px;
}

.suggestion-diff-box summary {
    cursor: pointer;
    font-weight: 950;
    color: #5865f2;
}

.suggestion-preview {
    margin-top: 16px;
    border-top: 1px solid #e5ebf3;
    padding-top: 16px;
}

.suggestion-review-form label {
    font-weight: 950;
    margin-bottom: 8px;
}

.suggestion-review-form textarea {
    width: 100%;
    border: 1px solid #dfe6ef;
    border-radius: 14px;
    padding: 12px;
}

.suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.suggestion-actions button {
    border: 0;
    background: #5865f2;
    color: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 950;
}

.suggestion-actions .danger-btn {
    background: #dc2626;
}

.suggestion-actions .secondary-btn {
    background: #e5e7eb;
    color: #111827;
}

@media (max-width: 900px) {
    .suggest-edit-layout {
        grid-template-columns: 1fr;
    }

    .suggest-edit-side {
        position: static;
    }
}
