:root {
    --lion-orange: #ffcf51;
    --lion-question-bg: #dde3e9;
    --lion-answer-bg: #f0f0f0;
    --lion-dark-gray: #444;
}

#lion-chatbot {
    height: 100%;
    line-height: 1.375em;
}

#lion-chatbot ol,
#lion-chatbot ul {
    list-style: disc;
    margin-block-start: 1em;
    margin-block-end: 1em;
    padding-inline-start: 2em;
}

#lion-chatbot.fixed {
    bottom: 1.5rem;
    display:flex;
    height:auto;
    max-height:80%;
    max-width: 25rem;
    position: fixed;
    right: 1.5rem;
    transition:bottom .25s ease-in-out, left .25s ease-in-out, padding .25s ease-in-out;
    z-index:10;
}

#lion-chatbot.fixed.cartFlyoutAdjust {
    z-index: 9;
}

#lion-chatbot.fixed.clicked {
    height:100%;
    z-index:9999999999;
}

#lion-chatbot.fixed.productPopup {
    bottom: 9rem;
}

#lion-chatbot.embed {
    height:auto;
}

#lion-chatbot-container {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: end;
}

#lion-chatbot.embed #lion-chatbot-container {
    display:block;
}

#lion-chatbot-button {
    background-color:var(--lion-orange);
    border:0;
    border-radius:100px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    color:black;
    display:none;
    font-weight: 700;
    line-height:1;
    margin-top:0;
    padding:20px;
    position: relative;
    overflow: hidden;
    transition: width .25s ease-in-out, padding .25s ease-in-out, transform .125s ease-in-out, box-shadow .375s ease-in-out;
    width:120px;
    margin-left:auto;
    user-select: none;
}

#lion-chatbot-button:hover {
    box-shadow: 0 3px 5px rgba(0,0,0,.25);
    transform: translateY(-1px);
}

#lion-chatbot.fixed #lion-chatbot-button {
    display:block;
}

#lion-chatbot.clicked #lion-chatbot-button {
    width: 40px;
    margin-top:1rem;
}

#chatbot-button-text {
    left: 50%;
    opacity: 1;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: opacity .25s ease-in-out;
    top: 50%;
    width: 100%;
    white-space: nowrap;
}

#chatbot-button-text img {
    width: 1.5em;
    transform: translateX(-25%);
    display: inline-block !important;
}

#chatbot-button-x {
    left:50%;
    opacity: 0;
    position:absolute;
    top:50%;
    transform:translate(-50%, -50%);
    transition: opacity .25s ease-in-out;
}

#lion-chatbot.clicked #lion-chatbot-button #chatbot-button-text {
    opacity: 0;
}

#lion-chatbot.clicked #lion-chatbot-button #chatbot-button-x {
    opacity: 1;
}

#lion-chatbot-widget {
    background: white;
    border-radius: .5rem;
    box-shadow: 0 0 6px 2px rgba(0, 0, 0, .4);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1em;
}

#lion-chatbot.embed #lion-chatbot-widget {
    max-height: 750px;
}

#lion-chatbot-widget h1 { font-size:1.625rem; }
#lion-chatbot-widget h2 { font-size:1.4125rem; }
#lion-chatbot-widget h3 { font-size:1.125rem }
#lion-chatbot-widget h4 { font-size:1rem; }
#lion-chatbot-widget h5 { font-size: 0.875rem; }

#lion-chatbot-widget h1,
#lion-chatbot-widget h2,
#lion-chatbot-widget h3,
#lion-chatbot-widget h4,
#lion-chatbot-widget h5,
#lion-chatbot-widget h6 {
    margin-top: 1rem;
    line-height: 1.25em;
}

#lion-chatbot-widget #chat-form > #chat-header {
    background: var(--lion-dark-gray);
    border-radius: .4375rem .4375rem 0 0;
    margin: -1rem -1rem 1rem -1rem;
    padding: 1.5rem .75rem;
    display:flex;
}

