.ifhp--compact {
    --ifhp-ink: #08243d;
    --ifhp-blue: #0098ff;
    --ifhp-muted: #64788f;
    --ifhp-border: #d4e8f7;
    box-sizing: border-box;
    padding: 44px 0;
    color: var(--ifhp-ink);
    background: #fff;
    font: 14px/1.5 Inter, Arial, sans-serif;
}

.ifhp--compact *,
.ifhp__reg-popover,
.ifhp__reg-popover * {
    box-sizing: border-box;
}

.ifhp--compact [hidden],
[data-ifhp-reg-popover][hidden] {
    display: none !important;
}

.ifhp--compact .ifhp__container {
    width: min(1260px, calc(100% - 48px));
    margin-inline: auto;
}

.ifhp--compact .ifhp__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 24px;
    padding: 0;
    background: none;
    border: 0;
}

.ifhp--compact .ifhp__heading h2 {
    margin: 0;
    color: var(--ifhp-ink);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.ifhp--compact .ifhp__heading h2 span {
    color: var(--ifhp-blue);
}

.ifhp--compact .ifhp__heading p {
    margin: 10px 0 0;
    color: var(--ifhp-muted);
    font-size: 15px;
}

.ifhp--compact .ifhp__switch {
    display: inline-flex;
    flex-shrink: 0;
    gap: 3px;
    padding: 4px;
    background: #e9f5fe;
    border: 1px solid var(--ifhp-border);
    border-radius: 12px;
}

.ifhp--compact .ifhp__switch button {
    width: auto;
    min-height: 42px;
    margin: 0;
    padding: 10px 18px;
    color: #375570;
    background: transparent;
    border: 0;
    border-radius: 9px;
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
    cursor: pointer;
}

.ifhp--compact .ifhp__switch button[aria-pressed="true"] {
    color: #fff;
    background: var(--ifhp-blue);
    box-shadow: 0 3px 10px #0098ff20;
}

.ifhp--compact .ifhp__surface {
    overflow: hidden;
    border: 1px solid var(--ifhp-border);
    border-radius: 16px;
    box-shadow: 0 5px 20px #072c4d08;
}

.ifhp--compact .ifhp__table {
    display: table;
    width: 100%;
    margin: 0;
    table-layout: fixed;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
    font: inherit;
    background: #fff;
}

.ifhp--compact .ifhp__table thead th {
    height: 48px;
    padding: 12px;
    color: #234966;
    background: #edf7fe;
    border: 0;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    vertical-align: middle;
}

.ifhp--compact .ifhp__table thead th:nth-child(1) { width: 17%; }
.ifhp--compact .ifhp__table thead th:nth-child(2) { width: 8%; }
.ifhp--compact .ifhp__table thead th:nth-child(3) { width: 22%; }
.ifhp--compact .ifhp__table thead th:nth-child(4) { width: 12%; }
.ifhp--compact .ifhp__table thead th:nth-child(5) { width: 13%; }
.ifhp--compact .ifhp__table thead th:nth-child(6) { width: 13%; }
.ifhp--compact .ifhp__table thead th:nth-child(7) { width: 15%; }

.ifhp--compact .ifhp__table tbody th,
.ifhp--compact .ifhp__table tbody td {
    height: 88px;
    padding: 16px 12px;
    color: var(--ifhp-ink);
    background: #fff;
    border: 0;
    border-top: 1px solid var(--ifhp-border);
    vertical-align: middle;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.ifhp--compact .ifhp__table tbody tr:first-child > * {
    border-top: 0;
}

.ifhp--compact .ifhp__table th:first-child {
    padding-left: 20px;
}

.ifhp--compact .ifhp__provider {
    display: inline-flex;
    max-width: 100%;
    min-height: 44px;
    align-items: center;
    color: var(--ifhp-ink);
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.ifhp--compact .ifhp__provider .ifhp__logo {
    display: block;
    width: auto;
    max-width: 144px;
    height: auto;
    max-height: 40px;
    margin: 0;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

.ifhp--compact .ifhp__reg-tags {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    min-width: 0;
}

.ifhp--compact .ifhp__reg,
.ifhp--compact .ifhp__reg-more {
    display: inline-block;
    min-width: 0;
    max-width: 40%;
    margin: 0;
    padding: 5px 8px;
    overflow: hidden;
    color: #1767a5;
    background: #edf7ff;
    border: 1px solid #d5eafb;
    border-radius: 7px;
    box-shadow: none;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ifhp--compact .ifhp__reg-more {
    flex-shrink: 0;
    min-width: 36px;
    max-width: none;
    min-height: 36px;
    padding: 7px 6px;
    color: #007bd4;
    background: #dff1ff;
    cursor: pointer;
}

.ifhp--compact .ifhp__reg-more:hover,
.ifhp--compact .ifhp__reg-more[aria-expanded="true"] {
    color: #fff;
    background: #008ef0;
    border-color: #008ef0;
}

.ifhp--compact .ifhp__value {
    font-weight: 700;
    line-height: 1.4;
}

.ifhp--compact .ifhp__deposit-cell .ifhp__value {
    display: inline-block;
    padding: 7px 12px;
    color: #063658;
    background: #e7f5ff;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 800;
}

.ifhp--compact .ifhp__missing {
    color: #54758e;
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ifhp--compact .ifhp__profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
    margin: 0;
    padding: 10px 14px;
    color: #fff;
    background: #0098ff;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.ifhp--compact .ifhp__profile:hover {
    color: #fff;
    background: #0080dd;
}

.ifhp--compact .ifhp__arrow {
    display: inline-block;
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    vertical-align: middle;
}

.ifhp--compact .ifhp__footer {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    width: auto;
    min-height: 0;
    margin: 16px 0 0;
    padding: 0;
    color: var(--ifhp-muted);
    background: none;
    border: 0;
    box-shadow: none;
    font-size: 12px;
}

.ifhp--compact .ifhp__footer p {
    max-width: 680px;
    margin: 0;
    color: inherit;
    font: inherit;
}

.ifhp--compact .ifhp__footer > a {
    flex-shrink: 0;
    color: #0089ed;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.ifhp--compact :is(a, button, [tabindex]):focus-visible,
.ifhp__reg-popover :is(a, button):focus-visible,
.ifhp__reg-popover:focus-visible {
    outline: 3px solid #0085e8;
    outline-offset: 3px;
}

.ifhp--compact .ifhp__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

.ifhp__reg-popover {
    position: fixed;
    z-index: 100000;
    left: var(--ifhp-pop-left, 12px);
    top: var(--ifhp-pop-top, 12px);
    width: 350px;
    max-width: calc(100vw - 24px);
    max-height: min(400px, calc(100dvh - 24px));
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 16px;
    color: #08243d;
    background: #fff;
    border: 1px solid #c8e1f4;
    border-radius: 14px;
    box-shadow: 0 12px 42px #00274430;
    font: 14px/1.5 Inter, Arial, sans-serif;
    text-align: left;
    overflow-wrap: anywhere;
}

.ifhp__reg-popover .ifhp__popover-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ifhp__reg-popover .ifhp__popover-heading strong {
    color: #08243d;
    font-size: 16px;
    font-weight: 800;
}

.ifhp__reg-popover [data-ifhp-reg-close] {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -6px -6px -6px 0;
    padding: 0;
    color: #385d7c;
    background: #f0f7fd;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
    font: 25px/1 Arial, sans-serif;
    cursor: pointer;
}

.ifhp__reg-popover > p {
    margin: 8px 0 12px;
    color: #64788f;
    font-size: 12px;
}

.ifhp__reg-popover > ul {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.ifhp__reg-popover > ul > li {
    margin: 0;
    padding: 8px 10px;
    color: #264e6c;
    background: #f1f8fe;
    border-radius: 7px;
    list-style: none;
    font-size: 13px;
}

.ifhp__reg-popover > a {
    color: #0084e4;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 1099px) {
    .ifhp--compact .ifhp__table,
    .ifhp--compact .ifhp__table tbody {
        display: block;
    }

    .ifhp--compact .ifhp__surface {
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .ifhp--compact .ifhp__table {
        background: transparent;
    }

    .ifhp--compact .ifhp__table thead {
        display: none;
    }

    .ifhp--compact .ifhp__table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ifhp--compact .ifhp__table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "company company" "founded regulation" "deposit spread" "leverage action";
        gap: 18px 16px;
        align-content: start;
        padding: 20px;
        border: 1px solid var(--ifhp-border);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 4px 16px #072c4d06;
    }

    .ifhp--compact .ifhp__table tbody tr > :is(th, td) {
        display: block;
        width: auto;
        min-width: 0;
        height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .ifhp--compact .ifhp__table tbody .ifhp__company {
        grid-area: company;
        padding-bottom: 14px;
        border-bottom: 1px solid #e4eff8;
    }

    .ifhp--compact .ifhp__founded { grid-area: founded; }
    .ifhp--compact .ifhp__reg-cell { grid-area: regulation; }
    .ifhp--compact .ifhp__deposit-cell { grid-area: deposit; }
    .ifhp--compact .ifhp__spread-cell { grid-area: spread; }
    .ifhp--compact .ifhp__leverage-cell { grid-area: leverage; }
    .ifhp--compact .ifhp__action { grid-area: action; align-self: end; }

    .ifhp--compact [data-label]::before {
        display: block;
        margin-bottom: 7px;
        color: #64788f;
        content: attr(data-label);
        font-size: 11px;
        font-weight: 500;
    }

    .ifhp--compact .ifhp__reg-tags {
        gap: 4px;
    }

    .ifhp--compact .ifhp__reg {
        padding-inline: 5px;
        font-size: 10px;
    }

    .ifhp--compact .ifhp__reg-more {
        min-width: 30px;
        padding-inline: 4px;
        font-size: 11px;
    }

    .ifhp--compact .ifhp__profile {
        width: 100%;
        padding-inline: 8px;
        font-size: 11px;
    }

    .ifhp--compact .ifhp__footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .ifhp--compact {
        padding-block: 30px;
    }

    .ifhp--compact .ifhp__container {
        width: calc(100% - 32px);
    }

    .ifhp--compact .ifhp__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 18px;
    }

    .ifhp--compact .ifhp__heading h2 {
        font-size: 28px;
        letter-spacing: -.7px;
    }

    .ifhp--compact .ifhp__heading p {
        font-size: 13px;
    }

    .ifhp--compact .ifhp__switch {
        display: flex;
        width: 100%;
    }

    .ifhp--compact .ifhp__switch button {
        flex: 1;
        padding-inline: 8px;
        font-size: 12px;
    }

    .ifhp--compact .ifhp__table tbody {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ifhp--compact .ifhp__table tbody tr {
        padding: 18px;
    }

    .ifhp--compact .ifhp__reg {
        font-size: 11px;
    }

    .ifhp--compact .ifhp__footer {
        gap: 12px;
        font-size: 11px;
    }

    .ifhp--compact .ifhp__footer > a {
        flex-shrink: 1;
    }
}
