﻿@font-face {
    font-family: 'Salesforce Sans';
    src: url('https://c1.sfdcstatic.com/etc/clientlibs/sfdc-aem-master/clientlibs_base/fonts/SalesforceSans-Regular.woff') format('woff'), url('https://c1.sfdcstatic.com/etc/clientlibs/sfdc-aem-master/clientlibs_base/fonts/SalesforceSans-Regular.ttf') format('truetype');
}

.form_web-to-case {
    display: none;
    position: fixed;
    flex-direction: column;
    max-width: calc(100% - 24px);
    height: 90%;
    max-height: 498px;
    z-index: 15;
    text-align: center;
    overflow: hidden;
    font-size: 16px;
    border-radius: 8px 8px 0 0;
    bottom: 0;
    left: 20px;
    width: 320px;
    box-shadow: 2px 2px 20px rgb(0 0 0 / 20%);
    background-color: #fff;
    font-family: 'Salesforce Sans', sans-serif;
}

.fieldList {
    margin: 12px 24px 0 12px;
    padding: 0 0 15px;
    text-align: start;
}

.fieldList-outer {
    width: 100%;
    height: calc(100% - 81px);
    overflow-y: auto;
    position: relative;
    background-color: var(--lwc-esColorBackgroundInverse,#fff);
    margin-bottom: 81px;
    border-radius: 0 0 8px 8px;
}

.form-outer-div {
    overflow: hidden;
    max-height: 100%;
    height: 100%;
    position: relative;
}

.header_web-to-case {
    background-color: #000000;
    color: #fff;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    padding: 0 14px;
    height: 50px;
}

    .header_web-to-case > button.close_web-to-case {
        color: #fff;
        float: right;
        background-color: #000;
        padding-right: 0;
        border: 0;
    }

.close_web-to-case > i.fa-times {
    -webkit-text-stroke: 5px #000;
    padding-left: 4px;
    padding-right: 4px;
    border-radius: 8px;
}

.title_web-to-case {
    margin: 0;
    align-self: center;
    flex-grow: 1;
    text-align: left;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit;
    font-weight: normal;
    letter-spacing: 0.025em;
    line-height: 1.1;
    color: #fff;
}

.img_web-to-case {
    margin-right: 8px;
    max-height: 36px;
    max-width: 36px;
}

#btn_web-to-case {
    display: inline-block;
    position: fixed;
    bottom: 0;
    left: calc(137px + 20px + 20px);
    background-color: var(--primary500);
    /*padding: 0 10px;*/
    border: none;
    border-radius: 8px 8px 0 0;
    color: #000;
    height: 27px;
    box-shadow: none;
    font-family: "Salesforce Sans", sans-serif;
    font-size: 0.875em;
    font-weight: normal;
    text-shadow: none;
    text-align: center;
    z-index: 1000;
    max-width: 150px;
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

    #btn_web-to-case:hover {
        background-color: #2db370;
    }

    #btn_web-to-case > i.fa {
        margin-right: 20px;
    }

.web-to-case_submit-outer {
    width: 100%;
    padding: 30px 24px 24px;
    position: absolute;
    box-sizing: border-box;
    bottom: 0;
}

.submit_web-to-case {
    height: 27px;
    background-color: var(--primary500);
    color: #fff;
    font-family: "Salesforce Sans", sans-serif;
    height: 44px;
    border: none;
    border-radius: 4px;
    font-size: 1.25rem;
    font-weight: bold;
    width: 100%;
    text-overflow: ellipsis;
    transition: all ease 0.3s;
}

    .submit_web-to-case:hover {
        background-color: #177D4A;
    }


.form-form_web-to-case {
    height: 100%;
}

.close_web-to-case > i.fa-times:hover {
    background-color: #333333;
    -webkit-text-stroke: 5px #333333;
}

.fieldList label {
    font-size: 0.75em;
}

