/* CSS Document */
/* TheHotline.org and LoveIsRespect.org chat tool. Built using Genesys's web messaging.  */
/* application lead: Marty Hand | VP of Technology | The National Domestic Violence Hotline.*/
/* contact: software@thehotline.org */
/* author: Chad Cleveland | Lightbulb Web Services | www.Lightbulb.Services */
/* copyright: © Copyright 2022 Lightbulb Web Services. */
/* license:  https://license.lightbulb.services/the-hotline/2022/license */

/*
    Last Modified: '2023-01-06 14:14';
*/ 

/* FONT */

@font-face {
    font-family: 'Gotham';
    src: url('https://lib.thehotline.us/font/gotham/gotham-300.woff2');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('https://lib.thehotline.us/font/gotham/gotham-400.woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Gotham';
    src: url('https://lib.thehotline.us/font/gotham/gotham-800.woff2');
    font-weight: 700;
    font-style: normal;
}

/* RESET */
#thlmsg-container * {
    width: unset;
    height: unset;
    padding: unset;
    margin: unset;
    border-radius: unset;
    box-shadow: unset;
    background: unset;
    font-family: unset;
    font-weight: unset;
    font-size: unset;
    color: unset;
    background-color: unset;
    position: unset;
    line-height: 1;
    letter-spacing: .5px;
    vertical-align: unset;
}
#thlmsg-container p, #thlmsg-container h1, #thlmsg-container h2, #thlmsg-container h3, #thlmsg-container h4, #thlmsg-container h5 {
    line-height: 1.3;
}




/* --------------- */


/* GLOBAL VARIABLES */

:root {
    --font-main: Gotham, Verdana, Helvetica, sans-serif;
    --thl-purple: #592c5f;
    --thl-purple-2: #9e3a8a;
    --thl-black: #333132;
    --thl-white: #fff;
    --thl-red: #c43546;
    --thl-chat-purple: #9e3a8acc;
    --thl-chat-grey: #a4a0a2;
}

/* --------------- */



/* STYLES */


.thl-messaging-btn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: var(--thl-purple);
    color: var(--thl-white);
    font-family: var(--font-main);
    font-size: 18px;
    border: 2px solid var(--thl-purple);
    border-radius: 100px;
    padding: 10px;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    cursor: pointer;
}
.thl-messaging-btn:hover {
    color: var(--thl-purple);
    background-color: var(--thl-white);
}

#thlmsg-container *, 
#thlmsg-survey-container * {
    font-family: var(--font-main);
    font-weight: 300;
}

#thlmsg-container, 
#thlmsg-survey-container  {
    background-color: var(--thl-black);
    position: fixed;
    width: 500px;
    height: 0px;
    right: 5px;
    bottom: 5px;
    overflow: hidden;
    box-shadow: 0 0 4px #00000055;
    border: none;
    transition: all ease-in-out .3s;
    z-index: 9999999;
    border-radius: 10px;
}
#thlmsg-container[thl-status=expanded], 
#thlmsg-survey-container[thl-status=expanded]  {
    height: calc(100% - 50px);
}
#thlmsg-container[thl-status=collapsed], 
#thlmsg-survey-container[thl-status=collapsed]  {
    height: 60px;
    width: 60px;
}
.thlmsg-survey-ifr {
    border: none;
    width: 100%;
    height: calc(100% - 59px);
    opacity: .8;
}

#thlmsg-container .thlmsg-header, 
#thlmsg-survey-container .thlmsg-header {
    background-color: #2a2a2a;
    height: 60px;
    box-shadow: 0 0 8px #00000033;
    overflow: hidden;
}
#thlmsg-container .thlmsg-header-logo, 
#thlmsg-survey-container .thlmsg-header-logo {
    background-image: URL('https://lib.thehotline.us/img/thehotline-logo.svg');
    width: 50px;
    height: 50px;
    float: left;
    background-color: #ffffff;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    margin: 5px 0 0 5px;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
}

#thlmsg-container .thlmsg-notification-icon {
    border-radius: 50px;
    background: var(--thl-purple-2);
    display: inline-block;
    min-width: 11px;
    font-family: sans-serif;
    font-weight: bolder;
    font-size: 11px;
    color: #fff;
    text-align: center;
    padding: 4px;
    position: relative;
    left: 30px;
    top: 1px;
}

