html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
}

@media (min-width: 576px) {
    .center-webchat [data-cognigy-webchat] {
        position: fixed;

        left: 50%;
        top: 50%;

        width: 480px;
        height: 640px;

        margin-left: -240px;
        margin-top: -320px;
    }

    .center-webchat [data-cognigy-webchat-toggle] {
        display: none !important;
    }

    .webchat [data-header-close-button] {
        display: none !important;
    }

    div[role="dialog"] .webchat-header-close-button {
        display: initial !important;
    }
}

button.webchat-input-persistent-menu-item {
    display: block;
    position: relative;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    text-align: left;
    color: rgba(0, 0, 0, 0.87);
    padding: 8px 24px;
    margin: 8px;
    border-radius: 16px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.12);
    border-width: 1px;
}

/*Fix due to cognigy changing font size to rem instead of fixed size*/
[data-cognigy-webchat-root] .webchat-input-message-container .webchat-input-message-input,
[data-cognigy-webchat-root] .webchat-input-message-container .webchat-input-message-label {
    font-size: medium;
}

[data-cognigy-webchat-root] .webchat-buttons-template-root {
    flex-grow: 1;
}

[data-cognigy-webchat-root] #loginSuggestion p.intro-text {
    padding-bottom: 10px !important;
}

.bottom-webchat [data-cognigy-webchat-root] div#webchatIntro .intro-text,
.bottom-webchat [data-cognigy-webchat-root] div#webchatIntro ul {
    margin: 0px;
    padding: 0px 0px 10px;
}

.bottom-webchat [data-cognigy-webchat-root] div#webchatIntro {
    margin: 0px;
    padding: 20px 20px 10px 20px;
}

.center-webchat [data-cognigy-webchat-root] div#webchatIntro .intro-text,
.center-webchat [data-cognigy-webchat-root] div#webchatIntro ul {
    margin: 0px;
    padding: 0px 0px 20px;
}

.center-webchat [data-cognigy-webchat-root] div#webchatIntro {
    margin: 0px;
    padding: 20px;
}

[data-cognigy-webchat-root] div:has(#webchatGetStartedButton) {
    min-height: auto;
}

#webchatIntro p.intro-text:nth-child(3) {
    padding-bottom: 10px !important;
}

[data-cognigy-webchat-root] div#webchatIntro ul li {
    display: flex;
}

.hide-webchat-bar [data-cognigy-webchat-root] .webchat-header-bar {
    display: none !important;
}

[data-cognigy-webchat-root] .regular-message.agent {
    background: white !important;
    color: rgba(0, 0, 0, 0.95) !important;
}

[data-cognigy-webchat-root] button.webchat-quick-reply-template-reply b {
    font-weight: bold;
}

.center-webchat .webchat-homescreen-close-button {
    display: none !important;
}

.center-webchat .webchat-header-minimize-button {
    display: none !important;
}

@media (min-width: 576px) {
    #webchatWindow.custom-size-chat-window {
        top: auto;
        bottom: auto;
        margin-left: auto;
        margin-right: auto;
        margin-top: auto;
        margin-bottom: auto;
        left: auto;
        right: auto;
        place-self: anchor-center;
        min-width: 480px;
        min-height: 640px;
    }
}

/* Properties for accessibiliy , disabled for the website integration */
body:not(.bottom-webchat) [data-cognigy-webchat-root] {
    height: 100vh;
    justify-content: center;
}

[data-cognigy-webchat-root] .adaptivecard-wrapper .ac-horizontal-separator {
    height: 8px !important;
}

/* Webchat root */
[data-cognigy-webchat-root] .webchat-input {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    gap: 0;
    padding: 6px 15px;
}

/* Hide scroll down button arrow */
[data-cognigy-webchat-root] .webchat button.webchat-scroll-to-bottom-button {
    display: none;
}

/* Webchat header */
[data-cognigy-webchat-root] .webchat-header-bar {
    padding: 14px;
}

[data-cognigy-webchat-root] .webchat-header-bar button:focus-visible {
    position: relative;
}

[data-cognigy-webchat-root] .webchat-header-bar button:focus-visible:after {
    box-shadow: 0 0 .6rem .1rem #fff;
    content: " ";
    pointer-events: none;
    position: absolute;
    left: -.3rem;
    right: -.3rem;
    top: -.5rem;
    bottom: -.5rem;
    border-radius: 4px;
}

[data-cognigy-webchat-root] .webchat-quick-reply-template-replies-container {
    max-width: 85% !important;
    place-content: center;
    padding-left: 0;
}