#lion-chatbot-widget #chat-form > #chat-header h4 {
    flex-grow: 1;
    text-align:center;
    color: white;
    margin-top:0;
}

button.btn-close {
    height: 1.5rem;
    width: 1.5rem;
    line-height: 1.5rem;
    font-size: .75rem;
    border-radius: 1.5rem;
    background-color: rgba(255, 255, 255, .2);
    color: white;
    transition: background-color .25s ease-in-out;
}

button.btn-close:hover {
    background-color: rgba(255, 255, 255, .4);
}

#lion-chatbot.embed #lion-chatbot-widget #chat-form > #chat-header {
    display:none;
}

#lion-chatbot-widget hr {
    margin:1rem 0 !important;
}

#lion-chatbot-widget a {
    color: rgb(50,125,200);
    text-decoration: underline;
}

#lion-chatbot-widget p {
    margin-top: .5em;
    margin-bottom: .5em;
}

#lion-chatbot-widget #response-container {
    overflow-y:auto;
    margin-top: 1em;
    flex-grow:1;
    font-size:.8125rem;
}

#lion-chatbot-widget .chat-section {
    background-color: var(--lion-answer-bg);
    border-radius: 0.75rem 0.75rem 0.75rem 0;
    padding: 1.0rem;
    max-width:95%;
    margin:0 auto 1rem 0;
}

#lion-chatbot-widget .chat-section.chat-question {
    background-color: var(--lion-question-bg);
    border-radius: 0.75rem 0.75rem 0 0.75rem;
    margin-left: auto;
    margin-right:0;
}

#lion-chatbot-widget .chat-section > p:last-child {
    margin-bottom:0;
}

#lion-chatbot-widget #chat-input-group {
    border-radius:.4375rem;
    border:1px solid rgba(0,0,0,.2);
    display:flex;
}

#lion-chatbot-widget #chat-input-group:focus-within {
    box-shadow:0 0 8px 3px rgba(50,100,150,.5);
}

#lion-chatbot-widget #chat-input {
    font-size:.9375rem;
    flex-grow:1;
    padding: 0.5rem;
    border-radius: 0.4125rem;
    border: none;
}

#lion-chatbot-widget #chat-submit {
    background-color: var(--lion-orange);
    color:black;
    text-transform:uppercase;
    border:0;
    border-radius: 0 0.375rem 0.375rem 0;
    padding: .25rem 1.25rem;
    font-size: .8125rem;
    font-weight: 700;
    user-select: none;
}

#lion-chatbot-widget #chat-input:focus-visible {
    outline:none;
}

#lion-chatbot-widget #chat-response table {
    margin-bottom:1rem;
    width: 100%;
    border-radius: 0.5rem;
}

#lion-chatbot-widget #chat-response table th {
    background:#eee;
    border-bottom:1px solid rgba(0,0,0,.2);
    font-weight: 700;
}

#lion-chatbot-widget #chat-response table tr:nth-child(2n) td {
    background: #f0f0f0;
}

#lion-chatbot-widget #chat-response table th, #chat-response table td {
    font-size: 0.9125em;
    padding: .375em;
}

#thinkingDiv {
    margin-bottom:0.5rem;
}

.yyz-display-none {
    display:none !important;
}

.yyz-hidden {
    visibility: hidden;
}

#lion-chatbot li > p:has(+ ul) {
    margin-bottom:0;
}

/*
 * Bubble styles
 */

#lion-chatbot-intro_bubble {
    position: absolute;
    right: 0;
    z-index: 321321321;
    bottom: 3.125rem;
    opacity:0;
    transition: opacity .5s ease-in, transform .375s ease-in;
    transform: scale(.75);
    transform-origin: bottom left;
    display:none;
}

#lion-chatbot-intro_bubble.show {
    opacity: 1;
    transform: scale(1);
}

#lion-chatbot-intro_bubble > button#lion-chatbot-btn-close {
    background: #444;
    font-size: .75rem;
    margin-left: 4px;
    margin-bottom: 6px;
    color: white;
    padding: 2px 12px;
    border-radius: 12px;
    opacity: 0;
    transition:opacity .25s ease-in-out;
}

