/* Keep controls inside their actual column, including narrow desktop sidebars. */
body .sevice-link div a,
body .btn-center a {
    box-sizing: border-box;
    min-width: min(360px, 100%);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* The provider's button is fixed at 320x50. Its complete frame is scaled locally. */
.na-payment-embed {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 50px;
    margin: 0 auto;
    overflow: hidden;
}
.na-payment-embed > iframe {
    display: block;
    width: 320px !important;
    max-width: none !important;
    height: 50px;
    border: 0;
    transform-origin: top left;
    transform: scale(var(--na-payment-scale, 1));
}

/* An opacity-zero pseudo-element still creates scrollable overflow. */
.companyhub-companies-list .companyhub-companies-list__trust::after {
    display: none;
}
.companyhub-companies-list .companyhub-companies-list__trust:hover::after,
.companyhub-companies-list .companyhub-companies-list__trust:focus-visible::after {
    display: block;
}
@media (max-width: 991.98px) {
    body .icms-widget__content_list.content_list.tiled-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body .tiled-2 > .tiled-2_1tem {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .companyhub-companies-list .companyhub-companies-list__title {
        position: relative;
    }
    .companyhub-companies-list .companyhub-companies-list__trust {
        position: static;
    }
    .companyhub-companies-list .companyhub-companies-list__trust::after,
    .companyhub-companies-list .companyhub-companies-list__trust:hover::after,
    .companyhub-companies-list .companyhub-companies-list__trust:focus-visible::after {
        box-sizing: border-box;
        left: 0;
        right: 0;
        top: calc(100% + 7px);
        width: auto;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        transform: none;
    }
}
@media (max-width: 575.98px) {
    body .icms-widget__content_list.content_list.tiled-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 767.98px) {
    .content_item .btn,
    .icms-widget .btn,
    .icms-filter-panel .btn {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* Equal person-card columns; intrinsic text widths must not size the cards. */
body .content_list.person_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}
body .person_list > .person_list_item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}
@media (max-width: 767.98px) {
    body .content_list.person_list {
        grid-template-columns: minmax(0, 1fr);
    }
}