#thlmsg-container .thlmsg-notification-icon[thl-unseen="0"] {
    display: none;
}

#thlmsg-container .thlmsg-header-text, 
#thlmsg-survey-container .thlmsg-header-text {
    color: var(--thl-white);
    font-weight: 300;
    font-size: 20px;
    padding: 20px 0px 00px 10px;
    float: left;
    display: inline-block;
}

#thlmsg-container .thlmsg-header-close, 
#thlmsg-survey-container .thlmsg-header-close {
    color: var(--thl-white);
    font-size: 13px;
    font-weight: 300;
    letter-spacing: .3px;
    padding: 8px 0px 9px 0px;
    float: right;
    cursor: pointer;
    text-align: center;
    width: 60px;
    overflow: hidden;
    transition: all ease-in-out .1s;
}
#thlmsg-container .thlmsg-header-close[thl-status=collapsed], 
#thlmsg-survey-container .thlmsg-header-close[thl-status=collapsed] {
    width: 0px;
    padding: 8px 0;
}
#thlmsg-container .thlmsg-header-close.thlmsg-header-exit, 
#thlmsg-survey-container .thlmsg-header-close.thlmsg-header-exit {
    background: var(--thl-red);
    float: left;
    font-weight: 800;
    margin-right: calc(50% - 88px);
}
#thlmsg-container[thl-status=collapsed] .thlmsg-header-close.thlmsg-header-exit,
#thlmsg-survey-container[thl-status=collapsed] .thlmsg-header-close.thlmsg-header-exit {
    display: none;
}
#thlmsg-container .thlmsg-header-close .thl-icon, 
#thlmsg-survey-container .thlmsg-header-close .thl-icon {
    margin: 0 auto 4px !important;
    width: 12px !important;
    height: 12px !important;
}
#thlmsg-container .thlmsg-header-expand, 
#thlmsg-survey-container .thlmsg-header-expand {
    float: right;
    cursor: pointer;
    font-weight: 700 !important;
    transition: padding ease-out .3s;
    padding: 10px;
}

#thlmsg-container .thlmsg-header-close:hover, #thlmsg-container .thlmsg-header-expand:hover, 
#thlmsg-survey-container .thlmsg-header-close:hover, #thlmsg-survey-container .thlmsg-header-expand:hover {
    background-color: #ffffff22;
}
#thlmsg-container .thlmsg-message-container {
    height: calc(100% - 161px);
    overflow-y: auto;
    overflow-x: hidden;
    transition: all ease-in-out .3s;
}
#thlmsg-container[thl-status=collapsed] .thlmsg-message-container {
    height: calc(100% - 58px);
}
#thlmsg-container .thlmsg-message-content {
    overflow: hidden;
    margin: 10px;
}

#thlmsg-container .thlmsg-scope-notice {
    opacity: 1;
    transition: opacity ease-in-out .35s;
}
#thlmsg-container .thlmsg-scope-notice p {
    color: #ccc;
    padding: 20px 40px;
    font-size: 18px;
    line-height: 1.25;
}
#thlmsg-container .thlmsg-scope-notice a {
    color: #ccc;
}
#thlmsg-container #thlmsg-close-notice {
    color: #ccc;
    text-align: center;
    display: block;
    padding: 50px 30px 20px 30px;
    font-size: 23px;
}

#thlmsg-container .thl-site-btn {
    border: 2px solid var(--thl-purple);
    background-color: var(--thl-purple);
    color: var(--thl-white);
    font-size: 18px;
    font-weight: 500 !important;
    text-align: center;
    margin: 10px 100px;
    padding: 10px;
    border-radius: 100px;
    cursor: pointer;
}
#thlmsg-container .thl-site-btn:hover {
    color: var(--thl-purple);
    background-color: #aaa;
}

#thlmsg-container .thl-cancel-btn {
    border: 2px solid #777;
    background-color: #555;
    color: #888;
    font-size: 18px;
    font-weight: 500 !important;
    text-align: center;
    margin: 10px 100px;
    padding: 10px;
    border-radius: 100px;
    cursor: pointer;
}
#thlmsg-container .thl-cancel-btn:hover {
    background-color: #666;
}


