/* Scoped Legacy Fixes for Rupee Wallet */

.rupee-wallet-legacy-scope {
    /* Match Production Content: Manrope Light, 8px margin */
    font-family: 'Manrope Light', 'Manrope', sans-serif;
    margin: 8px;
    padding: 0;
    color: #000000;
    background-color: transparent;
    /* Reset any inherited background */
    text-rendering: auto;
    -webkit-font-smoothing: auto;
    -moz-osx-font-smoothing: auto;
}

/* Restore Global Grey Background for Rupee Wallet pages */
html {
    background-color: #eff4f7;
}

/* Fix Header Alignment: Remove paragraph margins in brand section */
.rupee-wallet__content--brand p {
    margin: 0;
    line-height: normal;
}

.rupee-wallet-legacy-scope p {
    /* Match Production Paragraph Spacing (16px top + 16px bottom) */
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: normal;
    font-family: 'Manrope Light', 'Manrope', sans-serif;
}

.rupee-wallet-legacy-scope h1,
.rupee-wallet-legacy-scope h2,
.rupee-wallet-legacy-scope h3,
.rupee-wallet-legacy-scope h4,
.rupee-wallet-legacy-scope h5,
.rupee-wallet-legacy-scope h6,
.rupee-wallet-legacy-scope strong,
.rupee-wallet-legacy-scope b {
    font-family: 'Manrope Light', 'Manrope', sans-serif;
    font-weight: 700;
    /* Resetting to inherit or standard. */
    margin-top: 0;
    margin-bottom: 0;
}

/* Strict Legacy Link Styles - Force Override */
html body .rupee-wallet-legacy-scope a {
    color: #0000EE !important;
    text-decoration: underline !important;
    cursor: pointer;
}

html body .rupee-wallet-legacy-scope a:active {
    color: #EE0000 !important;
}

html body .rupee-wallet-legacy-scope a:visited {
    color: #551A8B !important;
}

.rupee-wallet-legacy-scope ul {
    display: block;
    list-style-type: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 40px;
}

.rupee-wallet-legacy-scope ol {
    margin-bottom: 1em;
}

.rupee-wallet-legacy-scope li {
    margin-bottom: 0.5em;
}