.mfpc-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mfpc-card.mfc-has-selection {
    padding: 14px 18px 14px;
    color: #2f3640;
    border-top: 0.5px solid #E0E0E0;
    border-bottom: 0.5px solid #E0E0E0;
}

.mfpc-card+.mfc-wrapper {
    display: none;
}

.mfpc-card.mfc-has-selection+.mfc-wrapper {
    display: inherit;
}

.mfpc-card table tr,
.mfpc-card table td {
    border: none;
}

.mfc-wrapper {
    padding: 20px;
}

.rta-dropdown-wrapper.mfc-selectors {
    padding: 0 20px 20px 20px;
}

.mfpc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.mfpc-metric {
    background: transparent;
    border: none;
    padding: 6px 0;
    min-width: 140px;
}

.mfc-return-list {
    display: flex;
    align-items: start;
    gap: 20px;
}

.mfpc-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.mfpc-scheme-option-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #0f9a42;
    background: #e6f7ed;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

/* Hide Growth badge for ETF funds */
.mfpc-card-etf .mfpc-scheme-option-badge {
    display: none;
}

.mfpc-value {
    font-size: 22px;
    font-weight: 700;
    color: #1b202b;
    line-height: 1.1;
}

.mfpc-positive {
    color: #0f9a42;
}

.mfpc-negative {
    color: #ef4444;
}

.mfpc-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
    font-size: 13px;
    color: #4a4f58;
}

.mfpc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mfpc-line {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    display: inline-block;
}

.mfpc-line-fund {
    background: #1f8cf3;
}

.mfpc-line-benchmark {
    background: #d89c2a;
}

.mfpc-chart-panel {
    margin: 12px 0 12px;
    border-radius: 16px;
    padding: 8px 6px 4px;
}

.mfpc-chart-area {
    height: 232px;
    position: relative;
    touch-action: pan-y;
}

.mfpc-chart-area canvas,
.mfpc-chart-area table,
.mfpc-chart-area td,
.mfpc-chart-area tr,
.mfpc-chart-area div {
    touch-action: pan-y !important;
}

.mfpc-fallback-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.mfpc-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #e2e5ea;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #2f3640;
    line-height: 1.45;
    z-index: 3;
    min-width: 160px;
    white-space: nowrap;
}

