:root {
    --beerloyuz-ai-color: #2B6CB0;
    --beerloyuz-ai-hover-color: #28619e;
    --beerloyuz-ai-popup-color: #2B6CB0;
    --beerloyuz-ai-popup-secondary-color: #527CA8;
}

body.beerloyuz-ai-active.beerloyuz-ai-loaded #beerloyuz-ai-chatbot-toggler {
    display: flex;
}


#beerloyuz-ai-chatbot-toggler * {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#beerloyuz-ai-chatbot-toggler {
    position: fixed;
    bottom: 15px;
    right: 15px;
    min-width: fit-content;
    padding: 10px 10px;
    border: none;
    cursor: pointer;
    display: none;
    gap: 7px;
    align-items: center;
    justify-content: center;
    background: var(--beerloyuz-ai-color);
    color: #fff;
    letter-spacing: 0.1px;
    border-radius: 25px;
    transition: background 0.2s ease;
    z-index: 2147483648;
}

#beerloyuz-ai-chatbot-toggler:hover {
    background: var(--beerloyuz-ai-hover-color);
}

#beerloyuz-ai-chatbot-toggler h3 {
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
}

#beerloyuz-ai-chatbot-toggler img {
    color: #fff;
}



.beerloyuz-ai-chatbot-popup * {
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.beerloyuz-ai-chatbot-popup {
    position: fixed;
    right: 15px;
    bottom: 70px;
    opacity: 0;
    pointer-events: none;
    width: 340px;
    height: 420px;
    background: #fff;
    overflow: hidden;
    transform: scale(0.2);
    transform-origin: bottom right;
    border-radius: 5px;
    box-shadow: 0 0 128px rgba(0, 0, 0, 0.1), 0 32px 64px -48px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    z-index: 2147483648;
}

body.show-beerloyuz-ai-chatbot .beerloyuz-ai-chatbot-popup {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);

}

.beerloyuz-ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--beerloyuz-ai-color);
    padding: 5px 17px;
}

.beerloyuz-ai-chat-header .beerloyuz-ai-header-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.beerloyuz-ai-chat-header .beerloyuz-ai-header-info h2 {
    user-select: none;
}

.beerloyuz-ai-header-info .chatbot-logo {
    height: 18px;
    width: 18px;
    padding: 2px;
    fill: var(--beerloyuz-ai-color);
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
}


.beerloyuz-ai-header-info .beerloyuz-ai-logo-text {

    color: #fff;
    font-size: .82rem;
    font-weight: 600;

}

.beerloyuz-ai-chat-header #beerloyuz-ai-close-chatbot {
    border: none;
    color: #fff;
    height: 40px;
    width: 40px;
    font-size: 1.9rem;
    margin-right: -10px;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    transition: 0.2s ease;
}

#beerloyuz-ai-close-chatbot:hover {
    background: var(--beerloyuz-ai-hover-color);
}

.beerloyuz-ai-chat-header #beerloyuz-ai-delete-chat-history {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    height: 40px;
    width: 40px;
    font-size: 1.9rem;
    cursor: pointer;
    border-radius: 50%;
    background: none;
    transition: 0.2s ease;
}

.beerloyuz-ai-chat-header .beerloyuz-ai-header-controls {
    display: flex;
}


#beerloyuz-ai-delete-chat-history:hover {
    background: var(--beerloyuz-ai-hover-color);
}

