.pxf .pxf-nav {
    --ps-chat-right: 20px;
}

.pxf .ps-chat-launch {
    position: absolute;
    inset-inline-end: var(--ps-chat-right);
    top: 50%;
    transform: translateY(-50%);
    min-width: 60px;
    min-height: 44px;
    border: 1px solid #536b88;
    border-radius: 10px;
    background: #102541;
    color: #edf6ff;
    font-weight: 700;
}

@media (max-width: 1370px) {
    .pxf .pxf-nav-inner {
        padding-inline-end: max(28px, calc(94px - (100vw - min(100vw, 1240px)) / 2));
    }
}

@media (max-width: 560px) {
    .pxf .pxf-nav-inner {
        gap: 6px;
        padding-inline-end: 90px;
    }

    .pxf .pxh-brand-lockup img {
        max-width: clamp(124px, 39vw, 180px);
        height: auto;
    }

    .pxf .pxf-nav {
        --ps-chat-right: 10px;
    }
}

#ps-chat-consent {
    box-sizing: border-box;
    width: min(30rem, calc(100% - 24px));
    max-height: calc(100% - 24px);
    padding: 1.3rem;
    border: 1px solid #42638a;
    border-radius: 16px;
    background: #101e35;
    color: #edf6ff;
    font: 1rem/1.55 system-ui, sans-serif;
}

#ps-chat-consent::backdrop { background: #061122b3; }
#ps-chat-consent h2 { margin: 0; font: 700 1.25rem/1.3 system-ui, sans-serif; }
#ps-chat-consent p { margin: .75rem 0 0; }
#ps-chat-consent a { color: #afe3ff; text-decoration: underline; }
.ps-chat-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }

#ps-chat-consent button,
.ps-chat-settings {
    min-height: 44px;
    padding: .45rem .7rem;
    border: 1px solid #7198bc;
    border-radius: 8px;
    color: #edf6ff;
    background: #1e3d60;
    font: inherit;
    font-weight: 650;
}

.ps-chat-launch, .ps-chat-settings, #ps-chat-consent button { cursor: pointer; }
.ps-chat-launch[hidden], .ps-chat-settings[hidden] { display: none; }

/* Le titre du dialogue conserve la couleur claire de son propre panneau. */
#ps-chat-consent #ps-chat-title { color: inherit; }
