﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.phonebox-wrapper {
    position: fixed;
    bottom: 22rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    z-index: 10;
}

@media (max-width: 480px) {
    .phonebox-wrapper {
        bottom: 2rem !important;
        right: 4rem !important;
    }
}

.phonebox-toggle {
    width: 100%;
    height: 100%;
    background: rgb(255, 158, 27) !important;
    color: var(--white);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s;
}

    .phonebox-toggle:hover {
        background: var(--white) !important;
        color: rgb(255, 158, 27) !important;
    }

.phonebox-toggle:active {
    transform: scale(.9);
}

.phonebox-message-wrapper {
    position: absolute;
    bottom: calc(100% + 1rem);
    right: 0;
    width: 420px;
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: .5rem .5rem 2rem rgba(0, 0, 0, .1);
    transform: scale(0);
    transform-origin: bottom right;
    transition: .2s;
}

.phonebox-message-wrapper.show {
    transform: scale(1);
}

.phonebox-message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: .75rem 1.5rem;
}

.phonebox-message-profile {
    display: flex;
    align-items: center;
    grid-gap: .5rem;
}

.phonebox-message-image {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 50%;
}

.phonebox-message-name {
    font-size: 1.125rem;
    font-weight: 600;
}

.phonebox-message-status {
    font-size: .875rem;
    color: var(--grey-d-3);
}

.phonebox-message-dropdown {
    position: relative;
}

.phonebox-message-dropdown-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    cursor: pointer;
    border-radius: 50%;
}

.phonebox-message-dropdown-toggle:hover {
    background: var(--grey);
}

.phonebox-message-dropdown-menu {
    list-style: none;
    margin: 0;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    padding: .5rem 0;
    width: 120px;
    box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .1);
    transform: scale(0);
    transform-origin: top right;
    transition: .2s;
    border-radius: .5rem;
}

.phonebox-message-dropdown-menu.show {
    transform: scale(1);
}

.phonebox-message-dropdown-menu a {
    font-size: .875rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    padding: .5rem 1rem;
    display: block;
}

.phonebox-message-dropdown-menu a:hover {
    background: var(--grey);
}

.phonebox-message-content {
    background: var(--grey);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    grid-row-gap: 1rem;
    overflow-y: auto;
    height:350px !important;
}

.phonebox-message-item {
    width: 90%;
    padding: 1rem;
}

.phonebox-message-item.sent {
    align-self: flex-end;
    background: orange !important;
    color: var(--white);
    border-radius: .75rem 0 .75rem .75rem;
}

.phonebox-message-item.received {
    background: var(--white);
    border-radius: 0 .75rem .75rem .75rem;
    box-shadow: .25rem .25rem 1.5rem rgba(0, 0, 0, .05);
}

.phonebox-message-item-time {
    float: right;
    font-size: .75rem;
    margin-top: .5rem;
    display: inline-block;
}

.phonebox-message-bottom {
    background: var(--white);
    padding: .75rem 1.5rem;
}

.phonebox-message-form {
    display: flex;
    align-items: center;
    background: var(--grey);
    border-radius: .5rem;
    padding: .5rem 1.25rem;
}

.phonebox-message-input {
    background: transparent;
    outline: none;
    border: none;
    resize: none;
    scrollbar-width: none;
    width: -webkit-fill-available !important;
    margin: 0px !important;
}

.phonebox-message-input::-webkit-scrollbar {
    display: none;
}

.phonebox-message-submit {
    font-size: 1.25rem;
    color: orange !important;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.phonebox-message-no-message {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.spinner {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 100px auto;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    margin: 100px auto;
    margin-bottom: 0px;
    z-index: 9;
}

@media (max-width: 480px) {
    .spinner {
        bottom: 2rem !important;
        right: 4rem !important;
    }
}

.double-bounce1 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0.6;
    position: absolute;
    top: -320px;
    left: 0;
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out !important;
    animation: sk-bounce 2.0s infinite ease-in-out !important;
    border-color: rgb(255, 158, 27);
    background: linear-gradient(119.16deg, #FFFFFF 0%, rgb(255, 158, 27) 98.94%) !important;
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    50% {
        transform: scale(1.0);
        -webkit-transform: scale(1.4);
        background-color:  #25db73;
        border-color: #5aa1e2;
    }
}