.ax-flourish-switcher {
    margin: 0 0 30px 0;
    width: 100%;
}

.ax-flourish-switcher-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px 0;
    align-items: center;
}

.ax-flourish-switcher-button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: #f7f7f7;
    color: inherit;
    cursor: pointer;
    padding: 10px 16px;
    line-height: 1.2;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    white-space: nowrap;
    flex: 0 0 auto;
}

.ax-flourish-switcher-button:hover,
.ax-flourish-switcher-button:focus {
    opacity: 1;
    text-decoration: none;
    outline: none;
    transform: translateY(-1px);
}

.ax-flourish-switcher-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.ax-flourish-switcher-button.is-active {
    background: #222;
    color: #fff;
    border-color: #222;
    opacity: 1;
}

.ax-flourish-switcher-button:not(.is-active) {
    opacity: 0.9;
}

.ax-flourish-switcher-frame-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.ax-flourish-switcher-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
    background: transparent;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.ax-flourish-switcher-frame.is-loading {
    opacity: 0.45;
}


/* MOBILE IMPROVEMENTS */

@media (max-width: 767px) {

    .ax-flourish-switcher-buttons {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
        margin-bottom: 14px;
        position: relative;
    }

    .ax-flourish-switcher-buttons::before,
    .ax-flourish-switcher-buttons::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 28px;
        pointer-events: none;
        z-index: 2;
    }

    .ax-flourish-switcher-buttons::before {
        left: 0;
        background: linear-gradient(to right, white, rgba(255,255,255,0));
    }

    .ax-flourish-switcher-buttons::after {
        right: 0;
        background: linear-gradient(to left, white, rgba(255,255,255,0));
    }

    .ax-flourish-switcher-button {
        padding: 9px 14px;
    }

    .ax-flourish-switcher-frame {
        min-height: 600px !important;
    }
}