/* Bifu wallet selector  shown under the Bifu gateway option only. */
.bifu-arm-wallets {
    display: block;
    position: relative;
    z-index: 2;
    clear: both;
    float: none;
    width: 100%;
    box-sizing: border-box;
    margin: 14px 0 18px;
    padding: 18px 16px;
    border-radius: 12px;
    background: #1b1b1f;                 /* opaque so nothing shows through */
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

/* When ARMember marks it hidden, keep it hidden. */
.bifu-arm-wallets.arm_hide {
    display: none !important;
}

.bifu-arm-wallets-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 12px;
    opacity: 0.85;
    text-align: center;
    letter-spacing: 0.3px;
}

.bifu-arm-wallets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.bifu-arm-wallet {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1 1 200px;
    max-width: 280px;
    min-height: 54px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    background: rgba(255, 255, 255, 0.02);
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
}

.bifu-arm-wallet:hover {
    border-color: #ff4d5e;
    background: rgba(255, 77, 94, 0.08);
}

.bifu-arm-wallet.bifu-arm-active {
    border-color: #ff4d5e;
    background: rgba(255, 77, 94, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 77, 94, 0.25);
}

.bifu-arm-wallet .bifu-arm-wallet-radio {
    margin: 0;
    accent-color: #ff4d5e;
    flex: 0 0 auto;
}

/* Brand mark badge */
.bifu-arm-mark {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bifu-arm-mark svg { display: block; }
.bifu-arm-mark-gcash   { background: #0058d6; }
.bifu-arm-mark-maya    { background: #00e676; }
.bifu-arm-mark-grabpay { background: #00b14f; }
.bifu-arm-mark-qrph    { background: #0e2355; }
.bifu-arm-mark-wallet  { background: #3d5b96; }

/* Two-line label */
.bifu-arm-wallet-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    text-align: left;
}
.bifu-arm-wallet-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bifu-arm-wallet-sub {
    display: block;
    font-size: 12px;
    color: #c9c9d0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Trust strip */
.bifu-arm-trust {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}
.bifu-arm-trust-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
}
.bifu-arm-trust-sub {
    font-size: 12px;
    color: #a9a9b2;
    margin-top: 4px;
}
.bifu-arm-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.bifu-arm-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #cfcfd6;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Inline icon glyphs (SVG via mask-free background) */
.bifu-arm-bolt,
.bifu-arm-ic-lock,
.bifu-arm-ic-bank,
.bifu-arm-ic-shield {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: 0 0 auto;
}
.bifu-arm-bolt {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffd24d'%3E%3Cpath d='M13 2L3 14h7l-1 8 10-12h-7z'/%3E%3C/svg%3E");
}
.bifu-arm-ic-lock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235dcaa5' stroke-width='2'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}
.bifu-arm-ic-bank {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2385b7eb' stroke-width='2'%3E%3Cpath d='M3 21h18M4 10h16M12 3l9 5H3zM6 10v8M10 10v8M14 10v8M18 10v8'/%3E%3C/svg%3E");
}
.bifu-arm-ic-shield {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235dcaa5' stroke-width='2'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E");
}

@media (max-width: 600px) {
    .bifu-arm-wallet {
        flex: 1 1 100%;
        max-width: none;
    }
}
