/* ── BPH Post to PDF — Frontend Button Styles ────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@500;600&display=swap');

/* ── Button wrapper states ───────────────────────────────────────────────── */

/* Hidden until JS places it */
.bpp-btn-wrap--hidden {
    display: none;
}

/* Inline placement — sits below the content container */
.bpp-btn-wrap--inline {
    display: block;
    margin: 32px 0 24px;
    text-align: left;
}

/* Fixed fallback — shown only when no content container is found */
.bpp-btn-wrap--fixed {
    display: block;
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 9990;
}

/* ── Shared button styles ────────────────────────────────────────────────── */

/* Reset any theme-injected arrow decorations on links (e.g. a::after { content: "→" }) */
.bpp-inline-btn::before,
.bpp-inline-btn::after {
    content: none !important;
    display: none !important;
}

.bpp-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'League Spartan', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff !important;
    background-color: #1a1a1a;
    border: 2px solid #1a1a1a;
    padding: 10px 20px 10px 16px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: background-color 0.18s ease,
                color 0.18s ease,
                box-shadow 0.18s ease,
                transform 0.12s ease;
    white-space: nowrap;
    line-height: 1;
}

.bpp-inline-btn:hover {
    background-color: #ffffff;
    color: #1a1a1a !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
    text-decoration: none;
}

.bpp-inline-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bpp-inline-btn:focus-visible {
    outline: 3px solid #1a1a1a;
    outline-offset: 3px;
}

/* SVG icon inside button.
   Use !important on dimensions to override common theme rules
   such as "svg { width: 100%; }" or "img, svg { max-width: 100%; }". */
.bpp-inline-btn .bpp-float-icon {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px;
    max-width: 15px !important;
    max-height: 15px !important;
    flex-shrink: 0;
    display: block;
    vertical-align: middle;
}

/* Label text */
.bpp-float-label {
    display: inline-block;
}

/* ── Print: hide button ───────────────────────────────────────────────────── */

@media print {
    .bpp-btn-wrap,
    .bpp-inline-btn {
        display: none !important;
    }
}
