
a {
    font-weight: 500;
    color: #646cff;
    text-decoration: inherit;
}
a:hover {
    color: #535bf2;
}

h1 {
    font-size: 3.2em;
    line-height: 1.1;
}
button {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    background-color: #1a1a1a;
    cursor: pointer;
    transition: border-color 0.25s;
}
button:hover {
    border-color: #646cff;
}
button:focus,
button:focus-visible {
    outline: 4px auto -webkit-focus-ring-color;
}
@media (prefers-color-scheme: light) {
    :root {
        color: #213547;
        background-color: #fff;
    }
    a:hover {
        color: #747bff;
    }
    button {
        background-color: #f9f9f9;
    }
}
.chat-widget-button {
    position: fixed;
    bottom: 30%;
    right: 0%;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 16px 24px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px #00000026;
    z-index: 1000;
}
.chat-widget-window {
    position: fixed;
    bottom: 30%;
    right: 1%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px #0000002e;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    resize: none;
}
.chat-widget-header {
    background: #007bff;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}
.chat-widget-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chat-widget-whatsapp-link {
    color: #fff;
    transition: transform 0.2s;
}
.chat-widget-whatsapp-link:hover {
    transform: scale(1.15);
}
.chat-widget-whatsapp-icon {
    width: 22px;
    height: 22px;
    color: #25d366;
}
.chat-widget-logo {
    height: 24px;
    margin-right: 12px;
}
.chat-widget-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    margin-top: 0 !important;
}
.chat-widget-messages {
    flex: 1;
    padding: 12px;
    background: url(./body-bg.png);
    overflow-y: auto;
    max-height: 100%;
}
.chat-widget-msg {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 16px;
    max-width: 80%;
    word-break: break-word;
}
.chat-widget-msg-user {
    background: #347bff;
    align-self: flex-end;
    margin-left: auto;
    color: #fefefe;
}
.chat-widget-msg-bot {
    background: #fff;
    align-self: flex-start;
    margin-right: auto;
    color: #000;
}
.chat-widget-msg-loading {
    display: flex;
    align-items: center;
    padding: 10px 14px;
}
.chat-widget-msg-loading .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #347bff;
    margin: 0 3px;
    animation: wave 1.3s linear infinite;
}
.chat-widget-msg-loading .dot:nth-child(2) {
    animation-delay: -1.1s;
}
.chat-widget-msg-loading .dot:nth-child(3) {
    animation-delay: -0.9s;
}
@keyframes wave {
    0%,
    60%,
    to {
        transform: initial;
    }
    30% {
        transform: translateY(-10px);
    }
}
.chat-widget-input-row {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
    background: #fff;
    align-items: center;
}
.chat-widget-input {
    flex: 1;
    border: 1px solid #d9d9d9;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 16px;
    outline: none;
    background: #f0f0f0;
    color: #000;
    box-shadow: inset 2px 2px 5px #b8b8b8, inset -3px -3px 7px #fff;
    transition: box-shadow 0.2s;
}
.chat-widget-input:focus {
    box-shadow: inset 1px 1px 3px #b8b8b8, inset -2px -2px 5px #fff;
}
.chat-widget-send {
    background: #f0f0f0;
    color: #6d28d9;
    border: none;
    border-radius: 10px;
    padding: 7px;
    margin-left: 10px;
    cursor: pointer;
    box-shadow: 3px 3px 6px #b8b8b8, -3px -3px 6px #fff;
    transition: all 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}
.chat-widget-send-icon {
    width: 30px;
    height: 30px;
    color: #007bff;
}
.chat-widget-send:hover:not(:disabled) {
    box-shadow: 2px 2px 4px #b8b8b8, -2px -2px 4px #fff;
}
.chat-widget-send:active:not(:disabled) {
    box-shadow: inset 2px 2px 5px #b8b8b8, inset -3px -3px 7px #fff;
    transform: translateY(1px);
}
.chat-widget-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: inset 2px 2px 5px #b8b8b8, inset -3px -3px 7px #fff;
}
.chat-widget-resize-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    cursor: nw-resize;
    z-index: 10;
    background: transparent;
}
.chat-widget-resize-handle-topleft {
    left: 0;
    top: 0;
}
.chat-widget-resize-handle-topleft:after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-left: 2px solid #bbb;
    border-top: 2px solid #bbb;
    position: absolute;
    left: 4px;
    top: 4px;
    border-radius: 4px 0 0;
}
.chat-widget-msg iframe {
    width: 100%;
    clear: both;
}
