.smi {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: stretch;
}

.smi .sharethis-inline-share-buttons {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
}

.dowdes-share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 8px 10px;
}

.dowdes-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: var(--dowdes-share-color, #95D03A);
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(20, 34, 29, .14);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.dowdes-share-btn:hover {
    color: #fff;
    filter: saturate(1.08);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(20, 34, 29, .18);
}

.dowdes-share-btn:focus {
    outline: 3px solid rgba(146, 198, 108, .4);
    outline-offset: 2px;
}

.dowdes-share-btn img {
    width: 20px;
    height: 20px;
    /* vendored SVGs (Threads/Bluesky/Meneame/Outlook/Teams) ship as plain
       black paths — force them to the same white glyph as the FA icons. */
    filter: brightness(0) invert(1);
}

.dowdes-share-btn.is-done {
    filter: saturate(0) brightness(1.3);
}

.dowdes-share-qr {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.dowdes-share-row .dowdes-favorites-bar,
.smi .favorites {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.dowdes-share-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 16, 14, .58);
}

.dowdes-share-dialog {
    width: min(560px, 100%);
    border-radius: 12px;
    background: #fff;
    color: #26312d;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
    overflow: hidden;
}

.dowdes-share-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-weight: 700;
}

.dowdes-share-close {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.dowdes-share-dialog-body {
    padding: 16px;
}

.dowdes-share-dialog textarea {
    width: 100%;
    min-height: 108px;
    resize: vertical;
    border: 1px solid rgba(0, 0, 0, .16);
    border-radius: 8px;
    padding: 10px;
    font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.dowdes-share-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #157347;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

body.dowdes-theme-dark .dowdes-share-dialog,
html[data-dowdes-theme-choice="dark"] body .dowdes-share-dialog {
    background: #121b18;
    color: #f6fbf8;
}

body.dowdes-theme-dark .dowdes-share-dialog textarea,
html[data-dowdes-theme-choice="dark"] body .dowdes-share-dialog textarea {
    background: rgba(255, 255, 255, .08);
    color: #f6fbf8;
    border-color: rgba(255, 255, 255, .18);
}

@media (max-width: 575.98px) {
    .dowdes-share-buttons {
        gap: 7px;
        padding-inline: 4px;
    }

    .dowdes-share-btn {
        width: 46px;
        height: 46px;
    }
}

/* ---- Floating share bar (Ronda 61) ----
   A SECOND instance of the same share box (App\Services\ShareButtons::
   floatingEnabled(), frontend::inc.share-floating), always visible while
   scrolling: a vertical sidebar on the left edge on desktop, a bar fixed to
   the bottom on mobile. dowdes-share.js adds .dowdes-share-buttons to EVERY
   .sharethis-inline-share-buttons on the page (inline row + this one), so
   .dowdes-share-floating.dowdes-share-buttons only ever matches this one.

   Desktop: only the share bar itself is position:fixed (ad box is hidden
   entirely — mobile-only per spec). Mobile: the WRAPPER becomes the fixed
   element (a flex column pinned to the bottom) and the ad box + bar are
   normal flex children inside it, stacking in DOM order — this handles any
   ad height correctly (a 90px banner or a 250px rectangle) without needing
   to hardcode pixel offsets; Blade already puts the ad div before or after
   the share bar div depending on the admin's chosen position. */
.dowdes-share-floating-wrap {
    display: contents;
}

/* Minimal/authentic look (no unifying card behind it, like ShareThis's own
   sticky widget) — each .dowdes-share-btn already carries its own colored
   circle + shadow, that's the only chrome needed. */
.dowdes-share-floating.dowdes-share-buttons {
    position: fixed;
    z-index: 1045;
    width: auto;
    padding: 6px;
    background: transparent;
    box-shadow: none;
}

.dowdes-share-floating-ad {
    display: none;
}

/* Desktop: vertical sidebar hugging the left edge (right edge for RTL).
   TWO conditions must both hold: wide enough (matches the site's own
   mobile/desktop split, Bootstrap lg/992px — same width the offcanvas
   hamburger nav switches at in app.css) AND driven by a real mouse/trackpad
   (`pointer: fine`). Width alone isn't enough: Chrome DevTools device presets
   like Nest Hub (1024x600), Nest Hub Max (1280x800) and iPad Pro (1024x1366)
   all report widths above 992px but are touch devices (`pointer: coarse`) —
   a vertical sidebar with 9+ icons at those viewport HEIGHTS visually
   dominates/overlaps the page. Real desktops/laptops (mouse or trackpad)
   report `pointer: fine` regardless of window width, so this correctly
   separates "wide touch tablet/display" from "actual desktop browser". */
@media (min-width: 992px) and (pointer: fine) {
    .dowdes-share-floating.dowdes-share-buttons {
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        gap: 10px;
    }

    html[dir="rtl"] .dowdes-share-floating.dowdes-share-buttons {
        left: auto;
        right: 8px;
    }
}

/* Mobile/touch: the wrapper itself is the fixed bottom element; ad + bar
   stack inside it as normal flow, in whatever order Blade rendered them —
   handles any ad height correctly without hardcoding pixel offsets. Applies
   whenever the desktop condition above does NOT hold — narrow viewport OR
   coarse/touch pointer, regardless of reported width (see comment above). */
@media not all and (min-width: 992px) and (pointer: fine) {
    .dowdes-share-floating-wrap {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1045;
    }

    /* Square, edge-to-edge, no gaps — deliberately different from the round
       gapped icons everywhere else (inline row, desktop sidebar): this is
       the one place the admin wanted a flush app-icon-row look. */
    .dowdes-share-floating.dowdes-share-buttons {
        position: static;
        width: 100%;
        flex-direction: row;
        justify-content: stretch;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0;
        padding: 0;
        background: rgba(255, 255, 255, .9);
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    body.dowdes-theme-dark .dowdes-share-floating.dowdes-share-buttons,
    html[data-dowdes-theme-choice="dark"] body .dowdes-share-floating.dowdes-share-buttons {
        background: rgba(18, 27, 24, .9);
    }

    .dowdes-share-floating.dowdes-share-buttons .dowdes-share-btn {
        flex: 1 1 0;
        width: auto;
        min-width: 44px;
        height: 52px;
        border-radius: 0;
    }

    .dowdes-share-floating-ad {
        display: block;
        width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, .96);
    }

    body.dowdes-theme-dark .dowdes-share-floating-ad,
    html[data-dowdes-theme-choice="dark"] body .dowdes-share-floating-ad {
        background: rgba(18, 27, 24, .96);
    }
}
