* {
    box-sizing: border-box;
}
.genchat-chat-widget-wrap {
    z-index: 2147483000;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    transform-origin: center center;
}
.genchat-chat-widget-btn {
    position: absolute;
    top: 0px;
    left: 0px;
    background: #f46177;
    width: 50px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    backface-visibility: hidden;
    transition: transform 167ms cubic-bezier(0.33, 0, 0, 1) 0s;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.genchat-chat-widget-btn:hover {
    transition: transform 250ms cubic-bezier(0.33, 0, 0, 1) 0s;
    transform: scale(1.1);
}
.genchat-chat-widget-close-icon {
    display: none;
}
.genchat-chat-widget-window-wrap {
    z-index: 2147483000;
    position: fixed;
    bottom: 84px;
    right: 20px;
    min-height: 80px;
    height: calc(100% - 100px);
    width: 340px;
    max-height: 500px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
    border-radius: 12px;
    transform-origin: right bottom;
    pointer-events: all;
    background: #fafdff;
    display: none;
}
.genchat-chat-widget-close {
    background: #fff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ff5252bf;
    border-radius: 6px;
    line-height: 1.2;
    cursor: pointer;
    position: absolute;
    right: -17px;
    top: -22px;
}

@media only screen and (max-width: 480px) {
    .genchat-chat-widget-window-wrap {
        right: 0;
        bottom: 0;
        width: 100%;
    }
}

.window-content-area {
    padding: 7px;
    max-height: 100%;
    overflow: auto;
}
.window-bottom-area-wrap {
    position: absolute;
    bottom: 0;
    background: #fff;
    width: 100%;
    height: 80px;
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

@media screen and (max-width: 768px) {
    .window-bottom-area-wrap {
        height: 60px;
    }
    .genchat-chat-widget-tab {
        font-size: 12px;
    }
    .bottom-tabs .genchat-chat-widget-tab svg {
        width: 20px;
        height: 20px;
    }
}

.bottom-tabs {
    display: flex;
    justify-content: space-between;
    padding: 11px 25px;
    align-items: center;
}
.genchat-chat-widget-tab {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}
.genchat-chat-widget-tab:hover,
.genchat-chat-widget-tab.genchat-tab-active {
    color: #f46177;
}
.genchat-chat-widget-tab:hover svg path,
.genchat-chat-widget-tab:hover svg circle,
.genchat-chat-widget-tab.genchat-tab-active svg path,
.genchat-chat-widget-tab.genchat-tab-active svg circle {
    fill: #f46177;
}
.genchat-window-title {
    font-size: 24px;
    color: #fff;
    margin-top: 25px;
}
.genchat-active {
    display: block;
}
.genchat-hide {
    display: none;
}
.genchat-ai-chat-form-wrap {
    padding: 10px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-top: 2px;
}
.genchat-chat-widget-header {
    margin-bottom: 12px;
    position: relative;
}
.genchat-ai-tab-title {
    margin: 0 !important;
    padding: 6px !important;
    font-size: 16px;
    font-weight: 600;
    background: #f46177;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.genchat-ai-tab-title span {
    width: 12px;
    height: 12px;
    background: #0fd9a2;
    display: block;
    border-radius: 69px;
}
.genchat-chat-widget-header-custom-element {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e7e0e0;
    padding: 8px 0px;
}
.genchat-custom-elements ul {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.genchat-custom-elements ul li a {
    background: #f46177;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 58px;
}
.genchat-custom-elements ul li a svg,
.genchat-custom-elements ul li a svg path {
    fill: #ffffff;
}
.genchat-custom-elements ul li a {
    position: relative;
}
.genchat-custom-elements .custom-element-tooltip {
    display: none;
    position: absolute;
    top: -25px;
    font-size: 13px;
    background: #212121;
    color: #ffffff;
    width: max-content;
    text-align: center;
    z-index: 999;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}
.genchat-custom-elements .custom-element-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: black transparent transparent transparent;
}
.genchat-custom-elements ul li a:hover .custom-element-tooltip {
    display: block;
}
.genchat-ai-conversation-block {
    overflow-y: scroll;
    height: 100vh;
    padding-right: 10px;
}
.ai-chat-request-item {
    /*  text-align: right;*/
    display: flex;
    justify-content: end;
}
.ai-chat-request-item span {
    background: #f4f4f4;
}
.ai-chat-response-item {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    align-items: flex-start;
}
.ai-chat-response-item svg {
    width: 20px;
    height: auto;
}
.ai-chat-response-item .bot-icon {
    width: 30px;
    height: auto;
    max-width: max-content;
    border: 2px solid #f46177;
    border-radius: 50px;
    padding: 2px;
}
.ai-chat-response-item span {
    background: #e3effd;
}
.ai-chat-request-item span p:not(:first-child),
.ai-chat-response-item span p:not(:first-child) {
    margin-top: 10px !important;
    margin-bottom: 0px !important;
}
.ai-chat-request-item span p:first-child,
.ai-chat-response-item span p:first-child {
    margin: 0px !important;
}
.ai-chat-request-item span h3,
.ai-chat-response-item span h3 {
    font-size: 18px;
}

.ai-chat-response-item {
    text-align: left;
}
.ai-chat-request-item,
.ai-chat-response-item {
    margin-bottom: 20px;
}
.ai-chat-request-item span,
.ai-chat-response-item span {
    border-radius: 6px;
    padding: 8px;
    font-size: 15px;
    color: #111;
    display: inline-block;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.5;
}
.genchat-ai-prompt-block input {
    border: 1px solid #f4f4f4;
    border-radius: 8px;
    height: 40px;
    font-size: 15px;
    max-width: 100%;
    width: 100%;
    background: #f4f4f4;
    padding: 5px;
}
.genchat-ai-prompt-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #ccc;
    padding-top: 7px;
}
.genchat-ai-prompt-block textarea {
    border-radius: 5px;
    border: 1px solid #e7e0e0;
    height: 55px;
    padding: 6px;
    width: 100%;
    font-size: 15px;
}
.ai-chat-trigger {
    background: #f46177;
    border-radius: 8px;
    display: inline-flex;
    padding: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.ai-chat-trigger:hover {
    scale: 1.1;
}
.genchat-alert {
    font-size: 14px;
}

.genchat-scrollbar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #f5f5f5;
    border-radius: 5px;
}

.genchat-scrollbar::-webkit-scrollbar {
    border-radius: 5px;
    width: 10px;
    background-color: #f5f5f5;
}

.genchat-scrollbar::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: #f90;
    background-image: -webkit-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
}

