/* JEDI floating consultation CTA — global component */
.jedi-floating-consultation {
    --jedi-float-copper: #b64d31;
    --jedi-float-copper-deep: #913b29;
    position: fixed;
    z-index: 1200;
    right: max(22px, env(safe-area-inset-right, 0px) + 16px);
    bottom: max(22px, env(safe-area-inset-bottom, 0px) + 16px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 62px;
    max-width: calc(100vw - 32px);
    padding: 9px 10px 9px 22px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    background: linear-gradient(142deg, #d16a45 0%, #bb5234 42%, #a6442e 72%, #913b29 100%);
    color: #fffaf5;
    box-shadow:
        0 18px 40px rgba(16, 42, 71, .25),
        0 7px 16px rgba(122, 49, 31, .22),
        inset 0 1px 0 rgba(255, 255, 255, .38),
        inset 0 -3px 0 rgba(73, 25, 17, .22);
    font: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    animation: jedi-consultation-arrive .72s cubic-bezier(.2, .75, .25, 1) .18s both;
    transition:
        transform .28s cubic-bezier(.2, .75, .25, 1),
        box-shadow .28s ease,
        filter .28s ease;
}

.jedi-floating-consultation::before {
    position: absolute;
    z-index: -1;
    inset: 1px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: inherit;
    background: linear-gradient(112deg, rgba(255, 255, 255, .12), transparent 40%, rgba(72, 22, 12, .08));
    content: "";
    pointer-events: none;
}

.jedi-floating-consultation::after {
    position: absolute;
    z-index: 0;
    top: -80%;
    bottom: -80%;
    left: -42%;
    width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .21), transparent);
    content: "";
    pointer-events: none;
    transform: translateX(-150%) rotate(18deg);
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.jedi-floating-consultation__label {
    position: relative;
    z-index: 1;
    display: block;
    color: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.018em;
    text-shadow: 0 1px 1px rgba(67, 25, 17, .18);
    white-space: nowrap;
}

.jedi-floating-consultation__arrow {
    position: relative;
    z-index: 1;
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .09));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .32),
        0 3px 8px rgba(75, 25, 16, .17);
    color: #fffaf5;
    transition: transform .28s ease, background .28s ease;
}

.jedi-floating-consultation__arrow svg {
    display: block;
    width: 17px;
    height: 17px;
}

.jedi-floating-consultation:hover {
    color: #fffaf5;
    filter: saturate(1.06) brightness(1.035);
    transform: translate3d(0, -4px, 0);
    box-shadow:
        0 23px 48px rgba(16, 42, 71, .29),
        0 10px 20px rgba(122, 49, 31, .25),
        inset 0 1px 0 rgba(255, 255, 255, .4),
        inset 0 -3px 0 rgba(73, 25, 17, .2);
}

.jedi-floating-consultation:hover::after {
    transform: translateX(520%) rotate(18deg);
}

.jedi-floating-consultation:hover .jedi-floating-consultation__arrow {
    background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .15));
    transform: translate3d(2px, -1px, 0);
}

.jedi-floating-consultation:active {
    transform: translate3d(0, -1px, 0) scale(.99);
}

.jedi-floating-consultation:focus-visible {
    outline: 3px solid rgba(201, 123, 82, .72);
    outline-offset: 4px;
}

@keyframes jedi-consultation-arrive {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0) scale(.97);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@media (max-width: 600px) {
    .jedi-floating-consultation {
        right: max(15px, env(safe-area-inset-right, 0px) + 10px);
        bottom: max(16px, env(safe-area-inset-bottom, 0px) + 12px);
        min-height: 56px;
        gap: 11px;
        padding: 8px 8px 8px 17px;
    }

    .jedi-floating-consultation__label {
        font-size: 13px;
        letter-spacing: -.015em;
    }

    .jedi-floating-consultation__arrow {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

@media (max-width: 360px) {
    .jedi-floating-consultation {
        min-height: 52px;
        gap: 9px;
        padding-left: 14px;
    }

    .jedi-floating-consultation__label {
        font-size: 12px;
    }

    .jedi-floating-consultation__arrow {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jedi-floating-consultation,
    .jedi-floating-consultation::after,
    .jedi-floating-consultation__arrow {
        animation: none !important;
        transition: none !important;
    }
}
