#tm-price-chatbots,
#tm-price-chatbots * {
    box-sizing: border-box;
}

#tm-price-chatbots {
    --tm-price-female: #ec4899;
    --tm-price-male: #8b5cf6;
    --tm-price-panel: #180923;
    --tm-price-active: var(--tm-price-female);
    --tm-price-female-bottom: 132px;
    --tm-price-male-bottom: 238px;
    position: fixed;
    right: 24px;
    bottom: 0;
    width: 0;
    height: 0;
    z-index: 999998;
    color: #fff;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.45;
    pointer-events: none;
}

/* L'assistant survolé passe devant les autres fenêtres pour garder son libellé visible. */
#tm-price-chatbots:has(.tm-price__launcher:hover),
#tm-price-chatbots:has(.tm-price__launcher:focus-visible) {
    z-index: 2147483646 !important;
}

#tm-price-chatbots.tm-price--left {
    right: auto;
    left: 24px;
}

#tm-price-chatbots.tm-price--female {
    --tm-price-active: var(--tm-price-female);
}

#tm-price-chatbots.tm-price--male {
    --tm-price-active: var(--tm-price-male);
}

#tm-price-chatbots [hidden] {
    display: none !important;
}

#tm-price-chatbots .tm-price__launcher {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    display: grid !important;
    place-items: center !important;
    width: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    color: #fff !important;
    cursor: pointer !important;
    line-height: 1 !important;
    outline-offset: 5px;
    pointer-events: auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    isolation: isolate;
    z-index: 3;
}

#tm-price-chatbots.tm-price--left .tm-price__launcher {
    right: auto !important;
    left: 0 !important;
}

#tm-price-chatbots .tm-price__launcher--female {
    bottom: var(--tm-price-female-bottom) !important;
    --tm-price-launcher: var(--tm-price-female);
}

#tm-price-chatbots .tm-price__launcher--male {
    bottom: var(--tm-price-male-bottom) !important;
    --tm-price-launcher: var(--tm-price-male);
}

#tm-price-chatbots .tm-price__launcher::before,
#tm-price-chatbots .tm-price__launcher::after {
    content: none !important;
}

#tm-price-chatbots .tm-price__launcher > img {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 90px !important;
    height: 90px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: drop-shadow(0 0 6px var(--tm-price-launcher)) drop-shadow(0 0 14px color-mix(in srgb, var(--tm-price-launcher) 70%, transparent));
    transform: translateZ(0) scale(1);
    transition: filter .22s ease, transform .22s ease;
    pointer-events: none;
}

@supports not (color: color-mix(in srgb, red, blue)) {
    #tm-price-chatbots .tm-price__launcher > img {
        filter: drop-shadow(0 0 6px var(--tm-price-launcher)) drop-shadow(0 0 14px var(--tm-price-launcher));
    }
}

#tm-price-chatbots .tm-price__launcher:hover > img,
#tm-price-chatbots .tm-price__launcher:focus-visible > img,
#tm-price-chatbots .tm-price__launcher[aria-expanded="true"] > img {
    filter: drop-shadow(0 0 8px var(--tm-price-launcher)) drop-shadow(0 0 22px var(--tm-price-launcher));
    transform: translateY(-2px) scale(1.06);
}

#tm-price-chatbots .tm-price__pulse {
    position: absolute;
    z-index: 1;
    inset: 10px;
    border: 1px solid color-mix(in srgb, var(--tm-price-launcher) 80%, #fff);
    border-radius: 50%;
    box-shadow: 0 0 16px color-mix(in srgb, var(--tm-price-launcher) 70%, transparent);
    opacity: .42;
    animation: tm-price-pulse 2.8s ease-out infinite;
    pointer-events: none;
}

