/* B+ presentation fixes only: active sorting and existing help popovers. */
body[data-heritage="bplus"] #content .ds-filter a.sort-type-asc,
body[data-heritage="bplus"] #content .ds-filter a.sort-type-desc,
body[data-heritage="bplus"] #content .ds-filter a.sort-type-asc:hover,
body[data-heritage="bplus"] #content .ds-filter a.sort-type-desc:hover {
    background: none;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--ds-blue, #3147ad);
    text-align: left;
    white-space: normal;
}
body[data-heritage="bplus"] #content .ds-sort-direction {font-size: 12px; white-space: normal;}
body[data-heritage="bplus"] #content .d-tooltip-wrapper,
body[data-heritage="bplus"] #content .doctor_price .DiscountToolTip {
    box-sizing: border-box;
    width: 280px !important;
    max-width: calc(100vw - 48px) !important;
    height: auto;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: left;
    font: 400 13px/1.5 Roboto, Arial, sans-serif;
    color: var(--ds-muted, #566680);
    z-index: 60;
}
body[data-heritage="bplus"] #content .d-tooltip-wrapper {left: 0; right: auto; top: 100%;}
body[data-heritage="bplus"] #content .d-tooltip-body,
body[data-heritage="bplus"] #content .d-tooltip-body p,
body[data-heritage="bplus"] #content .d-tooltip-body li {
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: left;
    font: inherit;
}
body[data-heritage="bplus"] #content .d-tooltip-body {display: block; padding: 12px 14px;}
body[data-heritage="bplus"] #content .d-tooltip-body h4 {margin: 0 0 8px; font-size: 14px; line-height: 1.4;}
body[data-heritage="bplus"] #content .d-tooltip-body p {margin: 0 0 8px; padding: 0;}
body[data-heritage="bplus"] #content .doctor_price {position: relative;}
body[data-heritage="bplus"] #content .doctor_price > span[style*="position"] {position: static !important;}
body[data-heritage="bplus"] #content .doctor_price .DiscountToolTip {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
}
body[data-heritage="bplus"] #content .doctor_price .DiscountToolTip .d-tooltip-arr {left: auto; right: 18px;}
@media (max-width: 767px) {
    body[data-heritage="bplus"] #content .d-tooltip-wrapper {width: min(280px, calc(100vw - 160px)) !important;}
}