.mfpc-tooltip-header {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.mfpc-tooltip-date {
    font-size: 11px;
    color: #8b93a1;
    margin-bottom: 6px;
}

.mfpc-tooltip-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.mfpc-tooltip-swatch {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.mfpc-tooltip-nav {
    font-weight: 700;
    color: #1b202b;
    font-size: 12px;
    min-width: 36px;
}

.mfpc-tooltip-name {
    color: #6b7280;
    font-size: 11px;
}

.mfpc-range-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button.mfpc-range-btn {
    appearance: none;
    background: #efefef;
    border: 1px solid #d4d5d8;
    border-radius: 18px;
    color: #5a5f68;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    min-width: 52px;
    box-shadow: none;
}

button.mfpc-range-btn:hover {
    background: #e5e5e5;
    border-color: #cfcfd1;
}

button.mfpc-range-btn.active {
    background: #ffffff;
    border-color: #e8b007;
    color: #b07a00;
    box-shadow: 0 3px 10px rgba(232, 176, 7, 0.22);
}

.mfc-wrap {
    border-radius: 32px;
    gap: 20px;
    border: 0.5px solid #E0E0E0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F8FC 100%);
    font-family: "Rubik", Sans-serif;
}

.mfc-header .mf-toggle-wrapper {
    justify-content: space-between;
    margin-bottom: 20px;
}

.mfc-header {
    padding: 20px 20px 0 20px;
}

.mfc-header .mfc-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.2px;
    color: #101010;
    margin: 0 0 12px 0;
}

.mfc-wrap .mf-tag {
    background: #E2F9EC;
    border-radius: 6px;
    padding-top: 4px;
    padding-right: 8px;
    padding-bottom: 4px;
    padding-left: 8px;
}

.mfc-wrap .mf-tag span {
    font-family: Rubik;
    font-weight: 500;
    font-style: Medium;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 14px;
    letter-spacing: 0px;
    color: #009D35;
}

.rta-dropdown-wrapper.mfc-selectors {
    padding-bottom: 20px;
}

/* SECTION HEADER */

.mfc-section-title {
    background: #D5E7F4;
    color: #101010;
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0px;
    border-radius: 99px;
    padding: 2px 12px;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* GRID */

.mfc-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mfc-column {
    color: #5B6369;
    font-family: Rubik;
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0p
}

.mfc-column:not(:last-child) {
    border-right: 1px solid #D9D9D9;
}

/* TEXT */

.mfc-fund-title {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #101010;
    margin: 0 0 5px 0;
}

.mfc-description {
    color: #5B6369;
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0px;
}

/* PILLS */

.mfc-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 99px;
    padding-top: 2px;
    padding-right: 8px;
    padding-bottom: 2px;
    padding-left: 8px;
    background: #E0B972;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    line-height: 17px;
    letter-spacing: 0;
    margin-bottom: 4px;
}

/* NAV */

.mfc-nav-value {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #101010;
}

.mfc-nav-date {
    color: #868A8D;
    font-family: Rubik;
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    letter-spacing: 0px;
}

/* RETURNS */

.mfc-return-value {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #101010;
}

/* RISK */

.mfc-risk-value {
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #5B6369;
    text-transform: capitalize;
}

/* DATE */

.mfc-launch-date {
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #5B6369;
}

/* HOLDINGS */

.mfc-holdings {
    list-style: none;
    padding-left: 0;
    padding-right: 8px;
}

.mfc-holding-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mfc-holding-item span {
    color: #5B6369;
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0px;
}

.mfc-holding-item strong {
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: 0px;
    color: #101010;
}

/* CTA */

.mfc-cta {
    margin-top: 16px;
    background: #D5E7F4;
    border-radius: 99px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.mfc-cta-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mfc-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfc-cta-content {
    color: #5B6369;
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0px;
}

.mfc-cta .elementor-button-text {
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;
}

.mfpc-chart-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.mfpc-chart-placeholder>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.mfpc-chart-placeholder img {
    width: 39px;
    height: 48px;
    opacity: 1;
    display: block;
}

.mfpc-card:not(.mfc-has-selection) .mfpc-range-group,
.mfpc-card:not(.mfc-has-selection) .mfpc-header,
.mfpc-card:not(.mfc-has-selection) .chart-desclaimer {
    display: none !important;
}

.mfpc-chart-placeholder span {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0;
    text-align: center;
    color: #868A8D;
    display: block;
}

.mfc-cta .primary-btn,
.mfc-cta .primary-btn a {
    width: 100%;
}

.returns-sec .ret-first {
    margin-bottom: 12px;
}

.mfpc-return-list>.mfpc-return:nth-child(1) .mfpc-top-bar {
    color: #1f8cf3;
}

.mfpc-return-list>.mfpc-return:nth-child(2) .mfpc-top-bar {
    color: #22c55e;
}

.mfpc-return-list>.mfpc-return:nth-child(3) .mfpc-top-bar {
    color: #ef4444;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .mfpc-metric {
        min-width: 90px;
    }

    .mfpc-legend {
        margin-left: 0;
    }

    .mfpc-chart-area {
        height: 220px;
    }

    .mfpc-value {

        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .mfc-wrap .rta-dropdown-wrapper {
        flex-wrap: nowrap;
    }

    .mfc-wrap .rta-dropdown-wrapper .rta-field:nth-child(1) {
        width: auto;
    }
}

@media (max-width: 600px) {
    .mfc-wrap .rta-dropdown-wrapper {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mfc-wrap .rta-dropdown-wrapper::-webkit-scrollbar {
        display: none;
    }

    .mfc-wrap .rta-dropdown-wrapper .rta-field {
        flex: 0 0 calc(44% - 8px);
    }

    .mfc-columns {
        display: grid;
        grid-auto-flow: column;
        /* 2 columns fully visible + a 15% peek of the 3rd: with an 8px gap
           between tracks, that's 2 full tracks + 2 gaps + 0.15 of a track
           filling the row's width, i.e. track = (100% - 16px) / 2.15. */
        grid-auto-columns: calc((100% - 16px) / 2.15);
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mfc-columns::-webkit-scrollbar {
        display: none;
    }

    .mfc-column {
        width: 100%;
        min-width: 0;
    }

    .mfc-wrapper {
        padding-right: 0px;
    }

    .mfpc-chart-panel{
        padding: 0;
    }
    .mfc-cta {
        border-radius: 24px;
        flex-direction: column;
        align-items: start;
        gap: 8px;
    }
    .mfc-columns {
        grid-template-columns: none;
    }
}

.chart-desclaimer {
    font-weight: 400;
    font-size: 10px;
    line-height: 10px;
    letter-spacing: -0.24px;
    color: #838383;
    margin-top: 12px;
}