.chat-box {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 320px;
    max-width: 90%;
    background-color: #ff3838;
    background-image: url(https://rfcfootballacademy.in/assets/img/Blogs/background-whatsapp.jpg);
    background-size: cover;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    display: none;
    flex-direction: column;
    font-family: Arial, sans-serif;
    z-index: 1000
}

.chat-header {
    background-color: #ff3838;
    color: #fff;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.chat-header-title {
    display: flex;
    align-items: center;
    font-weight: 700
}

.chat-header-title img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-right: 10px
}

.chat-header-text {
    display: flex;
    flex-direction: column
}

.online-dot {
    width: 5px;
    height: 5px;
    background-color: #25d366;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 5px #25d366
}

.online-dotred {
    width: 10px;
    height: 10px;
    background-color: #ff3838;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 5px #25d366
}

.whatsapp .online-dotred {
    position: absolute;
    top: 10px;
    right: 9px;
    width: 10px;
    height: 10px;
    background-color: #ff3838;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(255, 56, 56, .5)
}

.chat-header span {
    cursor: pointer;
    font-weight: 700
}

.chat-content {
    padding: 15px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-radius: 0 0 10px 10px;
    position: relative
}

.chat-bubble {
    background-color: #ff3838;
    color: #fff;
    border: 1px solid #ff3838;
    border-radius: 15px;
    padding: 10px;
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    position: relative;
    margin-bottom: 10px
}

.chat-bubble::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ff3838
}

.chat-footer {
    text-align: center;
    width: 75%;
    background-color: #ff3838;
    padding: 10px;
    border-radius: 0 0 10px 10px;
    margin: 31px;
    border-radius: 10px
}

.chat-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: transform .3s;
    overflow: hidden;
    position: relative
}

.chat-footer a img {
    width: 24px;
    height: 24px;
    margin-right: 10px
}

.chat-footer a:hover {
    background-color: #8b0000 transform: scale(1.05)
}

.typing {
    display: inline-block;
    background-color: red;
    color: #fff !important;
    width: 80px;
    padding: 10px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    animation: blink-caret 1s step-end infinite
}

@keyframes blink-caret {

    from,
    to {
        border-right-color: transparent
    }

    50% {
        border-right-color: #000
    }
}

.typing::after {
    content: '.......';
    animation: dots 1s steps(3, end) infinite;
    color: #fff;
    font-size: 18px;
    font-weight: 700
}

@keyframes dots {

    0%,
    20% {
        color: rgba(255, 255, 255, 0);
        text-shadow: .25em 0 0 rgba(255, 255, 255, 0), .5em 0 0 rgba(255, 255, 255, 0)
    }

    40% {
        color: #fff;
        text-shadow: .25em 0 0 rgba(255, 255, 255, 0), .5em 0 0 rgba(255, 255, 255, 0)
    }

    60% {
        text-shadow: .25em 0 0 #fff, .5em 0 0 rgba(255, 255, 255, 0)
    }

    100%,
    80% {
        text-shadow: .25em 0 0 #fff, .5em 0 0 #fff
    }
}

.floating-icons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .3s ease-in-out
}

.icon.whatsapp {
    margin-bottom: 10px;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    cursor: pointer;
    transition: transform .3s ease
}

.icon img {
    width: 100%;
    height: 100%
}

.icon:hover {
    transform: scale(1.1)
}

.close-icon {
    width: 40px;
    height: 40px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    transition: transform .3s ease-in-out
}

.floating-icons.open.closed .whatsapp {
    display: none;
}