﻿

.hotline_container {
    position: fixed;
    left: 30px;
    bottom: 20%;
    z-index: 12;
}

.hotline_container a {
    padding: 14px 15px;
    background-color: #ce7b00;
    border-radius: 30px;
    color: #fff;
    position: relative;
    padding-left: 70px;
    padding-right: 30px;
    font-size: 20px;
    display: flex !important;
    text-decoration: none;
    align-items: center;
}

    .hotline_container a .hotline_icon_wrapper {
        width: 60px;
        height: 60px;
        position: absolute;
        left: -5px;
        top: 50%;
        transform: translateY(-50%);
        text-align: center;
        line-height: 60px;
        background-color: #ffc107; /* fallback vàng */
        border-radius: 50%;
        color: #ffff;
        font-size: 1.7rem;
        animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    }

@-webkit-keyframes phonering-alo-circle-img-anim {
    0% {
        transform: translateY(-50%) rotate(0) scale(1) skew(1deg);
    }

    10% {
        transform: translateY(-50%) rotate(-25deg) scale(1) skew(1deg);
    }

    20% {
        transform: translateY(-50%) rotate(25deg) scale(1) skew(1deg);
    }

    30% {
        transform: translateY(-50%) rotate(-25deg) scale(1) skew(1deg);
    }

    40% {
        transform: translateY(-50%) rotate(25deg) scale(1) skew(1deg);
    }

    50% {
        transform: translateY(-50%) rotate(0) scale(1) skew(1deg);
    }

    100% {
        transform: translateY(-50%) rotate(0) scale(1) skew(1deg);
    }
}

.hotline_play .hotline_ripple {
    background-color: #ce7b00;
    border: 1px solid #fff;
}

    .hotline_play .hotline_ripple,
    .hotline_play .hotline_ripple:before,
    .hotline_play .hotline_ripple:after {
        position: absolute;
        top: 50%;
        left: 50%;
        height: 100%;
        width: 100%;
        transform: translateX(-50%) translateY(-50%);
        transform-origin: center center;
        border-radius: 50%;
        box-shadow: 0 0 0 0 rgb(206 123 0);
        animation: ripple 3s infinite;
    }

@keyframes ripple {
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hotline_play .hotline_ripple:before {
    animation-delay: 0.9s;
    content: "";
    position: absolute;
}

.hotline_play .hotline_ripple:after {
    animation-delay: 0.6s;
    content: "";
    position: absolute;
}

.hotline_number {
    font-size: 18px;
    margin-left: 0;
}

.contact_fixed_box {
    position: fixed;
    top: 51%;
    transform: translateY(-50%);
    right: 0;
    z-index: 99;
    text-align: right;
}

.contact_fixed_box ul {
    padding-right: 0;
    padding-left: 0;
}

    .contact_fixed_box ul li {
        width: auto;
        height: auto; /* tăng chiều cao để đủ chỗ span */
        margin-bottom: 5px;
        background: #ce7b00;
        padding: 7px;
        text-align: center;
        list-style: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
    }

        .contact_fixed_box ul li a {
            font-size: 10px;
            color: #fff;
            text-transform: none;
            line-height: 1.1;
            display: block;
            text-decoration: none;
        }

        .contact_fixed_box ul li span.contact_name {
            font-size: 12px;
            color: #fff;
            margin-top: 4px;
            display: block;
            line-height: 1.2;
        }

.toggle_icon {
    display: inline-block;
    background: #ce7b00;
    padding: 4px 8px;
    margin-bottom: 5px;
    color: #fff;
    border-radius: 0 2px 2px 0;
    position: relative;
    cursor: pointer;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

    .toggle_icon i {
        transition: all 0.3s ease;
        padding-left: 3px;
        padding-right: 3px;
    }

    .toggle_icon.active i {
        transform: rotate(180deg);
    }

.contact_fixed_box ul li.active {
    transform: translateX(100px);
}

.hotline_play .hotline_ripple img {
    margin-top: -5px;
}

@media screen and (max-width: 576px) {
    .contact_fixed_box ul li {
        width: auto;
        height: auto;
        padding: 12px;
    }

    .hotline_container a .hotline_icon_wrapper {
        width: 50px;
        height: 50px;
        position: absolute;
        left: -5px;
        top: 70%;
        transform: translateY(-50%);
        text-align: center;
        line-height: 50px;
        background-color: #ffc107;
        border-radius: 50%;
        color: #ffff;
        font-size: 1.7rem;
        animation: phonering-alo-circle-img-anim 1s infinite ease-in-out;
    }

    .hotline_container a {
        padding: 5px 10px;
        background-color: #ce7b00;
        border-radius: 30px;
        color: #fff;
        position: relative;
        padding-left: 35px;
        padding-right: 20px;
        font-size: 14px;
        display: flex !important;
        text-decoration: none;
        align-items: center;
    }

    .hotline_number {
        font-size: 16px;
        margin-left: 20px;
        display: none;
    }

    .hotline_container a {
        padding-left: 20px;
    }

    .hotline_container {
        position: fixed;
        left: 20px;
        z-index: 7;
    }
}

