/* Homepage trust row is desktop-only; keep the existing mobile homepage intact. */
.bp-trust-row {
    display: none;
}

.bp-trust-popover[hidden] {
    display: none !important;
}

@media (min-width: 768px) {
    .bp-guide-card--trust > .bp-guide-line {
        box-sizing: border-box;
        min-height: 54px !important;
        padding: 9px 0;
    }

    .bp-guide-card--trust > .bp-guide-line + .bp-guide-line {
        border-top: 1px solid #e7eff8;
    }

    .bp-guide-line.bp-trust-row {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        gap: 10px !important;
        font-size: 14px !important;
    }

    .bp-trust-row .bp-guide-label {
        flex: 0 0 auto;
        margin-right: 0;
    }

    .bp-trust-message {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .bp-trust-trigger,
    .bp-trust-bookmark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 35px;
        border: 0;
        border-radius: 6px;
        padding: 0 3px;
        background: transparent;
        color: #0878e6;
        font: inherit;
        line-height: 1.5;
        white-space: nowrap;
        cursor: pointer;
    }

    .bp-trust-trigger {
        padding: 0 8px;
        background: #edf5ff;
        font-weight: 600;
        transition: background-color .15s ease;
    }

    .bp-trust-trigger:hover,
    .bp-trust-trigger[aria-expanded="true"] {
        background: #deecff;
    }

    .bp-trust-trigger:focus-visible,
    .bp-trust-bookmark:focus-visible,
    .bp-trust-popover a:focus-visible {
        outline: 2px solid #0878e6;
        outline-offset: 3px;
    }

    .bp-trust-info {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 17px;
        width: 17px;
        height: 17px;
        border: 1.4px solid currentColor;
        border-radius: 50%;
        font: 700 12px/1 Georgia, serif;
    }

    .bp-trust-links {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 22px;
        margin-left: 8px;
        padding-left: 20px;
    }

    .bp-trust-links::before,
    .bp-trust-links > .bp-trust-trigger + .bp-trust-trigger::before {
        content: "";
        position: absolute;
        top: 50%;
        width: 1px;
        height: 18px;
        background: #cbdced;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .bp-trust-links::before {
        left: 0;
    }

    .bp-trust-links > .bp-trust-trigger + .bp-trust-trigger {
        position: relative;
    }

    .bp-trust-links > .bp-trust-trigger + .bp-trust-trigger::before {
        left: -12px;
    }

    .bp-trust-bookmark {
        flex: 0 0 auto;
        gap: 7px;
        margin-left: auto;
        border: 1px solid #bddaff;
        border-radius: 999px;
        padding: 0 15px;
        background: #f8fbff;
    }

    .bp-trust-bookmark svg {
        width: 18px;
        height: 18px;
    }

    .bp-trust-bookmark:hover,
    .bp-trust-bookmark[aria-expanded="true"] {
        border-color: #0878e6;
        background: #eaf3ff;
    }

    .bp-trust-popover {
        position: fixed;
        z-index: 1040;
        width: 380px;
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
        border: 1px solid #bfdcff;
        border-radius: 12px;
        padding: 16px 18px;
        background: #fff;
        box-shadow: 0 8px 26px rgb(25 84 149 / 14%);
        color: #52677e;
        font-size: 14px;
        line-height: 1.8;
        font-weight: 400;
        text-align: left;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .bp-trust-popover::before {
        content: "";
        position: absolute;
        top: -6px;
        left: var(--bp-trust-arrow, 24px);
        width: 10px;
        height: 10px;
        border-top: 1px solid #bfdcff;
        border-left: 1px solid #bfdcff;
        background: #fff;
        transform: rotate(45deg);
    }

    /* Fit the service sentence on one line without widening other popovers. */
    #bp-trust-service {
        width: max-content;
    }

    .bp-trust-popover[data-placement="above"]::before {
        top: auto;
        bottom: -6px;
        transform: rotate(225deg);
    }

    .bp-trust-popover p {
        margin: 0;
    }

    .bp-trust-popover p + p {
        margin-top: 6px;
    }

    .bp-trust-popover a {
        color: #0878e6;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

    .bp-trust-popover kbd {
        border: 1px solid #dce8f5;
        border-radius: 4px;
        padding: 2px 5px;
        background: #f2f7fd;
        color: #143758;
        font-size: 13px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .bp-trust-links {
        gap: 12px;
        margin-left: 0;
        padding-left: 12px;
    }

    .bp-trust-links > .bp-trust-trigger + .bp-trust-trigger::before {
        left: -7px;
    }
}
