﻿.float-tools {
    pointer-events: none;
    position: fixed;
    z-index: 60;
    right: 0;
    top: 50%;
    display: flex;
    width: 60px;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: flex-end;
    color: #fff;
}

.float-tool {
    pointer-events: auto;
    position: relative;
    display: flex;
    width: 60px;
    min-height: 60px;
    /* padding: 15px 0 13px; */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    background: #1d83dd;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
    transition: background 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

.float-tool:first-child {
    border-radius: 8px 0 0 8px;
}

.float-tool:nth-child(2) {
    border-radius: 8px 8px 0 0;
    gap:10px;
}

.float-tool:last-child {
    border-bottom: 0;
    border-radius: 0 0 8px 8px;
}

.float-upload {
    width: 80px;
    /* min-height: 90px; */
    margin: 0 0 100px;
    /* padding: 22px 0 18px; */
    border-bottom: 0;
    border-radius: 8px 0 0 8px;
}

.float-tool:hover,
.float-tool:focus-visible,
.float-tool.is-active {
    color: #fff;
    background: #1d83dd;
    filter: brightness(1.04);
}

.float-tool:hover .float-icon,
.float-tool:focus-visible .float-icon {
    transform: none;
}

.float-tools .float-tool:hover .float-icon,
.float-tools .float-tool:focus-visible .float-icon {
    transform: none;
}

.float-tool:focus-visible {
    outline: 2px solid rgba(29, 131, 221, 0.35);
    outline-offset: 3px;
}

.float-icon {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
}

.float-tool:not(.float-upload) .float-icon {
    width: 24px;
    height: 24px;
}

.float-icon svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.float-icon svg path {
    transition: fill 0.24s ease, stroke 0.24s ease;
}

.float-label {
    display: block;
    color: inherit;
    white-space: nowrap;
}

.float-top {
    font-family: inherit;
}

.float-top .float-icon {
    width: 16px;
    height: 16px;
}

.float-top {
    flex-direction: row;
    gap: 4px;
    min-height: 60px;
    padding: 0;
}

.float-contact-tool {
    right: -238px;
    width: 298px;
    min-height: 60px;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: row;
    gap: 0;
    overflow: visible;
    transition: right 0.5s ease, filter 0.24s ease;
}

.float-contact-tool:hover,
.float-contact-tool:focus-visible {
    right: 0;
    border-radius: 18px 0 0 18px;
}

.float-main {
    z-index: 1;
    display: flex;
    width: 60px;
    min-height: 60px;
    flex: 0 0 60px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    background: #1d83dd;
}

.float-contact-tool:hover .float-main,
.float-contact-tool:focus-visible .float-main {
    border-radius: 18px 0 0 18px;
}

.float-panel {
    position: static;
    display: flex;
    width: 258px;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: #1d83dd;
    border-left: 1px solid rgba(255, 255, 255, 0.72);
    opacity: 1;
    pointer-events: auto;
    transition: border-radius 0.5s ease;
}

.float-panel-inner {
    display: block;
    padding: 0 18px;
    color: inherit;
    font-size: 16px;
    line-height: 1.35;
    white-space: nowrap;
}

.float-contact-tool:hover .float-panel,
.float-contact-tool:focus-visible .float-panel {
    border-radius: 0 18px 18px 0;
}

@media (max-width: 767px) {
    body {
        padding-bottom: 60px;
    }

    .float-tools {
    pointer-events: none;
        right: 0;
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        transform: none;
        flex-direction: row;
        align-items: stretch;
        background: #1d83dd;
        box-shadow: 0 -8px 18px rgba(13, 67, 128, 0.16);
    }

    .float-tool,
    .float-tool:hover,
    .float-tool:focus-visible,
    .float-tool.is-active,
    .float-upload {
        width: auto;
        flex: 1 1 0;
        min-width: 0;
        min-height: 60px;
        margin: 0;
        padding: 8px 0 7px;
        border-right: 1px solid rgba(255, 255, 255, 0.35);
        border-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        font-size: 12px;
        gap: 4px;
    }
    .float-upload {
         gap: 8px !important;
    }

    .float-tool:last-child {
        border-right: 0;
        border-radius: 0;
    }

    .float-icon,
    .float-tool:not(.float-upload) .float-icon,
    .float-top .float-icon {
        width: 20px;
        height: 20px;
    }

    .float-top {
        flex-direction: column;
    }

    .float-contact-tool,
    .float-contact-tool:hover,
    .float-contact-tool:focus-visible {
        right: auto;
        width: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .float-main {
        width: 100%;
        min-height: auto;
        flex: 0 1 auto;
        gap: 4px;
        background: transparent;
    }

    .float-contact-tool:hover .float-main,
    .float-contact-tool:focus-visible .float-main {
        border-radius: 0;
    }

    .float-panel {
        display: none;
    }
}


