body {
    padding: 0;
    margin: 0;
}

#sc-launcher {
    z-index: 200000;
    position: relative;
}

.demo-description {
    max-width: 500px;
}

.demo-description img {
    max-width: 500px;
}

.demo-test-area {
    width: 300px;
    box-sizing: border-box;
}

.demo-test-area--text {
    box-sizing: border-box;
    width: 100%;
    margin: 0px;
    padding: 0px;
    resize: none;
    background: #fafbfc;
    color: #8da2b5;
    border: 1px solid #dde5ed;
    font-size: 16px;
    padding: 16px 15px 14px;
    margin: 0;
    border-radius: 6px;
    outline: none;
    height: 150px;
    margin-bottom: 10px;
}

.demo-monster-img {
    width: 400px;
    display: block;
    margin: 60px auto;
}

.sc-header--img {
    width: 48px;
}


.demo-footer {
    width: 1100px;
    display: flex;
    margin: auto;
    justify-content: space-between;
    padding: 20px 0px;
    border-top: solid 2px #F0F4FA;
    color: #8694AB;
    font-weight: 100;
    font-size: 14px;
}

.demo-header {
    width: 100%;
    color: #009846;
    display: flex;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding: 40px 0px;
}

.demo-header--title {
    font-size: 24px;
    font-weight: 600;
}

.demo-header--links {
    width: 200px;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 500;
}

.demo-header--links a, .demo-header--title a {
    color: #009846;
    text-decoration: none;
    cursor: pointer;
}

.demo-header--links a:hover, .demo-header--title a:hover {
    color: #007F3A;
}

.demo-test-area--wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.demo-test-area--title {
    align-self: center;
    text-align: center;
}

.demo-test-area--title-main {
    color: #516996;
    font-weight: 600;
    font-size: 28px;
}

.demo-test-area--title-sub {
    color: #009846;
    padding-top: 10px;
}

.demo-test-area {
    align-self: center;
    margin-top: 30px;
    width: 400px;
    display: flex;
    flex-direction: column;
}

.demo-test-area--preamble {
    padding: 20px 0px;
    color: #516996;
}


.demo-test-area--button {
    font-family: Avenir Next, Helvetica Neue, Helvetica, sans-serif;
    font-weight: 400;
    margin-top: 20px;
    user-select: none;
    border: none;
    line-height: 1.4;
    text-decoration: none;
    background: #009846;
    color: white;
    padding: 6px 10px;
    font-size: 20px;
    height: 50px;
    border-radius: 4px;
    width: 80%;
    box-sizing: border-box;
    outline: none;
    cursor: pointer;
    align-self: center;
}

.demo-test-area--button:hover {
    background: #007F3A;
}

.demo-test-area--info {
    margin: auto;
    margin-top: 40px;
    color: #516996;
    font-weight: 200;
    width: 100%;
}

.demo-test-area--info a, .demo-test-area--title-sub a {
    font-weight: 400;
    text-decoration: none;
    color: #009846;
}

