/*
 * Preview cards for the select → preview → confirm file-upload pattern
 * (public/js/file-upload-review.js). Shared by admin branding uploads,
 * business profile branding, and the public device-report receipt form.
 */

.file-review-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.file-review-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e4e8ef;
    border-radius: 10px;
    background: #f8f9fc;
}

.file-review-thumb {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-review-thumb-icon {
    color: #7b8798;
    font-size: 22px;
}

.file-review-meta {
    flex: 1;
    min-width: 0;
}

.file-review-name {
    font-size: 13.5px;
    font-weight: 650;
    color: #172033;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-review-sub {
    font-size: 11.5px;
    color: #8792a2;
    margin-top: 2px;
}

.file-review-remove {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid #f0caca;
    background: #fff5f5;
    color: #c53b3b;
    cursor: pointer;
    font-size: 12px;
}
.file-review-remove:hover { background: #ffe3e3; }

.file-review-prompt {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff8ee;
    border: 1px solid #f0dfb8;
    color: #8b6a15;
    font-size: 12.5px;
    font-weight: 600;
}

.file-review-confirm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}

/* Mobile: keep the card readable, never overflow the viewport. */
@media (max-width: 480px) {
    .file-review-card { flex-wrap: wrap; }
    .file-review-meta { min-width: 0; flex-basis: calc(100% - 76px); }
}
