/* Floating Label JM CTA — Styles */

/* ══════════════════════════════════════════
   DESKTOP — floating label on right edge
══════════════════════════════════════════ */

#fljm-label-wrap {
    position: fixed;
    top: 30%; /* overridden by JS with cfg.label_top */
    right: 0;
    z-index: 99999;
    transform: translateY(-50%);
    pointer-events: none;
}

#fljm-label {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;
    /* height set inline via JS (label_height setting) */

    background-color: var(--fljm-bg, #FEC001);
    color: var(--fljm-text, #fff);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    pointer-events: all;

    /* Rounded on the LEFT side, straight flush against right edge */
    border-radius: 24px 0 0 24px;

    box-shadow: -3px 0 12px rgba(0,0,0,0.18);

    animation: fljm-slide-in 0.5s ease 0.8s both,
               fljm-pulse    3s ease-in-out 1.3s infinite;

    transition: filter 0.2s, transform 0.2s;
}

#fljm-label:hover,
#fljm-label:focus {
    filter: brightness(1.12);
    transform: translateX(-3px);
    outline: none;
}

@keyframes fljm-slide-in {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes fljm-pulse {
    0%   { box-shadow: -3px 0 12px rgba(0,0,0,.18); }
    50%  { box-shadow: -3px 0 20px rgba(254,192,1,.55); }
    100% { box-shadow: -3px 0 12px rgba(0,0,0,.18); }
}

/* ══════════════════════════════════════════
   MOBILE — floating pill button above browser bar
══════════════════════════════════════════ */

#fljm-mobile-bar {
    position: fixed;
    /* Sit above the browser's bottom navigation (safe-area-inset-bottom
       covers the home indicator on modern iPhones) */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    left: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    height: 56px;
    border-radius: 50px;
    overflow: hidden;           /* clips btn so border-radius shows */
    box-shadow:
        0 6px 24px rgba(0,0,0,0.30),
        0 2px  8px rgba(0,0,0,0.18);
    animation: fljm-slide-up 0.45s cubic-bezier(.22,.68,0,1.2) 0.4s both;
}

@keyframes fljm-slide-up {
    from { transform: translateY(140%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.fljm-mb-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--fljm-bg, #FEC001);
    color: var(--fljm-text, #fff);
    text-decoration: none;
    font-family: inherit;
    font-size: 17px;        /* 14px × 1.2 ≈ 17px */
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 28px;
    cursor: pointer;
    transition: filter 0.15s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.fljm-mb-btn:hover,
.fljm-mb-btn:focus {
    filter: brightness(1.08);
    outline: none;
}

.fljm-mb-btn:active {
    filter: brightness(0.95);
    transform: scale(0.98);
}


/* ══════════════════════════════════════════
   DEVICE VISIBILITY (CSS fallback)
══════════════════════════════════════════ */

@media (max-width: 768px) {
    #fljm-label-wrap { display: none; }
}

@media (min-width: 769px) {
    #fljm-mobile-bar { display: none; }
}