.beerloyuz-ai-chat-body {
    padding: 15px 22px;
    display: flex;
    gap: 20px;
    overflow-y: auto;
    overflow-x: auto;
    width: 100%;
    height: 310px;
    margin-bottom: 92px;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #ccccf5 transparent;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message {
    display: flex;
    gap: 11px;
    align-items: center;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message img[src$=".png"],
.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message img[src$=".jpg"],
.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message img[src$=".jpeg"] {
    filter: grayscale(1) brightness(.1);
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message img[src$=".svg"] {
    fill: #000000;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-user-message {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-message .beerloyuz-ai-message-text {
    padding: 6px 10px;
    max-width: 75%;
    font-size: 0.7rem;
    background: #F2F2FF;
}


.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message.beerloyuz-ai-thinking .beerloyuz-ai-message-text {
    padding: 2px 16px;
    border-radius: 13px 13px 13px 3px;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message .beerloyuz-ai-message-text {
    background: #F2F2FF;
    border-radius: 13px 13px 13px 3px;
}


.beerloyuz-ai-chat-body .beerloyuz-ai-user-message .beerloyuz-ai-message-text {
    color: #fff;
    background: var(--beerloyuz-ai-color);
    border-radius: 13px 13px 3px 13px;
}


.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message .beerloyuz-ai-thinking-indicator {
    display: flex;
    gap: 2px;
    padding-block: 8px;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-user-message .attachment {
    width: 50%;
    margin-top: 7px;
    border-radius: 13px 3px 13px 13px;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message .beerloyuz-ai-thinking-indicator .beerloyuz-ai-dot {
    height: 5px;
    width: 5px;
    opacity: 0.7;
    border-radius: 50%;
    background: #6F6BC2;
    animation: dotPulse 1.8s ease-in-out infinite;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message .beerloyuz-ai-thinking-indicator .beerloyuz-ai-dot:nth-child(1) {
    animation-delay: 0.2s;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message .beerloyuz-ai-thinking-indicator .beerloyuz-ai-dot:nth-child(2) {
    animation-delay: 0.3s;
}

.beerloyuz-ai-chat-body .beerloyuz-ai-bot-message .beerloyuz-ai-thinking-indicator .beerloyuz-ai-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {

    0%,
    44% {
        transform: translateY(0);
    }

    28% {
        opacity: 0.4;
        transform: translateY(-4px);
    }

    44% {
        opacity: 0.2;
    }
}

.beerloyuz-ai-chat-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 5px 10px 5px 10px;
}

.beerloyuz-ai-chat-footer .beerloyuz-ai-chat-form {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 32px;
    outline: 1px solid #CCCCE5;
}

.beerloyuz-ai-chat-footer .beerloyuz-ai-chat-form:focus-within {
    outline: 2px solid var(--beerloyuz-ai-color);
}


.beerloyuz-ai-chat-form .beerloyuz-ai-message-input {
    border: none;
    outline: none;
    height: 24px;
    width: 100%;
    resize: none;
    font-size: 0.7rem;
    padding: 4px 0 4px 14px;
    border-radius: inherit;
}

.beerloyuz-ai-chat-form .beerloyuz-ai-chat-controls {
    display: flex;
    height: 32px;
    gap: 3px;
    align-items: center;
    align-self: flex-end;
    padding-right: 6px;
}

.beerloyuz-ai-chat-form .beerloyuz-ai-chat-controls button {
    height: 24px;
    width: 24px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #706DB0;
    background: none;
    border-radius: 50%;
    transition: 0.2s ease;
}

.beerloyuz-ai-chat-form .beerloyuz-ai-chat-controls #beerloyuz-ai-send-message {
    background: var(--beerloyuz-ai-color);
    color: #fff;
    display: none;
}

.beerloyuz-ai-chat-form .beerloyuz-ai-message-input:valid~.beerloyuz-ai-chat-controls #beerloyuz-ai-send-message {
    display: block;
    background: var(--beerloyuz-ai-color);
    color: #fff;

}

.beerloyuz-ai-chat-form .beerloyuz-ai-message-input:valid~.beerloyuz-ai-chat-controls #beerloyuz-ai-send-message:hover {
    background: var(--beerloyuz-ai-hover-color);
}



.beerloyuz-ai-chat-form .beerloyuz-ai-chat-controls button:hover {
    background: #f1f1ff;
}


.beerloyuz-ai-warning {
    font-size: 0.6rem;
    font-weight: 300;
    text-align: center;
    padding-top: 5px;
}

.beerloyuz-ai-message-suggestion-body {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.beerloyuz-ai-message-suggestion-body .beerloyuz-ai-message-suggestions-text {
    font-size: 0.6rem;
}

.beerloyuz-ai-message-suggestion-body .beerloyuz-ai-message-suggestions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.beerloyuz-ai-message-suggestion-body button {
    color: black;
    background: transparent;
    border: 0.5px solid #00000017;
    border-radius: 10px;
    text-align: left;
    padding: 5px 13px;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 300;
    transition: 0.2s border ease;
}

.beerloyuz-ai-message-suggestion-body button:hover {
    border: 0.5px solid var(--beerloyuz-ai-hover-color);
    background: transparent;
    color: black;
}

.beerloyuz-ai-confirm-popup {
    display: flex;
    opacity: 0;
    pointer-events: none;
    justify-content: center;
    font-weight: 300;
    font-size: 0.82rem;
    align-items: center;
    position: absolute;
    border-radius: 5px;
    width: 100%;
    height: 100%;
    background: #00000064;
    z-index: 9999;
    transition: opacity 0.2s ease;
}

.beerloyuz-ai-confirm-content {
    width: 90%;
    height: 150px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.beerloyuz-ai-confirm-btn {
    margin: 8px 4px 0 4px;
    padding: 6px 18px;
    border: none;
    border-radius: 4px;
    background: var(--beerloyuz-ai-color, #2B6CB0);
    color: #fff;
    cursor: pointer;
    font-size: 0.82rem;
}

.beerloyuz-ai-confirm-btn:hover {
    background: var(--beerloyuz-ai-hover-color, #28619e);
}

#beerloyuz-ai-confirm-no {
    background: transparent;
    color: var(--beerloyuz-ai-color, #2B6CB0);
    transition: box-shadow 0.2s ease;
}

#beerloyuz-ai-confirm-no:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.beerloyuz-ai-confirm-buttons {
    display: flex;
    margin-top: 15px;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

body.beerloyuz-ai-active.beerloyuz-ai-loaded .beerloyuz-ai-chatbot-reminder-active {
    display: flex;
}

.beerloyuz-ai-chatbot-reminder {
    position: fixed;
    right: 15px;
    bottom: 60px;
    gap: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
}

.beerloyuz-ai-chatbot-reminder .beerloyuz-ai-chatbot-reminder-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.beerloyuz-ai-chatbot-reminder .beerloyuz-ai-chatbot-reminder-close:hover {
    background: rgb(178, 178, 178);
}

.beerloyuz-ai-chatbot-reminder p {
    user-select: none;
    border-radius: 25px;
    font-size: .72rem;
    padding: 10px;
    background-color: white;
    color: black;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

body.beerloyuz-ai-active.beerloyuz-ai-loaded .beerloyuz-ai-chatbot-error-active {
    display: flex;
}

.beerloyuz-ai-chatbot-error {
    position: absolute;
    top: -80px;
    gap: 20px;
    display: none;
    align-items: center;
    justify-content: center;
}

.beerloyuz-ai-chatbot-error .beerloyuz-ai-chatbot-error-close {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 40px;
    height: 40px;
    background: rgb(152, 16, 16);
    border-radius: 50%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.beerloyuz-ai-chatbot-error .beerloyuz-ai-chatbot-error-close:hover {
    background: rgb(133, 14, 14);
}

.beerloyuz-ai-chatbot-error p {
    user-select: none;
    border-radius: 25px;
    font-size: .67rem;
    padding: 10px;
    background-color: rgb(255, 255, 255);
    color: black;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

/* Popup */

body.beerloyuz-ai-popup-active {
    overflow: hidden;
    touch-action: none;
}

/* Popup Overlay */
#beerloyuz-ai-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.218);
    /* matches --beerloyuz-ai-color */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2147483649;
}

/* Show popup (add .active class with JS) */
body.beerloyuz-ai-active.beerloyuz-ai-loaded.beerloyuz-ai-popup-active #beerloyuz-ai-popup {
    display: flex;
}



.beerloyuz-ai-popup-content * {
    font-family: "Montserrat", sans-serif;
}

/* Popup Content */
.beerloyuz-ai-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 40px rgba(43, 108, 176, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 60px;
    min-width: 320px;
    min-height: 400px;
    max-width: 95vw;
    width: 470px;
    gap: 10px;
    position: relative;
    animation: popupIn 0.25s cubic-bezier(.4, 2, .6, 1) both;
}

@keyframes popupIn {
    0% {
        transform: scale(0.85) translateY(40px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.beerloyuz-ai-popup-close {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding-bottom: 5px;
    background: none;
    border-radius: 50%;
    border: none;
    font-size: 1.7rem;
    color: black;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.beerloyuz-ai-popup-close:hover {
    color: black;
    background-color: rgba(0, 0, 0, 0.073);
}

.beerloyuz-ai-popup-close:focus {
    color: black;
    background-color: rgba(0, 0, 0, 0.073);
}

/* Header */
.beerloyuz-ai-popup-header {
    display: flex;
    height: 90%;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}

.beerloyuz-ai-popup-header h2 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--beerloyuz-ai-popup-color);
    font-weight: 800;
    margin-bottom: 2px;
}

.beerloyuz-ai-popup-subheader {
    font-size: 1rem;
    color: var(--beerloyuz-ai-popup-secondary-color);
    font-weight: 500;
}

.beerloyuz-ai-popup-company {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

/* Body */
.beerloyuz-ai-popup-body {
    margin-bottom: 18px;
    text-align: center;
}

.beerloyuz-ai-popup-body p {
    font-size: 1rem;
    color: #222;
    margin: 0;
}

/* Form */
.beerloyuz-ai-popup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.beerloyuz-ai-popup-form label.error {
    color: red;
    font-size: 0.8rem;
}

.beerloyuz-ai-popup-form input.error {
    background-color: rgba(255, 0, 0, 0.132);
    font-size: 0.8rem;
}



.beerloyuz-ai-popup-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccccf5;
    border-radius: 5px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
}

.beerloyuz-ai-popup-form input[type="text"]:focus {
    border: 1.5px solid var(--beerloyuz-ai-color, #2B6CB0);
}

.btn2 {
    text-transform: uppercase;
}


.btn-shadow-drop2 {
    position: relative;
    background: white;
    padding: 10px;
    font-size: 0.5em;
    font-weight: 700;
    letter-spacing: 3px;
    transition: 0.3s ease-in-out;
    left: 0px;
    top: 0px;
    width: 100%;
}

.btn-shadow-drop2:hover {
    left: 4px;
    top: 4px;
    background-color: var(--beerloyuz-ai-popup-color);
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px;
}

.btn-shadow-drop2:focus {
    background-color: var(--beerloyuz-ai-popup-color);
}

.btn-shadow-drop--blue2 {
    border: 1px solid var(--beerloyuz-ai-popup-color);
    color: var(--beerloyuz-ai-popup-color);
    box-shadow: var(--beerloyuz-ai-popup-color) 4px 4px 0px 0px;
}

.beerloyuz-ai-popup-contact {
    text-align: center;
    color: gray;
    font-size: 0.75rem;
}

.beerloyuz-ai-popup-contact a {
    color: var(--beerloyuz-ai-popup-secondary-color);

}

.beerloyuz-ai-popup-contact a:hover,
.beerloyuz-ai-popup-contact a:focus {
    color: var(--beerloyuz-ai-popup-color);
}

.beerloyuz-ai-popup-success {
    background: rgba(0, 128, 0, 0.642);
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    font-size: 0.8rem;
}

.beerloyuz-ai-popup-error {
    background: rgba(255, 0, 0, 0.621);
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    font-size: 0.8rem;
}


.beerloyuz-ai-popup-social {
    display: flex !important;
    justify-content: center !important;
    flex-flow: wrap !important;
    gap: 1rem !important;
    list-style: none !important;
    margin: 0px !important;
    width: 100% !important;
}

.beerloyuz-ai-popup-social li {
    position: relative !important;
    flex-basis: 3rem !important;
}

.beerloyuz-ai-popup-social li::after {
    position: absolute !important;
    /* content: "Tooltip"; */
    content: attr(data-tooltip) !important;
    inset: -45% auto auto 50% !important;
    z-index: -1 !important;
    translate: -50% !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
    color: #fff !important;
    /* background: #070707; */
    background: var(--bg, #070707) !important;
    border-radius: 0.25rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    /* transition: all 0.3s ease-in-out; */
    transition: inset 0.4s cubic-bezier(0.47, 2, 0.41, 1.5),
        visibility 0.3s ease-in-out, opacity 0.2s ease-in-out !important;
}

.beerloyuz-ai-popup-social li:has(a:hover, a:focus-visible)::after {
    opacity: 1 !important;
    visibility: visible !important;
    inset-block-start: -60% !important;
}

.beerloyuz-ai-popup-social a {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    aspect-ratio: 1 !important;
    font-size: 1.75rem !important;
    color: #070707 !important;
    border: 1px solid !important;
    border-radius: 100% !important;
    text-decoration: none !important;
    outline: none !important;
    overflow: hidden !important;
    transition: filter 0.3s ease-in-out !important;
}

.beerloyuz-ai-popup-social a>i {
    position: relative !important;
    z-index: 1 !important;
}

.beerloyuz-ai-popup-social a::after {
    position: absolute !important;
    content: "" !important;
    inset: 100% 0 0 !important;
    /* background: #070707; */
    background: var(--bg, #070707) !important;
    pointer-events: none !important;
    transition: inset 0.3s ease-in-out !important;
}

.beerloyuz-ai-popup-social a:hover img,
.beerloyuz-ai-popup-social a:focus-visible img {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.3s ease-in-out !important;
    z-index: 5 !important;
}

.beerloyuz-ai-popup-social a:hover::after,
.beerloyuz-ai-popup-social a:focus-visible::after {
    inset-block-start: 0 !important;
}


.beerloyuz-ai-popup-honey {
    display: none !important;
}

@media (max-width: 767px) {

    body.show-beerloyuz-ai-chatbot {
        overflow: hidden;
        position: fixed;
        width: 100vw;
        height: 100vh;
        touch-action: none;
    }



    .beerloyuz-ai-chatbot-popup {
        width: 100%;
        right: 0;
        bottom: 0;
        border-radius: 0;
        height: 70%;
    }

    .beerloyuz-ai-chat-body {
        height: calc(90% - 55px);
        padding: 25px 15px;
    }

    .beerloyuz-ai-chat-footer {
        padding: 5px 10px 5px 10px;
    }

    body.show-beerloyuz-ai-chatbot::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.218);
        /* Adjust opacity for darkness */
        z-index: 2147483648;
        pointer-events: none;
        transition: background 0.3s;
    }

    .beerloyuz-ai-chatbot-reminder p {
        user-select: none;
        border-radius: 25px;
        font-size: .62rem;
    }


    .beerloyuz-ai-chatbot-error p {
        font-size: .57rem;
    }


    .beerloyuz-ai-popup-content {
        min-height: 450px;
        min-width: 90vw;
        padding: 30px 45px;
    }

    .beerloyuz-ai-popup-header h2 {
        font-size: 1.1rem;
    }

    .beerloyuz-ai-popup-body p {
        font-size: 0.95rem;
    }
}