/* Hide additional text after bot icon and before timestamp */
[data-cognigy-webchat-root] article .message-header ._avatar-name_21mid_27 {
    display: none;
}

[data-cognigy-webchat-root] article .message-header svg {
    display: none;
}

/* Fix due to cognigy setting size with rem */
[data-cognigy-webchat-root] article .message-header time {
    font-size: small;
}

[data-cognigy-webchat-root] article ._avatar_ry0w9_1 {
    background: none;
}

/* Quick reply buttons */
[data-cognigy-webchat-root] button.webchat-quick-reply-template-button:not(.end-live-chat-button) span {
    font-weight: 300;
    font-size: 16px;
}

/* Content from bot */
[data-cognigy-webchat-root] article.bot ._bubble_jbjrn_1 {
    max-width: 85% !important;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: rgba(151, 124, 156, 0.1) 0px 5px 9px 0px, rgba(203, 195, 212, 0.1) 0px 5px 16px 0px, rgba(216, 212, 221, 0.1) 0px 8px 20px 0px;
    border: 1px solid rgb(230, 230, 230);
    font-size: 16px;
}

/* Content from user */
[data-cognigy-webchat-root] article.user ._bubble_jbjrn_1 {
    max-width: 75% !important;
}

[data-cognigy-webchat-root] article.user ._bubble_jbjrn_1 {
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 16px;
}

/* USER ICON */
[data-cognigy-webchat-root] article.user {
    position: relative;
    right: 2%;
}

[data-cognigy-webchat-root] article.user::after {
    content: url("../Images/test_user_icon.png");
    position: absolute;
    right: -6%;
    bottom: -8%;
}

/* General buttons wrapper*/
[data-cognigy-webchat-root] .webchat-buttons-template-root ._buttons_1xkbz_1 {
    justify-content: center;
    max-width: 85% !important;
}

/* General buttons */
[data-cognigy-webchat-root] .webchat-buttons-template-root a.phone-number-or-url-anchor span {
    font-weight: 300;
    font-size: 16px;
}

[data-cognigy-webchat-root] .webchat-buttons-template-button span {
    font-weight: 300;
    font-size: 16px;
}

[data-cognigy-webchat-root] .webchat-buttons-template-root a.phone-number-or-url-anchor svg {
    display: none;
}

[data-cognigy-webchat-root] .webchat-buttons-template-root button._button_1ukty_1 span {
    font-weight: 300;
    font-size: 16px;
}

/* Drop down for route change */
[data-cognigy-webchat-root] article.bot .maui-theme-lh {
    max-width: 75%;
}

[data-cognigy-webchat-root] article.bot .maui-theme-lh button {
    font-weight: 300;
    border-radius: 4px;
    border-width: 1px;
}

/* Footer menu button in chat header */
[data-cognigy-webchat-root] .webchat-header-bar svg g circle,
[data-cognigy-webchat-root] .webchat-header-bar svg,
[data-cognigy-webchat-root] .webchat-header-bar svg path {
    fill: #ffffff;
}

/* End live chat */
[data-cognigy-webchat-root] article.hide-end-live-chat-button button.webchat-quick-reply-template-button.sticky {
    position: absolute !important;
    transition: width 0.3s linear, top 0.5s ease-in-out, color 250ms ease-in-out, background-color 250ms ease-in-out !important;
    top: 56px;
    left: 0;
    z-index: 100;
    width: 100%;
    margin: 0;
    border-radius: 0 !important;
    height: 50px;
}


[data-cognigy-webchat-root] article.hide-end-live-chat-button button:not(.end-live-chat-button) {
    display: none !important;
}

[data-cognigy-webchat-root] #webchatIntro+.webchat-chat-history {
    visibility: hidden;
}

[data-cognigy-webchat-root] .login-suggestion-button {
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 160%;
}

/* Calendar scroll */
._wrapper_ffdha_1 ._contentWrapper_ffdha_748 {
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 5px;
}

/*Center webchat / issue fix for browser zoom*/
@media (min-width: 576px) {
    .center-webchat [data-cognigy-webchat-root] [data-cognigy-webchat] {
        width: 480px;
        height: 640px;
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto;
    }
}

/* USER ICON */
@media (max-width: 400px) {
    [data-cognigy-webchat-root] article.user {
        right: 3%;
    }

    [data-cognigy-webchat-root] article.user::after {
        right: -8%;
    }
}