.DeepChatApp {
    font-family: inherit;
    text-align: center;
    justify-content: center;
    display: grid;
    transition: opacity 0.2s ease 0.05s; 
}

.DeepChatApp.is-hidden {
    display: none; 
}

#deepchat-container {
    position: fixed;
    right: 1.3em;
    bottom: 1.3em;
    transform: scale(0);
    transform-origin: 100% 100%;
    transition: ease-in-out;
    transition: transform 0.3s ease 0.05s, opacity 0.2s ease, max-width 0.3s ease; 
    max-width: 320px;
    opacity: 0;
    z-index: 999998;
}

#deep-chat {
    transition: all 0.3s ease;
}

.deepchat-expand {
    display: block;
    color: white;
    cursor: pointer;
    background-color: #000;
    font-family: inherit;
    font-size: 0.75em;
    padding: 0.5em;
    text-align: center;
}

.deepchat-expand .minimize {
    display: none;
}

.DeepChatApp.is-expanded .deepchat-expand .expand {
    display: none;
}

.DeepChatApp.is-expanded .deepchat-expand .minimize {
    display: inline-block;
}

#chat-header {
    background-color: #cc0033;
    border-radius: 10px 10px 0px 0px;
}

.dc-header {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 0.75em 1em;
}

.dc-header-text {
    color: #fff;
    flex-grow: 1;
    text-align: left;
}

.dc-header-text h4 {
    color: #fff !important;
    margin: 0 !important;
}

.dc-header-text p {
    margin: 0.5em 0;
}

.dc-header svg {
    height: 10px;
    width: 10px;
}

#close-button {
    color: #fff;
    cursor: pointer;
    padding-top: 0.5em;
    transition: color 0.3s ease;
}

#close-button:hover {
    color: #000;
}

#open-button {
    background-color: #cc0033;
    border: 0;
    border-radius: 1em;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 5px;
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    font-family: inherit;
    opacity: 1;
    padding: 1em;
    position: fixed;
    right: 1.3em;
    bottom: 1.3em;
    transition: background-color 0.3s ease, opacity 0.2s ease;
    z-index: 999997;
}

#open-button:hover {
    background-color: #ea003a;
}

#open-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#open-button svg {
    width: 30px;
}

#open-button span {          
    font-size: 1.25em;
    font-weight: 500;
    margin-left: 0.5em
}

#dc-app.is-active #deepchat-container {
    opacity: 1;
    transform: scale(1);
    transition: transform 0.3s ease, opacity 0.2s ease 0.05s; 
}

#dc-app.is-active #open-button {
    opacity: 0;
}

@media screen and (min-width: 740px) {
    .DeepChatApp.is-expanded #deepchat-container {
        max-width: 60vw;
    }

    .DeepChatApp.is-expanded #deep-chat {
        height: 80vh !important;
        width: 60vw !important;
    }

    .DeepChat-overlay {
        background-color: rgba(0,0,0,0.5);
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
        z-index: 999997;
    }

    .DeepChatApp.is-active.is-expanded .DeepChat-overlay {
        opacity: 1;
    }
}

@media screen and (min-width: 740px) and (max-width: 1200px) {
    #open-button span {
        font-size: 1em;
    }
}

@media screen and (max-width: 740px) {
    #open-button span {
        display: none;
    }

    .deepchat-expand {
        display: none;
    }
}

@media screen and (max-width: 400px) {
    #deepchat-container {
        right: 0.25em;
        bottom: 1em;
    }
}