@font-face {
    font-family: "service-float-icon";
    src: url("../fonts/service-float-icon.woff2?v=1.0") format("woff2");
    font-display: block;
}

.service-float {
    width: 60px;
    height: 60px;
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 990;
    cursor: pointer;
}

.service-float__icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid #fff;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    background: #fff;
    box-sizing: border-box;
}

.service-float__icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.service-float__panel {
    position: absolute;
    right: 0;
    bottom: 0;
    padding-right: 69px;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.service-float:hover .service-float__panel {
    opacity: 1;
    transform: translateX(0);
    z-index: 9;
    visibility: visible;
    pointer-events: auto;
}

.service-float__list {
    width: 360px;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    list-style: none;
    margin: 0;
}

.service-float__item {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}

.service-float__item:last-child {
    border-bottom: none;
}

.service-float__title {
    font-size: 20px;
    margin: 0;
    color: #222;
    line-height: 1.4;
}

.service-float__text {
    font-size: 18px;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

.service-float__text--accent {
    color: #82b44c;
}

.service-float__link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 2;
}

.service-float__link:hover {
    text-decoration: underline;
}

.service-float__action {
    margin-top: 15px;
}

.service-float__item-icon i {
    font-size: 30px;
    line-height: 1;
    color: #222;
}

.service-float__glyph {
    font-family: "service-float-icon" !important;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
}

.service-float__glyph--chat:before {
    content: "\ec2e";
}

.service-float__glyph--phone:before {
    content: "\e633";
}

.service-float__glyph--email:before {
    content: "\e631";
}

.service-float__glyph--arrow:before {
    content: "\e6cf";
}

.service-float__chat-btn {
    min-width: 196px;
    display: flex;
    padding: 0;
    line-height: 52px;
    border-radius: 0;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    color: #000;
    text-decoration: none;
    box-sizing: border-box;
}

.service-float__chat-btn span,
.service-float__chat-btn i {
    position: relative;
    z-index: 3;
    color: #000;
    transition: all 0.4s ease;
}

.service-float__chat-btn i {
    font-size: 16px;
    margin-left: 10px;
}

.service-float__chat-btn:before,
.service-float__chat-btn:after {
    position: absolute;
    width: 100%;
    top: 0;
    height: 100%;
    content: "";
    box-sizing: border-box;
    transition: all 0.4s ease;
}

.service-float__chat-btn:before {
    border: 1px solid #fff;
    left: 0;
}

.service-float__chat-btn:after {
    background: linear-gradient(-270deg, #4680cb 0%, #67d78c 100%);
    right: 0;
    left: auto;
    width: 0;
}

.service-float__chat-btn:hover:after {
    width: 100%;
    left: 0;
    right: auto;
}

.service-float__chat-btn:hover:before {
    opacity: 0;
}

.service-float__chat-btn:hover span,
.service-float__chat-btn:hover i {
    color: #fff;
}

.service-chat-modal__backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 300;
    background: linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.service-chat-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 310;
    max-width: 80%;
    max-height: 90vh;
}

.service-chat-modal[hidden],
.service-chat-modal__backdrop[hidden] {
    display: none !important;
}

.service-chat-modal__dialog {
    width: 1250px;
    max-width: 100%;
    height: 70vh;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background: none;
}

.service-chat-modal__dialog iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.service-chat-modal__close {
    display: block;
    width: 30px;
    height: 30px;
    position: absolute;
    right: -40px;
    top: 10px;
    z-index: 11;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: url("../images/service-float-close.png?v=1.0") center no-repeat;
    background-size: cover;
}

@media only screen and (max-width: 1440px) {
    .service-chat-modal__dialog {
        width: 1100px;
    }
}

@media only screen and (max-width: 1280px) {
    .service-chat-modal__dialog {
        width: 940px;
    }
}

@media only screen and (max-height: 800px) {
    .service-chat-modal {
        max-width: 94%;
        max-height: calc(100vh - 16px);
        width: min(1250px, 94vw);
    }

    .service-chat-modal__dialog {
        width: 100%;
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
    }

    .service-chat-modal__close {
        right: 12px;
        top: 10px;
    }
}

@media only screen and (max-width: 768px) {
    .service-float__panel {
        right: 0;
        bottom: 80px;
        padding-right: 0;
    }

    .service-float:hover .service-float__panel {
        transform: translateX(5%);
    }

    .service-float__title {
        font-size: 16px;
    }

    .service-float__text {
        font-size: 16px;
    }

    .service-float__chat-btn {
        min-width: 130px;
        line-height: 42px;
    }

    .service-chat-modal {
        z-index: 1111;
        max-width: 100%;
        width: 100%;
    }

    .service-chat-modal__dialog {
        padding: 0;
        height: 73vh;
        width: 100%;
    }

    .service-chat-modal__close {
        right: 20px;
        top: -40px;
        z-index: 11;
    }

    .service-chat-modal__backdrop {
        z-index: 1000;
    }
}

@media only screen and (max-width: 768px) and (max-height: 800px) {
    .service-chat-modal {
        max-height: calc(100vh - 8px);
        width: 100%;
        max-width: 100%;
    }

    .service-chat-modal__dialog {
        height: calc(100vh - 8px);
        max-height: calc(100vh - 8px);
        width: 100%;
    }

    .service-chat-modal__close {
        right: 12px;
        top: 10px;
    }
}
