/* VendMizer Pro — admin white-label marks.
 *
 * The core's admin stylesheet styles its own glyph in each of these places and
 * carries no rule for an image, so every rule an uploaded mark needs ships
 * here. Loaded on the logged-in admin portal and on the logged-out login
 * screen; both documents already have the core's admin stylesheet, so these
 * only add what it lacks.
 *
 * The class names are this add-on's own — nothing here depends on a core
 * selector staying in the core stylesheet.
 */

/* Every mark, before its slot-specific variant below. vmzp-white-label.js:72
   builds the class pair as `vmzp-wl-mark__img vmzp-wl-mark__img--<variant>`
   (variant is 'sidebar' at :95 and 'wizard' at :149), and
   vmzp-white-label-auth.js:47 writes the 'auth' pair; there is no emission
   without a variant, so this base only has to carry what all three need and
   none of them can express.

   That is the height cap. Immediately after setting the class pair, the same
   two functions write the merchant's "Logo size" setting onto the element as
   an inline width and height (vmzp-white-label.js:77-78,
   vmzp-white-label-auth.js:53-54) — which outranks every rule in this file.
   The sidebar and login variants survive that because they cap with
   max-height, but the wizard variant sizes with height, so an inline
   height:120px against a 40px .vmz-wizard__logo tile rendered 40x120 and hung
   80px out of the wizard header. Width is already safe: the admin bundle's own
   reset gives every img max-width:100% (vmz-core.css:6).

   Percentages here resolve against the slot, and only the wizard slot has a
   definite height — for the sidebar row and the login card the parent height
   is auto, so this computes to `none` and changes nothing there. */
.vmzp-wl-mark__img {
    max-height: 100%;
}

/* Sidebar brand row. The core frames its glyph in a 32px accent-coloured
   rounded square; a merchant's logo is the mark itself and wants no frame, so
   the container is released to its content's size. The image is capped so a
   tall logo cannot stretch the 60px brand row and knock its bottom border out
   of line with the topbar beside it. */
.vmz-sidebar__logo.vmzp-wl-mark--frameless {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}
.vmzp-wl-mark__img--sidebar {
    display: block;
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
}

/* Sidebar name. The core's own rule sets white-space:nowrap and nothing else,
   which is fine for the nine characters it puts there and not for a merchant's
   name. min-width:0 lets the flex item shrink at all; the rest gives the text
   somewhere to stop instead of running under the close button. The full name
   stays reachable through the title attribute. */
.vmz-sidebar__title.vmzp-wl-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Login card. Replaces the core's 52px gradient tile, centred above the
   heading with the same 12px gap the tile leaves. */
.vmzp-wl-mark__img--auth {
    display: block;
    max-width: 100%;
    max-height: 44px;
    margin: 0 auto 12px;
    object-fit: contain;
}

/* Setup-wizard header. The core's 40px tinted square is kept — it is part of
   the wizard's own layout, which balances the header around it — and the image
   is sized to sit inside it. */
.vmzp-wl-mark__img--wizard {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
}