.sc-chat-window {
    z-index: 10000;
    width: 370px;
    height: calc(100% - 120px);
    max-height: 710px;
    position: fixed;
    right: 25px;
    bottom: 20px;
    box-sizing: border-box;
    box-shadow: 0 7px 40px 2px rgba(148, 149, 150, 0.3);
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease-in-out;
    border-radius: 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.sc-chat-window.closed {
    opacity: 0;
    visibility: hidden;
    bottom: 90px;
}

.sc-message-list {
    height: 80%;
    overflow-y: auto;
    background-color: white;
    background-size: 100%;
    padding: 30px 0;
}

.sc-message--me {
    text-align: right;
}

.sc-message--them {
    text-align: left;
}

@media (max-width: 450px) {
    .sc-chat-window {
        width: 100%;
        height: 100%;
        max-height: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .sc-chat-window {
        transition: 0.1s ease-in-out;
    }

    .sc-chat-window.closed {
        bottom: 0;
    }
}


.sc-header {
    background: #009846;
    min-height: 75px;
    border-top-left-radius: 9px;
    border-top-right-radius: 9px;
    color: white;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
    position: relative;
    box-sizing: border-box;
    display: flex;
}

.sc-header--img {
    border-radius: 50%;
    align-self: center;
}

.sc-header--team-name {
    align-self: center;
    padding: 10px;
    flex: 1;
    user-select: none;
    border-radius: 5px;
}

.sc-header--close-button {
    width: 40px;
    align-self: center;
    height: 40px;
    margin-right: 10px;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 5px;
}

.sc-header--close-button:hover {
    background: #007F3A;
}

.sc-header--close-button img {
    width: 100%;
    height: 100%;
    padding: 13px;
    box-sizing: border-box;
}

@media (max-width: 450px) {
    .sc-header {
        border-radius: 0px;
    }
}


.sc-launcher {
    justify-content: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: fixed;
    right: 25px;
    bottom: 25px;
    border-radius: 50%;
    box-shadow: none;
    transition: box-shadow 0.2s ease-in-out;
}

.sc-launcher:hover .sc-icon img {
    transform: rotate(-10deg);
}


.sc-icon {
    width: auto;
    display: flex;
    justify-content: center;
}

.sc-launcher .icon {
    width: 90px;
    height: 90px;
    background-color: #009846;
}

.sc-launcher .help {
    position: relative;
    min-width: 200px;
    display: block;
    margin: 8px 0 40px;
}

.sc-launcher h3 {
    margin: 0;
    padding: 8px 12px;
    background-color: #FFED00;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: 0 0 27px 2px rgba(0, 0, 0, 0.2);
    font-family: sans-serif;
    /*position: absolute;*/
    display: block;
    height: 32px;
}

.sc-launcher h3:before {
    content: "";
    position: absolute;
    width: 36px;
    height: 48px;
    left: -4px;
    top: -8px;
    z-index: -1;
    background-color: #009846;
    border-radius: 8px 16px 16px 8px;
}

.sc-launcher .sc-open-icon,
.sc-launcher .sc-closed-icon {
    width: 90px;
    height: 90px;
    transition: opacity 100ms ease-in-out, transform 100ms ease-in-out;
}

.sc-launcher .sc-closed-icon {
    transition: opacity 100ms ease-in-out, transform 100ms ease-in-out;
    width: 90px;
    height: 90px;
}

.sc-launcher .sc-open-icon {
    padding: 20px;
    width: 0;
    display: none;
    box-sizing: border-box;
    opacity: 0;
}

.sc-launcher.opened .sc-open-icon {
    transform: rotate(-90deg);
    opacity: 1;
}

.sc-launcher.opened .sc-closed-icon {
    transform: rotate(-90deg);
    opacity: 0;
}

.sc-launcher.opened:before {
    box-shadow: 0 0 400px 250px rgba(148, 149, 150, 0.2);
}

.sc-launcher:hover {
    /*box-shadow: 0 0 27px 1.5px rgba(0, 0, 0, 0.2);*/
}

.sc-new-messages-count {
    position: absolute;
    top: -3px;
    left: 41px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    background: #ff4646;
    color: white;
    text-align: center;
    margin: auto;
    font-size: 12px;
    font-weight: 500;
    box-shadow: -1px 1px 2px rgba(0, 0, 0, 0.3);
}


.sc-message {
    width: calc(100% - 32px);
    padding: 0 16px 8px;
    margin: auto;
    display: flex;
}

.sc-message--content {
    width: 100%;
    display: flex;
}

.sc-message--content.sent {
    justify-content: flex-end;
}

.sc-message--content.sent .sc-message--avatar {
    display: none;
}

.sc-message--avatar {
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    align-self: center;
    margin-right: 8px;
}

.sc-message--text {
    padding: 17px 20px;
    border-radius: 6px;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    -webkit-font-smoothing: subpixel-antialiased;
    /*word-wrap: break-word;*/
    width: calc(100% - 90px);
}

.sc-message--content.send .sc-message-wrapper {

}

.sc-message--content.sent .sc-message--text {
    color: white;
    background-color: #009846;
    max-width: calc(100% - 120px);
    white-space: pre-wrap;
}

.sc-message--content.received .sc-message--text {
    color: #263238;
    background-color: #f4f7f9;
    margin-right: 40px;
}

.sc-message--file {
    color: #000;
    background: white;
    border: solid 1px #CCCDD1;
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
}

.sc-message--file p {
    margin: 0 0 0 10px;
    color: rgba(86, 88, 103, 0.6);
}

.sc-message--file .sc-user-input--file-icon:hover path {
    fill: rgba(86, 88, 103, 0.3);
}

@media (max-width: 450px) {
    .sc-message {
        width: 80%;
    }
}


.sc-popup-window {
    position: relative;
    width: 150px;
}

.sc-popup-window--container {
    position: absolute;
    bottom: 20px;
    right: 100px;
    width: 330px;
    max-height: 260px;
    height: 260px;
    box-shadow: 0 7px 40px 2px rgba(148, 149, 150, 0.3);
    background: white;
    border-radius: 10px;
    outline: none;
    transition: 0.2s ease-in-out;
    z-index: 1;
    padding: 0 5px 5px 5px;
    box-sizing: border-box;
}

.sc-popup-window--container.closed {
    opacity: 0;
    visibility: hidden;
    bottom: 14px;
}

.sc-popup-window--container:after {
    content: "";
    width: 14px;
    height: 14px;
    background: white;
    position: absolute;
    z-index: -1;
    bottom: -6px;
    right: 28px;
    transform: rotate(45deg);
    border-radius: 2px;
}

.sc-popup-window--search {
    width: 290px;
    box-sizing: border-box;
    margin: auto;
    display: block;
    border-width: 0 0 1px 0;
    color: #565867;
    padding-left: 25px;
    height: 40px;
    font-size: 14px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 0 12px;
    outline: none;
}

.sc-popup-window--search::placeholder {
    color: #C1C7CD;
}


.sc-user-input {
    min-height: 55px;
    margin: 0;
    position: relative;
    bottom: 0;
    display: flex;
    background-color: #f4f7f9;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    transition: background-color .2s ease, box-shadow .2s ease;
}


.sc-user-input--text {
    width: 300px;
    resize: none;
    border: none;
    outline: none;
    border-bottom-left-radius: 10px;
    box-sizing: border-box;
    padding: 18px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.33;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #565867;
    -webkit-font-smoothing: antialiased;
    max-height: 200px;
    overflow: scroll;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

.sc-user-input--text:empty:before {
    content: attr(placeholder);
    display: block; /* For Firefox */
    color: rgba(86, 88, 103, 0.3);
    outline: none;
}

.sc-user-input--buttons {
    width: 100px;
    position: absolute;
    right: 10px;
    height: 100%;
    display: flex;
    justify-content: flex-end;
}

.sc-user-input--button:first-of-type {
    width: 40px;
}

.sc-user-input--button {
    width: 30px;
    height: 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sc-user-input--button button {
    cursor: pointer;
}

.sc-user-input--buttons input[type="file"] {
    display: none;
}

.sc-user-input--picker-wrapper {
    display: flex;
    flex-direction: column;
}

.sc-user-input.active {
    box-shadow: none;
    background-color: white;
    box-shadow: 0 -5px 20px 0 rgba(150, 165, 190, 0.2);
}

.sc-user-input--file-icon,
.sc-user-input--send-icon {
    height: 20px;
    width: 20px;
    cursor: pointer;
    align-self: center;
    outline: none;
}

.sc-user-input--file-icon path,
.sc-user-input--send-icon path {
    fill: rgba(86, 88, 103, 0.3);
}

.sc-user-input--file-icon:hover path,
.sc-user-input--send-icon:hover path {
    fill: rgba(86, 88, 103, 1);
}

.sc-user-input--send-icon-wrapper,
.sc-user-input--file-icon-wrapper {
    background: none;
    border: none;
    padding: 2px;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sc-user-input--send-icon-wrapper,
.sc-user-input--file-icon-wrapper {
    flex-direction: row;
}


.message--form {
    padding: 16px;
    box-sizing: border-box;
    overflow-y: scroll;
}

.message--form_group {
    margin-bottom: 6px;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.message--form_group label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    font-weight: 700;
    width: 100%;
}

.message--form_group input, .message--form_group select, .message--form_group textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.message--form_group textarea {
    height: 70px;
}

.message--form_info {
    display: block;
    margin-bottom: 4px;
    color: #a94442;
    font-size: 12px;
}

.message--form button {
    display: inline-block;
    margin-bottom: 0;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    background-color: #009846;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #fff;
}

.user-start {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-items: center;
    text-align: center;
}

.user-start p {
    margin-bottom: 2px;
}

.user-start div {
    width: auto !important;
    justify-content: center !important;
}


.sc-language {
    display: flex;
    justify-content: center;
}

.sc-language button {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    background-color: #009846;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: #fff;
    margin: 0 16px;
}

.message--w100 {
    min-width: 100% !important;
    display: block !important;
}

.sc-chat-wrapper{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: 650px;
}

.holiday-window{
    display: none;
}

.holiday-window .sc-message--text{
    font-size: 16px;
    width: 100%;
}

.sc-chat-holiday .holiday-window{
    display: block;
}

.sc-chat-holiday .sc-chat-wrapper{
    display: none;
}

.sc-chat-holiday.sc-chat-window{
    justify-content: flex-start;
}

.sc-chat-holiday .sc-language{
    margin-top: 10px;
}