#lion-chatbot-intro_bubble:hover > button#lion-chatbot-btn-close {
    opacity:1;
}

#lion-chatbot-intro_bubble #lion-chatbot-bubble-exterior {
    width: 205px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
    border: 2px solid rgba(0, 0, 0, .15);
    cursor: pointer;
    font-size: .9125rem;
}

#lion-chatbot-intro_bubble #lion-chatbot-bubble-exterior:after {
    content: "";
    width: 16px;
    height: 16px;
    background: white;
    position: absolute;
    bottom: -5px;
    right: 20px;
    transform: rotate(45deg);
    z-index: 0;
}

#lion-chatbot-intro_bubble #lion-chatbot-bubble-interior {
    padding: .75rem;
    background: white;
    border-radius: .875rem;
    position: relative;
    display: flex;
    align-items: center;
}

#lion-chatbot-intro_bubble #lion-chatbot-bubble-interior img {
    width: 40px;
    background: var(--lion-orange);
    border-radius: 100px;
    padding: 6px;
    margin-right: .625em;
}

/*
 * Media styles
 */
@media ( min-width: 481px ) and ( max-width:768px ) {
    #lion-chatbot.fixed.bottom-nav-buffer,
    .podium-iframe-container.bottom-nav-buffer { /* Adjusts space at bottom for the bottom nav popup */
        bottom: 5rem;
    }


    #lion-chatbot.fixed.productPopup { /* Adjusts space at bottom for the bottom product popup */
        bottom: 6rem;
    }

    #lion-chatbot.fixed.bottom-nav-buffer.productPopup { /* Adjusts space at bottom for the bottom nav + product popup */
        bottom: 10rem;
    }
}

@media (max-width:480px) {
    /* To fix stupid iOS's issue with fixed objects at 100% height */
    html, body { height: 100% }

    #lion-chatbot.fixed {
        right: 0;
        bottom: 24px;
        padding: .5rem;
        max-height: fit-content;
        max-width: fit-content;
        width:100%;
    }

    #lion-chatbot.fixed.bottom-nav-buffer,
    #lion-chatbot.fixed.productPopup,
    .podium-iframe-container.bottom-nav-buffer { /* Adjusts space at bottom for the bottom nav that only shows when scrolling down */
        bottom: 5rem;
    }

    #lion-chatbot.fixed.bottom-nav-buffer.productPopup { /* Adjusts space at bottom for the bottom nav + product popup */
        bottom: 9.5rem;
    }

    #lion-chatbot.fixed.clicked {
        background-color: rgba(0,0,0,.45);
        bottom: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        max-height:100vh;
    }

    #lion-chatbot-container {
        height:min-content;
    }

    #lion-chatbot-widget #chat-input {
        font-size:16px !important;
    }

    #lion-chatbot.fixed.clicked #lion-chatbot-container,
    #lion-chatbot #response-container {
        height:100%;
    }

    #lion-chatbot.fixed.clicked #lion-chatbot-widget {
        border-radius: .5em .5em 0 0;
    }

    #lion-chatbot.clicked #lion-chatbot-button {
        border-radius: 0 0 .5em .5em;
        margin-top: 0;
        padding-bottom: 2em;
        padding-top: 2em;
        width: 100%;
    }

    /* Embed Styles */

    #lion-chatbot.embed {
        position: fixed;
        z-index: 2147483647;
        left: .1875rem;
        right: .1875rem;
        top: 5rem;
        bottom: .1875rem;
        transition:top .25s ease-in-out, bottom .25s ease-in-out;
    }


    #lion-chatbot.embed.bottom-nav-buffer {
        bottom: 3.85rem;
        top: .1875rem;
    }

    #lion-chatbot.embed #lion-chatbot-widget {
        max-height:100%;
    }

    #lion-chatbot.embed #lion-chatbot-container {
        height:100%;
    }

    #lion-chatbot.embed #lion-chatbot-widget #chat-form > h4:first-child {
        display:block;
    }
}