.footer-bar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999999;
}

.pill-toggle {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
}

.pill-toggle-icon {
    padding: 0 6px 0 12px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.pill-toggle-icon svg {
    width: 16px;
    height: 16px;
    stroke: #1aab9b;
}

.pill-track {
    display: inline-flex;
    position: relative;
}

.pill-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #1aab9b;
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.pill-btn {
    position: relative;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: #2d3436;
    transition: color 0.25s ease;
    z-index: 1;
    white-space: nowrap;
}

.pill-btn.active,
.pill-track a.glink.gt-current-lang {
    color: #ffffff;
    background: #1aab9b;
    font-weight: 600;
}

.pill-btn:not(.active):hover {
    color: #1aab9b;
}

.back-to-top, .footer-bar #edgtf-back-to-top {
    position: relative;
    width: auto;
    right: auto;
    bottom: auto;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    font-weight: 600;
    color: #2d3436;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    max-width: 0;
    overflow: hidden;
    padding: 8px 0;
    transition: opacity 0.3s ease, max-width 0.3s ease, padding 0.3s ease, box-shadow 0.2s, color 0.2s;
}

.back-to-top.visible,
#edgtf-back-to-top.on {
    opacity: 1;
    pointer-events: auto;
    max-width: 160px;
    padding: 8px 16px;
}

.back-to-top:hover, #edgtf-back-to-top:hover {
    color: #1aab9b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.back-to-top svg, #edgtf-back-to-top svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}