#tm-price-chatbots .tm-price__tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    box-sizing: border-box;
    width: max-content;
    max-width: min(360px, calc(100vw - 140px));
    padding: 8px 15px;
    border: 1px solid color-mix(in srgb, var(--tm-price-launcher) 70%, #fff);
    border-radius: 999px;
    background: rgba(20, 4, 32, .94);
    box-shadow: 0 7px 24px rgba(0, 0, 0, .35), 0 0 14px color-mix(in srgb, var(--tm-price-launcher) 35%, transparent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
    opacity: 0;
    transform: translate(7px, -50%);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
    z-index: 4;
}

@media (min-width: 861px) {
    #tm-price-chatbots .tm-price__tooltip {
        white-space: nowrap;
    }
}

@media (min-width: 681px) and (max-width: 860px) {
    #tm-price-chatbots .tm-price__tooltip {
        width: 240px;
        max-width: 240px;
        border-radius: 18px;
    }
}

#tm-price-chatbots.tm-price--left .tm-price__tooltip {
    right: auto;
    left: calc(100% + 10px);
    transform: translate(-7px, -50%);
}

#tm-price-chatbots .tm-price__launcher:hover .tm-price__tooltip,
#tm-price-chatbots .tm-price__launcher:focus-visible .tm-price__tooltip {
    opacity: 1;
    transform: translate(0, -50%);
}

#tm-price-chatbots .tm-price__panel {
    position: absolute;
    right: 112px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 150px));
    max-height: min(700px, calc(100vh - 42px));
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--tm-price-active) 68%, #fff);
    border-radius: 24px;
    background:
        radial-gradient(circle at 12% -8%, color-mix(in srgb, var(--tm-price-active) 35%, transparent), transparent 34%),
        linear-gradient(155deg, color-mix(in srgb, var(--tm-price-panel) 91%, #000), color-mix(in srgb, var(--tm-price-panel) 78%, #07010c));
    box-shadow: 0 24px 70px rgba(0, 0, 0, .58), 0 0 30px color-mix(in srgb, var(--tm-price-active) 24%, transparent), inset 0 0 24px rgba(255, 255, 255, .035);
    color: #fff;
    pointer-events: auto;
    z-index: 1;
    transform-origin: bottom right;
    animation: tm-price-open .2s ease-out both;
}

#tm-price-chatbots.tm-price--left .tm-price__panel {
    right: auto;
    left: 112px;
    transform-origin: bottom left;
}

#tm-price-chatbots .tm-price__header {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 82px;
    padding: 12px 52px 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(90deg, color-mix(in srgb, var(--tm-price-active) 22%, transparent), transparent);
}

#tm-price-chatbots .tm-price__header-avatar {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    margin: 0 10px 0 0;
    padding: 2px;
    object-fit: contain;
    border: 1px solid color-mix(in srgb, var(--tm-price-active) 84%, #fff) !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, color-mix(in srgb, var(--tm-price-active) 15%, transparent), transparent 72%) !important;
    box-shadow: inset 0 0 14px color-mix(in srgb, var(--tm-price-active) 20%, transparent), 0 0 17px color-mix(in srgb, var(--tm-price-active) 56%, transparent) !important;
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--tm-price-active) 68%, transparent));
}

#tm-price-chatbots .tm-price__identity {
    display: grid;
    min-width: 0;
}

#tm-price-chatbots .tm-price__identity strong {
    overflow: hidden;
    color: #fff;
    font-size: 19px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tm-price-chatbots .tm-price__identity span {
    margin-top: 3px;
    color: color-mix(in srgb, var(--tm-price-active) 68%, #fff);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

#tm-price-chatbots .tm-price__close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    display: grid !important;
    place-items: center !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    appearance: none !important;
    border: 1px solid var(--tm-price-active) !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--tm-price-active) 9%, transparent) !important;
    box-shadow: 0 0 10px color-mix(in srgb, var(--tm-price-active) 24%, transparent) !important;
    color: var(--tm-price-active) !important;
    cursor: pointer;
}

#tm-price-chatbots .tm-price__close:hover,
#tm-price-chatbots .tm-price__close:focus-visible {
    border-color: var(--tm-price-active) !important;
    background: color-mix(in srgb, var(--tm-price-active) 28%, transparent) !important;
    box-shadow: 0 0 13px color-mix(in srgb, var(--tm-price-active) 38%, transparent) !important;
    outline: none !important;
}

