/* Single-use image safety, used by both the image chooser AND the image listing
   at /admin/images/ (cms/images/wagtail_hooks.py registers this via
   insert_global_admin_css for both surfaces).

   Amber: licensed for one placement, not yet used — usable, but this is the one shot.
   Red:   licensed for one placement and already used — reusing it breaks the licence.

   Applies to all four grid/list x chooser/listing combinations:
     - chooser grid: the "<li>" cards (templates/wagtailimages/chooser/results.html)
     - chooser list: the "<tr>" rows (cms/images/views.py SingleUseAwareTable)
     - listing grid: the "<div class=image>" cells
       (templates/wagtailimages/images/results_image.html)
     - listing list: the "<tr>" rows (same SingleUseAwareTable, reused) -- NOT the
       inner cell div (templates/wagtailimages/images/image_preview_column_cell.html)
       deliberately doesn't repeat these classes there, since the <tr> already
       carries them and nesting the same outline/tint inside itself would double-box
       the image. The cell only adds .single-use-badge, which still colours via the
       `.single-use-danger .single-use-badge` descendant rule below, keyed off the
       <tr> ancestor. */
.single-use-warning,
.single-use-danger {
    position: relative;
    border-radius: 3px;
    padding: 4px;
}

.single-use-warning {
    outline: 3px solid #b8860b;
    background-color: #fdf6e3;
}

.single-use-danger {
    outline: 3px solid #b00020;
    background-color: #fdecef;
}

.single-use-badge {
    display: block;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 2px;
    color: #7a5c00;
}

.single-use-danger .single-use-badge {
    color: #b00020;
}