.genchat-loader {
    width: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 0 0 #0004;
    animation: l1 1s infinite;
}
@keyframes l1 {
    100% {
        box-shadow: 0 0 0 30px #0000;
    }
}

.genchat-chat-suggestions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}
.genchat-chat-suggestions-top {
    font-size: 14px;
    margin-bottom: 7px;
    display: block;
    font-weight: 500;
}
.genchat-chat-suggestions .genchat-chat-suggestion {
    border: 1px solid #f46177;
    display: inline-block;
    border-radius: 6px;
    padding: 4px 6px;
    line-height: 1.2;
    font-size: 14px;
    cursor: pointer;
    background: #f4617714;
    transition: 0.3s;
    font-weight: 400;
    color: #111111;
}
.genchat-chat-suggestions .genchat-chat-suggestion:hover {
    background: #f46177;
    color: #fff;
}

.genchat-loader {
    width: 30px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side, #000 90%, #0000);
    background: var(--_g) 0% 50%, var(--_g) 50% 50%, var(--_g) 100% 50%;
    background-size: calc(100% / 3) 100%;
    animation: genchat-loaderl7 1s infinite linear;
}
@keyframes genchat-loaderl7 {
    33% {
        background-size: calc(100% / 3) 0%, calc(100% / 3) 100%,
            calc(100% / 3) 100%;
    }
    50% {
        background-size: calc(100% / 3) 100%, calc(100% / 3) 0%,
            calc(100% / 3) 100%;
    }
    66% {
        background-size: calc(100% / 3) 100%, calc(100% / 3) 100%,
            calc(100% / 3) 0%;
    }
}