#thlmsg-container .thlmsg-message-bubble-container {
    float: left;
    width: calc(100% - 0px);
}

.thlmsg-message-bubble-container.user-advocate:last-child {
    padding-bottom: 15px !important;
}

#thlmsg-container .thlmsg-message-bubble {
    margin: 8px;
    display: inline-block;
    padding: 10px 12px 8px;
    max-width: calc(100% - 120px);
    font-size: 15px;
    font-weight: 300;
    word-break: break-word;
    line-height: 1.3;
}

#thlmsg-container .thlmsg-message-bubble-time {
    display: inline-block;
    color: #888;
    font-size: 11px;
}
#thlmsg-container .user-chatter .thlmsg-message-bubble-time {
    float: right;
    margin-top: 20px;
}

#thlmsg-container .thlmsg-message-advocate {
    margin-left: 15px;
    background: var(--thl-chat-purple);
    color: var(--thl-white);
    border-radius: 0px 10px 10px 10px;
    
}
#thlmsg-container .thlmsg-message-chatter {
    margin-right: 15px;
    background: var(--thl-chat-grey);
    color: #111;
    font-weight: 400;
    border-radius: 10px 0px 10px 10px;
    float: right;
}

#thlmsg-container .thlmsg-typing-notice-container {
    display: block;
    width: calc(100% - 118px);
    position: absolute;
    bottom: 101px;
    padding: 3px 0 3px 20px;
    color: #888;
    font-size: 12px;
    /* background: var(--thl-black); */
    height: 13px;
}

#thlmsg-container .thlmsg-inline-input {
    margin: 0 0 15px 25px;
    width: 200px;
    background-color: #444;
    border: thin solid #222;
    border-radius: 5px;
    box-shadow: inset 0 0 5px #00000044;
    padding: 8px 15px 8px 15px;
    color: #ccc;
    outline: none;
    float: left;
}
#thlmsg-container .thlmsg-inline-input[type=number] {
    width: 180px;
    padding: 8px 0 8px 15px;
}

#thlmsg-container .thlmsg-inline-radio {
    float: right;
    border: thin solid #aaa;
    padding: 12px 16px;
    border-radius: 20px;
    margin: 0 15px 15px 0;
    background: #666666;
    color: var(--thl-white);
    font-size: 14px;
    cursor: pointer;
    animation-name: pulseRadio;
    animation-duration: 5.0s;
    animation-timing-function: ease-out;
    /* animation-direction: alternate; */
    animation-iteration-count: infinite;
    animation-play-state: running;

}
#thlmsg-container .thlmsg-inline-radio:hover {
    background: #656;
}
#thlmsg-container .thlmsg-inline-radio[thl-status=selected] {
    background: #545;
    border: thin solid #757;
    text-decoration: underline;
}

#thlmsg-container .thlmsg-radio-notice {
    width: calc(100% - 40px);
    float: right;
    text-align: right;
    color: #888;
    font-size: 12px;
    padding: 0px 13px 10px 0px;
}


#thlmsg-container .thlmsg-inline-send-btn {
    float: left;
    margin: 1px 0 0 10px;
    height: 30px;
    width: 30px;
    cursor: pointer;
}
#thlmsg-container .thlmsg-input-container {
    background-color: #3d3d3d;
    height: 99px;
    border-top: thin solid #666666;
    overflow: hidden;
}

#thlmsg-container[thl-status=collapsed] .thlmsg-input-container {
    height: 0px;
    padding: 0px 10px;
}

#thlmsg-container textarea.thlmsg-input {
    background-color: #3d3d3d;
    height: 110px;
    width: calc(100% - 70px);
    padding: 10px;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    color: #aaa;
    outline: none;
    resize: none;
    float: left;
    line-height: 1.4;
}

#thlmsg-container input.thlmsg-input {
    background-color: #3d3d3d;
    height: 30px;
    width: calc(100% - 70px);
    padding: 32px 10px;
    border: none;
    border-radius: 0px;
    font-size: 16px;
    color: #aaa;
    outline: none;
    resize: none;
    float: left;
    line-height: 1.4;
}

