.foutfm-studio-ticker {
    --foutfm-purple: #571548;
    --foutfm-pink: #a72b8b;

    position: fixed;
    left: 14px;
    right: 14px;
    top: 76px;
    z-index: 9998;

    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: 10px;

    min-height: 54px;
    padding: 9px 14px;
    box-sizing: border-box;

    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.20);
    background: linear-gradient(135deg, rgba(87,21,72,.96), rgba(167,43,139,.94));
    color: #ffffff;

    box-shadow:
        0 10px 28px rgba(0,0,0,.32),
        0 0 24px rgba(167,43,139,.35);

    pointer-events: auto;
    overflow: hidden;
    font-family: inherit;
    animation: foutfmTickerIn .7s ease both;
}

.foutfm-studio-ticker::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 10%, rgba(255,255,255,.18), transparent 18%),
        linear-gradient(110deg, transparent 0%, rgba(255,255,255,.13) 42%, transparent 65%);
    transform: translateX(-120%);
    animation: foutfmTickerShine 7s ease-in-out infinite;
    pointer-events: none;
}

.foutfm-studio-ticker::after {
    content: "🎉";
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 16px;
    opacity: .52;
    transform: rotate(12deg);
    pointer-events: none;
    z-index: 2;
}

.foutfm-ticker-orb {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;
    border-radius: 999px;

    background: rgba(255,255,255,.14);
    box-shadow:
        inset 0 0 10px rgba(255,255,255,.16),
        0 0 14px rgba(255,255,255,.16),
        0 0 18px rgba(167,43,139,.45);

    animation: foutfmOrbWiggle 4s ease-in-out infinite;
}

.foutfm-ticker-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.foutfm-ticker-label {
    display: block;
    margin-bottom: 3px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
    opacity: .82;
    line-height: 1;
}

.foutfm-ticker-window {
    position: relative;
    min-height: 22px;
    overflow: hidden;
    padding-right: 24px;
    box-sizing: border-box;
}

.foutfm-ticker-message {
    position: absolute;
    left: 0;
    right: 24px;
    top: 50%;

    transform: translateY(120%) scale(.985);
    opacity: 0;

    display: block;
    max-width: calc(100% - 24px);

    color: #ffffff;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: .1px;

    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis;

    transition: transform .55s ease, opacity .55s ease;
}

.foutfm-ticker-message.is-active {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.foutfm-ticker-message a,
.foutfm-ticker-message a:link {
    color: #ffffff !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.45);
    pointer-events: auto;
}

.foutfm-ticker-message a:visited {
    color: #d98cff !important;
    border-bottom-color: rgba(217,140,255,.55);
}

.foutfm-ticker-message a:hover,
.foutfm-ticker-message a:focus {
    color: #ffffff !important;
    border-bottom-color: rgba(255,255,255,.88);
    text-shadow: 0 0 10px rgba(217,140,255,.75);
}

.foutfm-floating-bottom {
    top: auto;
    bottom: 18px;
}

.foutfm-shortcode-ticker {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    margin: 14px auto;
}

@keyframes foutfmTickerIn {
    from { transform: translateY(14px) scale(.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes foutfmTickerShine {
    0%, 55% { transform: translateX(-120%); }
    75%, 100% { transform: translateX(120%); }
}

@keyframes foutfmOrbWiggle {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}



/* Voorkom dat de zwevende ticker onderin over footer/widgets heen valt */
body.foutfm-studio-ticker-bottom-active {
    padding-bottom: 92px !important;
}

body.foutfm-studio-ticker-bottom-active .site-footer,
body.foutfm-studio-ticker-bottom-active footer {
    margin-bottom: 78px;
}

@media (max-width: 768px) {
    .foutfm-studio-ticker {
        left: 50%;
        right: auto;
        top: 64px;
        width: calc(100vw - 28px);
        max-width: 360px;
        transform: translateX(-50%);

        grid-template-columns: 30px 1fr;
        gap: 7px;
        min-height: 42px;
        padding: 7px 10px;
        border-radius: 15px;
    }

    .foutfm-floating-bottom {
        top: auto;
        bottom: 12px;
    }

    .foutfm-shortcode-ticker {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: calc(100% - 8px);
        max-width: 100%;
        margin: 12px auto;
    }

    .foutfm-ticker-orb {
        width: 26px;
        height: 26px;
        font-size: 15px;
    }

    .foutfm-ticker-label {
        display: none;
    }

    .foutfm-ticker-window {
        min-height: 18px;
        padding-right: 18px;
    }

    .foutfm-ticker-message {
        right: 18px;
        max-width: calc(100% - 18px);
        font-size: 12.5px;
        line-height: 1.2;
        white-space: nowrap !important;
    }

    .foutfm-studio-ticker::after {
        right: 9px;
        top: 7px;
        font-size: 14px;
        opacity: .55;
    }

    .foutfm-hide-mobile {
        display: none !important;
    }
}


@media (max-width: 768px) {
    .foutfm-studio-ticker {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .foutfm-studio-ticker,
    .foutfm-studio-ticker::before,
    .foutfm-ticker-orb,
    .foutfm-ticker-message {
        animation: none !important;
        transition: none !important;
    }
}


@media (max-width: 768px) {
    body.foutfm-studio-ticker-bottom-active {
        padding-bottom: 68px !important;
    }

    body.foutfm-studio-ticker-bottom-active .site-footer,
    body.foutfm-studio-ticker-bottom-active footer {
        margin-bottom: 56px;
    }
}