#tm-price-chatbots .tm-price__close svg {
    width: 18px;
    height: 18px;
    color: var(--tm-price-active) !important;
    fill: currentColor !important;
}

#tm-price-chatbots .tm-price__close svg path {
    fill: currentColor !important;
}

#tm-price-chatbots .tm-price__body {
    min-height: 180px;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-color: var(--tm-price-active) transparent;
}

#tm-price-chatbots .tm-price__messages,
#tm-price-chatbots .tm-price__choices {
    display: grid;
    min-width: 0;
    width: 100%;
    gap: 9px;
}

#tm-price-chatbots .tm-price__choices {
    grid-template-columns: 1fr;
    margin-top: 12px;
}

#tm-price-chatbots .tm-price__message {
    width: fit-content;
    max-width: 94%;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px 17px 17px 17px;
    background: rgba(255, 255, 255, .075);
    color: #fff;
    font-size: 14px;
}

#tm-price-chatbots .tm-price__choice {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 9px 13px !important;
    appearance: none !important;
    border: 1px solid color-mix(in srgb, var(--tm-price-active) 43%, rgba(255, 255, 255, .18)) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .055) !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

#tm-price-chatbots .tm-price__choice--tariff {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    gap: 7px !important;
}

#tm-price-chatbots .tm-price__choice-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#tm-price-chatbots .tm-price__choice-value {
    color: color-mix(in srgb, var(--tm-price-active) 68%, #fff);
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#tm-price-chatbots .tm-price__choice::after {
    content: "›";
    margin-left: 10px;
    color: color-mix(in srgb, var(--tm-price-active) 70%, #fff);
    font-size: 20px;
    line-height: 1;
}

#tm-price-chatbots .tm-price__choice--tariff::after {
    margin-left: 2px;
}

#tm-price-chatbots .tm-price__choice:hover,
#tm-price-chatbots .tm-price__choice:focus-visible {
    border-color: var(--tm-price-active) !important;
    background: color-mix(in srgb, var(--tm-price-active) 18%, transparent) !important;
    transform: translateY(-1px);
}

#tm-price-chatbots .tm-price__choice--featured {
    border-color: color-mix(in srgb, var(--tm-price-active) 72%, #fff) !important;
    background: linear-gradient(100deg, color-mix(in srgb, var(--tm-price-active) 28%, transparent), rgba(255, 255, 255, .07)) !important;
}

#tm-price-chatbots .tm-price__tariff {
    display: grid;
    gap: 7px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--tm-price-active) 65%, #fff);
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tm-price-active) 20%, transparent), rgba(255, 255, 255, .055));
    box-shadow: inset 0 0 24px color-mix(in srgb, var(--tm-price-active) 8%, transparent);
}

#tm-price-chatbots .tm-price__tariff-label {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

#tm-price-chatbots .tm-price__tariff-value {
    color: color-mix(in srgb, var(--tm-price-active) 62%, #fff);
    font-size: clamp(15px, 4.3vw, 24px);
    line-height: 1.15;
    overflow-wrap: normal;
    word-break: normal;
    white-space: nowrap;
}

#tm-price-chatbots .tm-price__tariff-list {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--tm-price-active) 48%, #fff);
    border-radius: 17px;
    background: rgba(255, 255, 255, .045);
}

#tm-price-chatbots .tm-price__tariff-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    font-size: 13px;
}

#tm-price-chatbots .tm-price__tariff-row:last-child {
    border-bottom: 0;
}

#tm-price-chatbots .tm-price__tariff-row strong {
    min-width: 0;
    max-width: none;
    color: color-mix(in srgb, var(--tm-price-active) 67%, #fff);
    font-size: 11.5px;
    text-align: right;
    overflow-wrap: normal;
    word-break: normal;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#tm-price-chatbots .tm-price__asterisk-note {
    margin: 3px 2px 0 !important;
    padding: 9px 10px;
    border-left: 2px solid var(--tm-price-active);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--tm-price-active) 9%, transparent);
    color: rgba(255, 255, 255, .72);
    font-size: 10.5px;
    line-height: 1.45;
}

