@keyframes sfnmi-wallet-skeleton-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

#sfnmi-collect-product-wallets {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: stretch;
    justify-content: center;
    box-sizing: border-box;
}

#sfnmi-collect-product-wallets > div {
    flex: 1 1 0;
    min-width: 0;
    height: 40px;
    box-sizing: border-box;
    overflow: hidden;
}

#sfnmi-collect-product-wallets iframe,
#sfnmi-collect-product-wallets button {
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
}

#sfnmi-applepay-btn,
#sfnmi-googlepay-btn {
    position: relative;
    background: transparent;
}

#sfnmi-applepay-btn::before,
#sfnmi-googlepay-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: 5px;
    z-index: 0;
    pointer-events: none;
}

#sfnmi-applepay-btn::after,
#sfnmi-googlepay-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: sfnmi-wallet-skeleton-spin 0.85s linear infinite;
    z-index: 0;
    pointer-events: none;
}

#sfnmi-applepay-btn iframe,
#sfnmi-applepay-btn button,
#sfnmi-applepay-btn apple-pay-button,
#sfnmi-applepay-btn .CollectJSGooglePayIFrame,
#sfnmi-applepay-btn .collectjs-internal-apple-pay-button,
#sfnmi-googlepay-btn iframe,
#sfnmi-googlepay-btn button,
#sfnmi-googlepay-btn apple-pay-button,
#sfnmi-googlepay-btn .CollectJSGooglePayIFrame,
#sfnmi-googlepay-btn .collectjs-internal-apple-pay-button {
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    #sfnmi-collect-product-wallets {
        flex-direction: row;
        gap: 8px;
    }

    #sfnmi-collect-product-wallets > div {
        width: 100%;
    }
}
