/* =====================================================================
   Share dropdown — app/Views/includes/share_link_dropdown.php
   Scoped to .nz-share, so it only touches the share button and its menu.

   Two things the base classes can't do on their own:
     1. the trigger mixes a feather svg, an optional label and the bootstrap
        caret — they only line up when the button is a flex row;
     2. the menu mixes feather svgs (16px boxes) with Font Awesome glyphs
        (font sized), so the labels need a shared icon column to align.
   Colours are left to the theme, so dark mode keeps working.
   ===================================================================== */

.nz-share {
    vertical-align: middle;
}

/* ------------------------------------------------------------- trigger */
.nz-share > .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.nz-share > .dropdown-toggle svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

/* breathing room between the label (or icon) and the caret */
.nz-share > .dropdown-toggle.caret::after {
    margin-left: 7px;
    vertical-align: middle;
}

/* icon-only trigger: keep it square instead of letting the caret squash it */
.nz-share > .dropdown-toggle.action-option {
    min-height: 28px;
    padding: 2px 8px 3px 8px;
}

/* --------------------------------------------------------------- menu */
.nz-share .dropdown-menu {
    min-width: 230px;
}

.nz-share .dropdown-item {
    display: flex;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* one 16px column for every entry, whatever the icon library is */
.nz-share .dropdown-item > svg,
.nz-share .dropdown-item > i {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
}

.nz-share .dropdown-header {
    padding-left: 1.25rem;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
}

.nz-share .js-share-link-input {
    font-size: 0.8rem;
}