#tm-price-chatbots .tm-price__note {
    padding: 11px 12px;
    border-left: 3px solid var(--tm-price-active);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
}

#tm-price-chatbots .tm-price__note strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
}

#tm-price-chatbots .tm-price__note p {
    margin: 0;
}

#tm-price-chatbots .tm-price__privacy {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin: 0;
    padding: 9px 14px 11px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .6);
    font-size: 10px;
    line-height: 1.35;
}

#tm-price-chatbots .tm-price__privacy svg {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    margin-top: 1px;
    fill: var(--tm-price-active);
}

@keyframes tm-price-open {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tm-price-pulse {
    0%, 52%, 100% { opacity: .35; transform: scale(.88); }
    74% { opacity: 0; transform: scale(1.3); }
}

@media (max-width: 680px) {
    #tm-price-chatbots {
        right: 14px;
    }

    #tm-price-chatbots.tm-price--left {
        right: auto;
        left: 14px;
    }

    #tm-price-chatbots .tm-price__launcher {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        height: 78px !important;
        min-height: 78px !important;
        max-height: 78px !important;
    }

    #tm-price-chatbots .tm-price__launcher > img {
        width: 78px !important;
        height: 78px !important;
    }

    #tm-price-chatbots .tm-price__panel {
        position: fixed;
        right: 102px;
        bottom: 12px;
        left: auto;
        width: min(400px, calc(100vw - 116px));
        max-height: calc(100dvh - 24px);
        border-radius: 21px;
        transform-origin: right bottom;
    }

    #tm-price-chatbots.tm-price--left .tm-price__panel {
        right: auto;
        left: 102px;
        transform-origin: left bottom;
    }

    #tm-price-chatbots .tm-price__header {
        min-height: 76px;
        padding-left: 12px;
    }

    #tm-price-chatbots .tm-price__header-avatar {
        width: 58px;
        height: 58px;
    }

    #tm-price-chatbots .tm-price__body {
        padding: 13px 16px 13px 13px;
    }

    #tm-price-chatbots .tm-price__tariff-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        padding: 9px 10px;
        font-size: 12px;
    }

    #tm-price-chatbots .tm-price__tariff-row strong {
        min-width: 0;
        max-width: none;
        font-size: 10.5px;
        text-align: right;
    }

    #tm-price-chatbots .tm-price__choice--tariff {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        gap: 5px !important;
        padding-right: 10px !important;
    }

    #tm-price-chatbots .tm-price__choice-label {
        font-size: 12px;
    }

    #tm-price-chatbots .tm-price__choice-value {
        font-size: 10.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tm-price-chatbots *,
    #tm-price-chatbots *::before,
    #tm-price-chatbots *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/*
 * 1.0.7 - Transparence stricte des deux lanceurs.
 * Les panneaux ouverts conservent leur fond afin de garantir la lisibilité.
 */
#tm-price-chatbots,
#tm-price-chatbots .tm-price__launcher,
#tm-price-chatbots .tm-price__launcher:hover,
#tm-price-chatbots .tm-price__launcher:focus,
#tm-price-chatbots .tm-price__launcher:focus-visible,
#tm-price-chatbots .tm-price__launcher:active {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#tm-price-chatbots .tm-price__launcher::before,
#tm-price-chatbots .tm-price__launcher::after,
#tm-price-chatbots .tm-price__launcher > img {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    mix-blend-mode: normal !important;
    opacity: 1 !important;
}

#tm-price-chatbots .tm-price__pulse {
    display: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 0 !important;
    animation: none !important;
}

/* 1.1.0 - Aucun lanceur incomplet avant le décodage des WebP. */
#tm-price-chatbots:not(.tm-assets-ready) .tm-price__launcher {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

#tm-price-chatbots.tm-assets-ready .tm-price__launcher {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
