.wsabv3-root,
.wsabv3-root * {
    box-sizing: border-box;
}

.wsabv3-root {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--wsabv3-mobile-bottom, 15px);
    z-index: var(--wsabv3-z, 999999);
    padding: 0 var(--wsabv3-mobile-padding, 12px);
    font-family: var(--wsabv3-font, inherit);
    pointer-events: none;
}

.wsabv3-shell {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    pointer-events: auto;
}

.wsabv3-branch-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    margin-bottom: 8px;
}

.wsabv3-selector-label {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .92);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(0,0,0,.16);
}

.wsabv3-branch-switcher {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 2px 0;
}

.wsabv3-branch-button {
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid rgba(17, 24, 39, .12);
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    color: #1f2937;
    padding: 8px 13px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.10);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.wsabv3-branch-button:hover,
.wsabv3-branch-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0,0,0,.14);
}

.wsabv3-branch-button.is-active {
    background: #111827;
    color: #fff;
}

.wsabv3-panel {
    display: flex;
    align-items: stretch;
    gap: var(--wsabv3-mobile-gap, 8px);
}

.wsabv3-panel[hidden] {
    display: none !important;
}

.wsabv3-action {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: var(--wsabv3-mobile-height, 48px);
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 9px;
    border-radius: var(--wsabv3-radius, 18px);
    background: var(--wsabv3-action-bg);
    color: var(--wsabv3-action-color);
    text-decoration: none !important;
    text-align: center;
    font-size: var(--wsabv3-mobile-font, 14px);
    font-weight: 700;
    line-height: 1.1;
    box-shadow: 0 7px 18px rgba(0,0,0,.16);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
    overflow: hidden;
}

.wsabv3-action:hover,
.wsabv3-action:focus-visible {
    color: var(--wsabv3-action-color);
    filter: brightness(.97);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

.wsabv3-action:active {
    transform: translateY(0);
}

.wsabv3-action i {
    flex: 0 0 auto;
    color: currentColor;
    font-size: var(--wsabv3-mobile-icon, 18px);
    line-height: 1;
}

.wsabv3-mobile-label {
    display: inline;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wsabv3-desktop-label {
    display: none;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.wsabv3-line1,
.wsabv3-line2 {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wsabv3-space-enabled {
    padding-bottom: var(--wsabv3-reserved-height, 100px);
}

@media (min-width: 992px) {
    .wsabv3-root {
        bottom: var(--wsabv3-desktop-bottom, 10px);
        padding: 0;
    }

    .wsabv3-shell {
        width: var(--wsabv3-desktop-width, 80%);
        max-width: var(--wsabv3-desktop-max, 1100px);
    }

    .wsabv3-branch-area {
        align-items: center;
    }

    .wsabv3-selector-label {
        align-self: center;
    }

    .wsabv3-branch-switcher {
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }

    .wsabv3-panel {
        gap: var(--wsabv3-desktop-gap, 8px);
    }

    .wsabv3-action {
        min-height: var(--wsabv3-desktop-height, 64px);
        justify-content: flex-start;
        gap: 12px;
        padding: 11px 18px;
    }

    .wsabv3-action i {
        font-size: var(--wsabv3-desktop-icon, 22px);
    }

    .wsabv3-mobile-label {
        display: none;
    }

    .wsabv3-desktop-label {
        display: flex;
    }

    .wsabv3-line1 {
        font-size: var(--wsabv3-desktop-l1, 14px);
        font-weight: 500;
        opacity: .96;
    }

    .wsabv3-line2 {
        margin-top: 2px;
        font-size: var(--wsabv3-desktop-l2, 18px);
        font-weight: 800;
        line-height: 1.15;
    }
}

@media (max-width: 520px) {
    .wsabv3-action {
        gap: 5px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .wsabv3-mobile-label {
        font-size: min(var(--wsabv3-mobile-font, 14px), 13px);
    }
}
