.sworld-map-balance {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.swh-panel {
    position: fixed;
    inset: 0;
    z-index: 200000;
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease, visibility .25s ease;
}

.swh-panel.is-open {
    visibility: visible;
    opacity: 1;
}

.swh-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(10, 31, 40, .42);
    backdrop-filter: blur(5px);
}

.swh-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(78vh, 760px);
    padding: 16px 22px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 1px solid rgba(190, 147, 61, .38);
    border-radius: 34px 34px 0 0;
    background: linear-gradient(180deg, #fffefb, #f8f2e7);
    box-shadow: 0 -24px 70px rgba(21, 48, 60, .22);
    transform: translateY(105%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.swh-panel.is-open .swh-sheet {
    transform: translateY(0);
}

.swh-grabber {
    width: 72px;
    height: 6px;
    margin: 0 auto 22px;
    border-radius: 999px;
    background: #d1d5d4;
}

.swh-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(164, 123, 41, .22);
    border-radius: 50%;
    color: #173746;
    background: #fff;
    font-size: 26px;
}

.swh-sheet header small {
    color: #ae7a1a;
    font-weight: 800;
    letter-spacing: .18em;
}

.swh-sheet header h2 {
    margin: 5px 0 7px;
    color: #173746;
    font-size: 30px;
}

.swh-sheet header p {
    margin: 0;
    color: #766f66;
}

.swh-balance {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: end;
    margin: 24px 0 18px;
    padding: 20px;
    border-radius: 24px;
    color: #173746;
    background: linear-gradient(135deg, #fff3c8, #f5d77a);
}

.swh-balance span {
    align-self: center;
    font-weight: 700;
}

.swh-balance strong {
    font-size: 38px;
    line-height: 1;
}

.swh-balance small {
    padding-bottom: 3px;
    color: #85611b;
    font-weight: 800;
}

.swh-history {
    display: grid;
    gap: 10px;
}

.swh-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 15px;
    border: 1px solid rgba(170, 138, 79, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .88);
}

.swh-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #a97316;
    background: #fff3c6;
    font-size: 22px;
}

.swh-row > div {
    min-width: 0;
}

.swh-row > div strong,
.swh-row > div small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.swh-row > div strong {
    color: #263f49;
}

.swh-row > div small {
    margin-top: 3px;
    color: #938a7e;
}

.swh-row > b {
    color: #a87318;
    font-size: 18px;
    white-space: nowrap;
}

.swh-row > b.is-minus {
    color: #9a5f5f;
}

.swh-row > b small {
    font-size: 10px;
}

.swh-empty {
    padding: 30px 18px;
    color: #81796e;
    text-align: center;
}

body.swh-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .swh-sheet {
        right: 24px;
        bottom: 24px;
        left: auto;
        width: min(520px, calc(100vw - 48px));
        border-radius: 34px;
    }
}