#thlmsg-container .thlmsg-input[thl-status=active]:placeholder-shown {
    /* animation-name: pulseInput; */
    animation-duration: 7.0s;
    animation-timing-function: ease-out;
    /* animation-direction: alternate; */
    animation-iteration-count: infinite;
    animation-play-state: running;
}

#thlmsg-container .thlmsg-send {
    float: right;
    width: 50px;
    padding: 23px 0 0 0;
}

#thlmsg-container .thlmsg-send-btn {
    width: 48px;
    height: 48px;
    padding: 1px;
    cursor: pointer;
    opacity: 1;
    transition-property: opacity;
}
#thlmsg-container[thl-status=expanded] .thlmsg-send-btn {
    transition-duration: .1s;
    transition-delay: .2s;
    opacity: 1;
}
#thlmsg-container[thl-status=collapsed] .thlmsg-send-btn {
    transition-duration: .1s;
    transition-delay: 0s;
    opacity: 0;
}


#thlmsg-container .css-triangle {
    width: 0px;
    height: 0px;
    border-top: 15px solid transparent;
    border-left: 30px solid #999;
    border-bottom: 15px solid transparent;
    margin: 10px 0 0 10px;
}
#thlmsg-container .css-triangle-small {
    width: 0px;
    height: 0px;
    border-top: 7px solid transparent;
    border-left: 14px solid #999;
    border-bottom: 7px solid transparent;
    margin: 8px 0 0 8px;
}


#thlmsg-container .thlmsg-send-btn:hover, #thlmsg-container .thlmsg-inline-send-btn:hover {
    background-color: #73006388;
}

#thlmsg-container [thl-status=inactive] {
    opacity: .2;
}
#thlmsg-container [thl-status=inactive]:hover {
    cursor: default;
    background-color: unset;
}

#thlmsg-container [thl-status=hidden] {
    display: none;
}

#thlmsg-container [thl-status=invisible] {
    visibility: hidden;
}



/* hides */ 

[thl-status=expanded] .hideExpanded,
[thl-status=collapsed] .hideCollapsed,
[thl-status="hidden"] {
    display: none !important;
}

/* media queries */

@media only screen and (max-width: 600px) {
    #thlmsg-container, 
    #thlmsg-survey-container {
        width: 100%;
        height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0px;
    }
    #thlmsg-container[thl-status=collapsed] , 
    #thlmsg-survey-container {
        width: 60px;
        height: 60px;
        right: 5px;
        bottom: 5px;
        border-radius: 10px;
    }
    #thlmsg-container[thl-status=expanded], 
    #thlmsg-survey-container[thl-status=expanded]  {
        height: calc(100% - 00px);
    }
    /* #thlmsg-container[thl-status=collapsed], 
    #thlmsg-survey-container[thl-status=collapsed]  {
        height: calc(40% - 0px);
    } */
  }

  @media only screen and (max-width: 415px) {
    #thlmsg-container .thlmsg-header-text, 
    #thlmsg-survey-container .thlmsg-header-text {
        font-size: 16px;
        padding: 24px 0px 00px 10px;
    }
}
@media only screen and (max-width: 355px) {
    #thlmsg-container .thlmsg-header-text, 
    #thlmsg-survey-container .thlmsg-header-text {
        font-size: 13px;
        padding: 24px 0px 00px 10px;
    }
}


/* animation */

@keyframes pulseRadio {
    0% {
        transform: scale(1);
    }

    92% {
        transform: scale(1);
    }
    95% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}
@keyframes pulseInput {
    0% {
        background-color: #3d3d3d;
    }

    75% {
        background-color: #3d3d3d;
    }
    85% {
        background-color: #4d4d4d;
    }

    100% {
        background-color: #3d3d3d;
    }
}



















/* icons */


#thlmsg-container .thl-icon[thl-icon], 
#thlmsg-survey-container .thl-icon[thl-icon] {
    width: 40px;
    height: 40px;
    background-size: 300%;
    background-repeat: no-repeat;
    margin: 0px;
    background-position-x: center;
    border-color: var(--purple-lt);
  }