.fieldList input.text, .fieldList textarea.text {
    display: block;
    width: 100%;
    line-height: 2.5rem;
    height: auto;
    border-radius: 4px;
    border: 1px solid #949494 !important;
}

    .fieldList input.text:focus, textarea.text:focus {
        outline: none !important;
        border: 1px solid #177D4A !important;
        border-color: #177D4A !important;
        box-shadow: 0 0 2px #177D4A;
    }

@media(max-width: 767px) {
    .helpButton {
        left: 20px !important;
        bottom: 0 !important;
    }
    .helpButtonEnabled.uiButton {
        border-radius: 8px 8px 0 0 !important;
    }
}
/******************************************************************************************/
.embeddedServiceHelpButton .helpButton {
    height: unset;
}

.helpButton {
    left: 20px;
    bottom: 0;
}

    .helpButton .message, .helpButton .message:focus, .helpButton .assistiveText, .helpButton .assistiveText:focus {
        text-decoration: none !important;
    }

.embeddedServiceHelpButton .helpButton .uiButton {
    background-color: var(--primary500);
    color: #000;
    font-family: "Salesforce Sans", sans-serif;
    box-shadow: none;
}

    .embeddedServiceHelpButton .helpButton .uiButton:focus {
        outline: 1px solid var(--primary500);
    }

.embeddedServiceHelpButton .helpButton .uiButton {
    height: 27px;
}

.embeddedServiceSidebarFormField input {
    line-height: 2.5rem !important;
    height: auto !important;
}

.dockableContainer.showDockableContainer {
    left: 20px !important;
    right: auto !important;
    width: 320px !important;
    max-height: 498px !important;
    bottom: 0;
    position: fixed;
    border-radius: 8px 8px 0 0;
}

.uiButton--default.uiButton.embeddedServiceSidebarButton {
    height: auto !important;
    padding: 0.7rem 0 !important;
}

ul.messageWrapper > li.wrapper.chatMessage {
    min-height: unset !important;
}

button.sidebarHeader.minimizedContainer.embeddedServiceSidebarMinimizedDefaultUI {
    left: 20px !important;
    right: auto !important;
    max-width: 150px;
    min-width: 134.5px;
    width: 150px;
    border-radius: 8px 8px 0 0;
    height: 27px;
    bottom: 0!important;
    position: fixed;
}

.helpButton > .helpButtonEnabled.uiButton {
    max-width: 150px;
    min-width: 134.5px;
    width: 150px;
}

@media(max-width: 355px){
    .form_web-to-case{
        max-width: calc(100% - 40px);
    }
}

@media(max-width: 345px) {
    .helpButtonEnabled.uiButton {
        width: calc((100vw - 50px)/2) !important;
        max-width: calc((100vw - 50px)/2) !important;
        min-width: calc((100vw - 50px)/2) !important;
    }

    button.sidebarHeader.minimizedContainer.embeddedServiceSidebarMinimizedDefaultUI {
        width: calc((100vw - 50px)/2) !important;
        max-width: calc((100vw - 50px)/2) !important;
        min-width: calc((100vw - 50px)/2) !important;
    }

    #btn_web-to-case {
        width: calc((100% - 60px)/2);
        max-width: calc((100% - 60px)/2);
        min-width: calc((100% - 60px)/2);
        left: calc((100% + 10px)/2);
    }

        #btn_web-to-case > .fa {
            margin-right: 5%!important;
        }

    .dockableContainer.showDockableContainer {
        max-width: calc(100% - 40px) !important;
        margin: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        position: fixed !important;
    }
    .fieldList {
        margin: 12px 24px 0 24px;
    }
}

@media(max-width: 355px) {
    .form_web-to-case {
        max-width: calc(100% - 40px);
    }
}

@media(max-width: 767px){
    .dockableContainer.showDockableContainer {
        max-width: calc(100% - 40px) !important;
        margin: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        position: fixed !important;
    }
}
