:root {
    --userMessageFontSize: unset;
}

body {
    font-family: 'Raleway', sans-serif;
}

html {
    font-size: 14px;
}

a {
    color: var(--bs-body-color);
    text-decoration: none;
    outline: none;
}

    a:hover {
        color: #443f3f;
    }

button {
    background-color: grey;
    border-radius: 10px;
    border: none;
    color: white;
    outline: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

.navbar-toggler {
    box-shadow: unset !important
}

/*.loader {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 6px solid lightgrey;
    border-radius: 50%;
    border-top: 6px solid;
    border-style: solid;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
}*/

svg.cochat_minilink {
    height: 1rem;
}

.cochat_sourcelinks {
    margin-right: 1rem;
}

.container.cochat_chatcontainer {
    padding-right: unset;
    padding-left: unset;
}

.cochat_agentname {
    font-style: italic;
    color: #910002;
}

input {
    padding: 0.5rem;
    border-radius: 10px;
    border-width: 1px;
    border-color: lightgray;
    border-style: solid;
    outline: none;
}

.cochat_chatinputbox {
    background-color: whitesmoke;
    padding: 0.5rem;
    border-radius: 10px;
    border-width: 1px;
    border-color: lightgray;
    border-style: solid;
    position: fixed;
    margin-top: 1rem;
    width: 70%;
    max-width: 70rem;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

    .cochat_chatinputbox::placeholder {
        background-color: white;
    }

.cochat_scrolldown {
    width: 4rem;
    display: none;
    position: fixed;
    bottom: 7rem;
    opacity: 30%;
    left: 50%;
    cursor: pointer;
    transform: translate(-50%)
}

.cochat_submitbutton {
    align-self: center;
    cursor: pointer
}

#submitButton.disabled {
    color: rgba(239, 239, 239, 0.3);
    cursor: unset;
}

.cochat_customerlogo {
    display: block; /* Prevent inline centering */
    margin: 0; /* Remove any default margins */
    max-height: 2rem;
}

.cochat_chatinputbox-renderiniframe {
    bottom: 1rem;
}


/*@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}*/

.cochat_loader_container {
    margin-top: 1rem;
}

.cochat_loader {
    display: flex;
    justify-content: space-between;
    width: 40px;
}

    .cochat_loader div {
        width: 8px;
        height: 8px;
        background-color: grey;
        border-radius: 50%;
        animation: grow-shrink 1.5s infinite;
    }

        .cochat_loader div:nth-child(1) {
            animation-delay: 0s;
        }

        .cochat_loader div:nth-child(2) {
            animation-delay: 0.3s;
        }

        .cochat_loader div:nth-child(3) {
            animation-delay: 0.6s;
        }

@keyframes grow-shrink {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }
}

/*Smartphones*/
@media only screen and (max-width: 600px), only screen and (orientation: landscape) and (max-width: 992px) {
    .cochat_minilink {
        font-size: large;
    }

    svg.cochat_minilink {
        height: 1.4rem
    }

    .cochat_chatinputbox {
        left: 10.5px;
        right: 10.5px;
        transform: unset;
        width: unset
    }

    #userMessage {
        font-size: var(--userMessageFontSize);
    }
}
