.build-version-footer {
    position: relative;
}

.pix-support {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: calc(100% + 6px);
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 4px 8px 4px 12px;
    translate: -50% 0;
    border: 1px solid #3c9b734a;
    border-radius: 12px;
    background: #f4fcf8;
    color: #216746;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    transition:
        opacity 240ms ease,
        transform 240ms ease,
        display 240ms allow-discrete;
}

.pix-support[hidden] {
    display: none;
    opacity: 0;
    transform: scale(0.94);
}

@starting-style {
    .pix-support:not([hidden]) {
        opacity: 0;
        transform: scale(0.94);
    }
}

.pix-support-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.pix-support-text strong::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #3ed39a;
    vertical-align: 1px;
    animation: connection-pulse 1.6s infinite;
    content: '';
}

.pix-support-key {
    text-transform: uppercase;
    overflow-wrap: anywhere;
    user-select: text;
}

.pix-support-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.pix-support-copy {
    padding: 3px 5px;
    border: 1px solid currentColor;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
}

.pix-support-copy:hover {
    background: #3ed39a19;
}

.pix-support-copy-status {
    min-height: 1.35em;
    font-size: 11px;
    text-align: center;
}

.pix-support img {
    flex: none;
    border-radius: 4px;
    image-rendering: pixelated;
}

body:has(.admin-page) .pix-support,
.room-card-header .pix-support {
    background: #202d2b;
    color: #a0ebc9;
}

body:has(.admin-page) .build-version-footer {
    margin-top: 114px;
}

.room-card-header .pix-support {
    top: 50%;
    bottom: auto;
    padding-block: 0;
    translate: -50% -50%;
}

@media (max-height: 600px) {
    .build-version-footer {
        margin-top: 114px;
    }
}

@media (max-width: 760px) {
    .room-card-header .pix-support {
        position: static;
        align-self: center;
        padding-block: 4px;
        translate: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pix-support {
        transition: none;
    }

    .pix-support-text strong::before {
        animation: none;
    }
}
