/* SEARCH RUST MARKET — Steam top-up payment selector v11.4.3 */

#steam-topup .steam-payment-section {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    gap: 10px !important;
    margin-top: 8px !important;
}

#steam-topup .steam-payment-section-head {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 1px !important;
}

#steam-topup .steam-payment-heading,
#steam-topup .steam-payment-section-head > span {
    color: #1d4ed8 !important;
    font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    letter-spacing: .075em !important;
    text-transform: uppercase !important;
}

#steam-topup .steam-payment-section-head > small {
    display: none !important;
}

#steam-topup .steam-payment-methods,
#steamPaymentMethods {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: none !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#steam-topup .steam-payment-option,
#steamPaymentMethods > .steam-payment-option {
    position: relative !important;
    display: block !important;
    grid-column: auto !important;
    grid-row: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

#steam-topup .steam-payment-option input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#steam-topup .steam-payment-card {
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 74px !important;
    padding: 12px 14px !important;
    gap: 10px !important;
    overflow: hidden !important;
    border: 1px solid #9fc3ff !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, #edf5ff 0%, #dfeaff 100%) !important;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .10) !important;
    cursor: pointer !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease !important;
}

#steam-topup .steam-payment-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background: linear-gradient(115deg, rgba(255,255,255,.38), transparent 46%) !important;
}

#steam-topup .steam-payment-card:hover {
    transform: translateY(-1px) !important;
    border-color: #5f98f4 !important;
    background: linear-gradient(135deg, #e6f0ff 0%, #d5e5ff 100%) !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .16) !important;
}

#steam-topup .steam-payment-main {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: 10px !important;
}

#steam-topup .steam-payment-icon {
    display: grid !important;
    place-items: center !important;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 11px !important;
    color: #2563eb !important;
    background: rgba(255, 255, 255, .86) !important;
    box-shadow: 0 6px 15px rgba(37, 99, 235, .12) !important;
    font-size: 14px !important;
}

#steam-topup .steam-payment-copy {
    min-width: 0 !important;
}

#steam-topup .steam-payment-card strong {
    display: block !important;
    color: #143a78 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
}

#steam-topup .steam-payment-card small {
    display: block !important;
    margin-top: 4px !important;
    color: #617ba8 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    white-space: normal !important;
}

#steam-topup .steam-payment-fee {
    position: relative !important;
    z-index: 1 !important;
    flex: 0 0 auto !important;
    padding: 5px 8px !important;
    border: 1px solid rgba(37, 99, 235, .12) !important;
    border-radius: 999px !important;
    color: #1d4ed8 !important;
    background: rgba(255,255,255,.64) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
}

/* Active payment method: saturated blue */
#steam-topup .steam-payment-option input:checked + .steam-payment-card {
    border-color: #2563eb !important;
    background: linear-gradient(135deg, #2f7df4 0%, #1d5fdb 100%) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .13), 0 14px 28px rgba(37, 99, 235, .24) !important;
}

#steam-topup .steam-payment-option input:checked + .steam-payment-card strong,
#steam-topup .steam-payment-option input:checked + .steam-payment-card small {
    color: #fff !important;
}

#steam-topup .steam-payment-option input:checked + .steam-payment-card .steam-payment-icon {
    color: #fff !important;
    background: rgba(255,255,255,.16) !important;
    box-shadow: none !important;
}

#steam-topup .steam-payment-option input:checked + .steam-payment-card .steam-payment-fee {
    color: #fff !important;
    background: rgba(255,255,255,.16) !important;
    border-color: rgba(255,255,255,.18) !important;
}

#steam-topup .steam-payment-option.is-disabled .steam-payment-card {
    cursor: not-allowed !important;
    border-color: #c9d8ef !important;
    background: linear-gradient(135deg, #eaf0f8 0%, #e1e8f2 100%) !important;
    box-shadow: none !important;
    opacity: .60 !important;
    transform: none !important;
}

#steam-topup .steam-payment-option.is-disabled .steam-payment-icon {
    color: #7597ca !important;
    background: rgba(255,255,255,.65) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] #steam-topup .steam-payment-heading,
html[data-theme="dark"] #steam-topup .steam-payment-section-head > span {
    color: #93c5fd !important;
}

html[data-theme="dark"] #steam-topup .steam-payment-card {
    border-color: #345a8e !important;
    background: linear-gradient(135deg, #162439 0%, #172d4b 100%) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.22) !important;
}

html[data-theme="dark"] #steam-topup .steam-payment-card strong { color: #eaf2ff !important; }
html[data-theme="dark"] #steam-topup .steam-payment-card small { color: #adc2e4 !important; }
html[data-theme="dark"] #steam-topup .steam-payment-icon { color: #93c5fd !important; background: rgba(255,255,255,.07) !important; box-shadow: none !important; }

@media (max-width: 720px) {
    #steam-topup .steam-payment-methods,
    #steamPaymentMethods {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-flow: column !important;
        gap: 6px !important;
    }

    #steam-topup .steam-payment-heading,
    #steam-topup .steam-payment-section-head > span {
        font-size: 11px !important;
        letter-spacing: .055em !important;
    }

    #steam-topup .steam-payment-card {
        min-height: 72px !important;
        padding: 9px 7px !important;
        gap: 5px !important;
        border-radius: 13px !important;
    }

    #steam-topup .steam-payment-main {
        gap: 6px !important;
        align-items: flex-start !important;
    }

    #steam-topup .steam-payment-icon {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    #steam-topup .steam-payment-card strong { font-size: 10.5px !important; }
    #steam-topup .steam-payment-card small { font-size: 8px !important; line-height: 1.12 !important; }

    #steam-topup .steam-payment-fee {
        position: absolute !important;
        top: 5px !important;
        right: 5px !important;
        padding: 3px 5px !important;
        font-size: 7.5px !important;
    }
}
