/* === Image Uploader — Unified === */

.spa-uploader-block {
    margin-bottom: 20px;
}

/* Preview grid */
.spa-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

/* Individual preview card */
.spa-preview-box {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 8px;
    background: #fafafa;
    display: inline-block;
    position: relative;
    max-width: 160px;
}

/* Preview image */
.spa-preview-box {
    border: 1px solid #ddd;
    padding: 10px;
    padding-top: 35px;   /* ← Gives room above the image */
    border-radius: 8px;
    background: #fafafa;
    display: inline-block;
    position: relative;
    max-width: 160px;
}

/* Delete (X) button */
.spa-preview-box button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    position: absolute;
    top: 5px;
    right: 5px;

    background: #c0392b;
    color: #fff;
    border: none;

    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;

    font-size: 18px;     /* adjust to taste */
    font-weight: bold;
    line-height: 24px;   /* <<< THE IMPORTANT FIX */
    padding: 0 !important;
}

/* Annotation textarea */
.spa-preview-box textarea {
    width: 100%;
    height: 55px;
    border-radius: 4px;
    border: 1px solid #ccc;
    resize: vertical;
    padding: 4px;
    font-size: 13px;
    font-family: inherit;
}
