#operations-popup-guest {
    box-sizing: border-box;
    width: 460px;
    max-width: calc(100vw - 48px);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
}

#operations-popup-guest .balance-phone {
    display: block;
    margin: 0 auto 20px;
}

#guest-balance-title {
    margin: 0 0 14px;
    color: #000;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

#operations-popup-guest .fancybox-popup__text {
    margin: 0;
    color: #6c6c78;
    font-size: 15px;
    line-height: 1.6;
}

#operations-popup-guest .fancybox-popup__buttons {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
}

#operations-popup-guest .fancybox-popup__buttons button {
    width: 100%;
    margin: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 500;
}

#operations-popup-guest .btn-grey {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: #5846ed;
}

#operations-popup-guest .btn-grey:hover { background: #4939d8; }

#operations-popup-guest .btn-default {
    height: auto;
    min-height: 34px;
    padding: 5px;
    border: 0;
    color: #5846ed;
    background: transparent;
}

#operations-popup-guest .btn-default:hover { text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
    .balance-phone__handset {
        transform-origin: 50% 75%;
        animation: balance-phone-lift .85s ease-out .12s both;
    }

    .balance-phone__amount {
        animation: balance-phone-count 1.25s ease-in-out .45s both;
    }

    .balance-phone__row {
        --slide-from: -32px;
        --slide-past: 2px;
        animation: balance-phone-slide .7s ease-out .65s both;
    }

    .balance-phone__row--front {
        --slide-from: 42px;
        --slide-past: -4px;
        animation-delay: 1.1s;
    }

    .balance-phone__row--last { animation-delay: 1.55s; }

    .balance-phone__check {
        stroke-dasharray: 1;
        animation: balance-phone-check .5s ease-out 1.65s both;
    }

    .balance-phone__spark {
        transform-box: fill-box;
        transform-origin: center;
        animation: balance-phone-glint .75s ease-out 1.5s both;
    }

    .balance-phone__spark--late { animation-delay: 1.85s; }

    @keyframes balance-phone-lift {
        from { opacity: 0; transform: translateY(22px) rotate(-9deg) scale(.84); }
        70% { opacity: 1; transform: translateY(-2px) rotate(2deg) scale(1.02); }
        to { opacity: 1; transform: none; }
    }

    @keyframes balance-phone-count {
        0%, 12% { transform: translateY(40px); }
        45%, 58% { transform: translateY(20px); }
        to { transform: translateY(0); }
    }

    @keyframes balance-phone-slide {
        from { opacity: 0; transform: translateX(var(--slide-from)); }
        75% { opacity: 1; transform: translateX(var(--slide-past)); }
        to { opacity: 1; transform: translateX(0); }
    }

    @keyframes balance-phone-check {
        from { stroke-dashoffset: 1; }
        to { stroke-dashoffset: 0; }
    }

    @keyframes balance-phone-glint {
        from { opacity: 0; transform: scale(.3); }
        65% { opacity: 1; transform: scale(1.35); }
        to { opacity: 1; transform: scale(1); }
    }
}
