.masb-wrap {
    position: fixed;
    bottom: var(--masb-bottom, 24px);
    z-index: var(--masb-z, 99999);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: min(460px, calc(100vw - 24px));
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.masb-wrap.masb-right {
    right: var(--masb-side, 24px);
}

.masb-wrap.masb-left {
    left: var(--masb-side, 24px);
}

.masb-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: auto;
    min-height: 64px;
    padding: 11px 16px 11px 12px;
    border-radius: 999px;
    color: var(--masb-text, #ffffff) !important;
    background: var(--masb-primary, #0071F3);
    border: 1px solid rgba(255, 255, 255, 0.26);
    box-shadow: 0 18px 45px rgba(0, 113, 243, 0.26), 0 4px 12px rgba(24, 24, 24, 0.18);
    text-decoration: none !important;
    line-height: 1.15;
    transform: translateY(0) scale(1);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
    overflow: hidden;
    isolation: isolate;
}

.masb-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 16% 14%, rgba(255, 255, 255, 0.38), transparent 34%), linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(24, 24, 24, 0.08));
    pointer-events: none;
}

.masb-button:hover,
.masb-button:focus-visible {
    color: var(--masb-text, #ffffff) !important;
    background: var(--masb-dark, #181818);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 24px 55px rgba(0, 113, 243, 0.34), 0 7px 18px rgba(24, 24, 24, 0.24);
    outline: none;
}

.masb-button:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 113, 243, 0.32), 0 24px 55px rgba(0, 113, 243, 0.34);
}

.masb-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    min-width: 96px;
    height: 42px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: inset 0 0 0 1px rgba(24, 24, 24, 0.08);
}

.masb-logo img {
    display: block;
    max-width: 100%;
    max-height: 30px;
    width: auto;
    height: auto;
}

.masb-logo-fallback {
    color: #181818;
    font-weight: 850;
    font-size: 16px;
    letter-spacing: -0.03em;
}

.masb-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.masb-micro {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .03em;
    text-transform: uppercase;
    opacity: .88;
    white-space: nowrap;
}

.masb-label {
    display: block;
    font-size: 16px;
    font-weight: 850;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.masb-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 20px;
    font-weight: 850;
    transition: transform 180ms ease;
}

.masb-button:hover .masb-arrow,
.masb-button:focus-visible .masb-arrow {
    transform: translateX(2px);
}

.masb-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(24, 24, 24, 0.76);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
    cursor: pointer;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    transition: transform 160ms ease, background-color 160ms ease;
}

.masb-close:hover,
.masb-close:focus-visible {
    background: rgba(24, 24, 24, 0.96);
    transform: scale(1.08);
    outline: none;
}

.masb-hidden {
    display: none !important;
}

.masb-shortcode-wrap {
    position: static;
    max-width: none;
    display: inline-flex;
}

@media (prefers-reduced-motion: reduce) {
    .masb-button,
    .masb-arrow,
    .masb-close {
        transition: none;
    }
}

@media (max-width: 600px) {
    .masb-wrap {
        left: 12px !important;
        right: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom));
        max-width: calc(100vw - 24px);
    }

    .masb-button {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 58px;
        padding: 10px 12px 10px 10px;
        gap: 10px;
    }

    .masb-logo {
        width: 82px;
        min-width: 82px;
        height: 36px;
        padding: 6px 8px;
    }

    .masb-logo img {
        max-height: 24px;
    }

    .masb-micro {
        font-size: 10px;
    }

    .masb-label {
        font-size: 14px;
        white-space: normal;
    }

    .masb-arrow {
        width: 28px;
        height: 28px;
    }

    .masb-close {
        width: 28px;
        height: 28px;
        line-height: 28px;
    }
}
