/* HSE Elements | Cart image quantity badges — same visual presentation as Checkout.
   Scoped to the Cart Block. Badge numbers come from the existing cart UI only. */
.hse-cart .wc-block-cart-items .wc-block-cart-item__image a[data-hse-image-quantity] {
    position:relative;
    display:inline-block;
    vertical-align:top;
    --hse-image-badge-top:-10px;
    --hse-image-badge-right:-10px;
}

/* WPEvently can render an unlinked event image inside the image cell. */
.hse-cart .wc-block-cart-items .wc-block-cart-item__image[data-hse-image-quantity] {
    position:relative;
}

.hse-cart .wc-block-cart-items .wc-block-cart-item__image a[data-hse-image-quantity]::after,
.hse-cart .wc-block-cart-items .wc-block-cart-item__image[data-hse-image-quantity]::after {
    content:attr(data-hse-image-quantity);
    position:absolute;
    top:var(--hse-image-badge-top, -10px);
    right:var(--hse-image-badge-right, -10px);
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:34px;
    padding:0 5px;
    border:2px solid #fff;
    border-radius:999px;
    background:#222;
    color:#fff;
    font:700 14px/1 'Oxanium',Arial,sans-serif;
    text-align:center;
    box-shadow:0 1px 4px rgba(0,0,0,.16);
    pointer-events:none;
}

/* Online Training thumbnails, including Electrical Safety & Arc Flash,
   share a 1:1 frame at the native Cart image width in every viewport. */
body.hse-training-cart-page .hse-cart .wc-block-cart-items__row.hse-checkout-online-item .wc-block-cart-item__image img {
    display:block; width:100%; height:auto; aspect-ratio:1 / 1;
    object-fit:cover; object-position:center; border-radius:6px;
}

/* Training type appears only on the Cart page, above the existing participant pill. */
.hse-cart .wc-block-cart-items .hse-cart-course__type {
    display:block;
    width:fit-content;
    margin-top:6px;
    padding:4px 9px;
    border:1px solid rgba(216,155,43,.46);
    border-radius:7px;
    background:rgba(255,200,74,.14);
    color:#69480F;
    font:700 11px/1.4 'Oxanium',Arial,sans-serif;
    letter-spacing:.035em;
}

/* Cart-only in-person booking guidance. Its inline link reuses the exact
   event-title link class and states; no new button or booking action. */
.hse-cart .wc-block-cart-items .hse-cart-course__booking-note {
    display:block;
    margin-top:8px;
    font:400 13px/1.5 'Sulphur Point',Arial,sans-serif;
}
.hse-cart .wc-block-cart-items .hse-cart-course__booking-note > .hse-checkout-course__event-link {
    font-size:inherit;
}
.hse-cart .wc-block-cart-items .hse-cart-course__booking-note-copy {
    color:#666;
}
