﻿.hermes-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
}

.hermes-chat-fab {
    width: 62px;
    height: 62px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, #c98718, #b4760e);
    color: #111;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

    .hermes-chat-fab:hover {
        transform: translateY(-2px);
    }

.hermes-chat-window {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 540px;
    background: rgba(35, 47, 54, 0.98);
    border: 1px solid rgba(180, 118, 14, 0.28);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.98);
    transition: 0.25s ease;
}

.hermes-chat-widget.open .hermes-chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.hermes-chat-widget.open .hermes-chat-fab {
    display: none;
}

.hermes-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.hermes-chat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hermes-chat-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(180deg, #c98718, #b4760e);
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.hermes-chat-brand strong {
    display: block;
    color: #f5f1e8;
    font-size: 14px;
    line-height: 1.2;
}

.hermes-chat-brand p {
    margin: 2px 0 0;
    color: rgba(245, 241, 232, 0.65);
    font-size: 12px;
}

.hermes-chat-close {
    border: 0;
    background: transparent;
    color: #f5f1e8;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.hermes-chat-body {
    flex: 1;
    padding: 16px 10px 16px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(180, 118, 14, 0.75) transparent;
}

    .hermes-chat-body::-webkit-scrollbar {
        width: 8px;
    }

    .hermes-chat-body::-webkit-scrollbar-track {
        background: transparent;
    }

    .hermes-chat-body::-webkit-scrollbar-thumb {
        background: rgba(180, 118, 14, 0.75);
        border-radius: 999px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

        .hermes-chat-body::-webkit-scrollbar-thumb:hover {
            background: rgba(201, 135, 24, 0.95);
            border: 2px solid transparent;
            background-clip: content-box;
        }

.hermes-chat-message {
    max-width: 82%;
    width: auto;
    min-width: 0;
    align-self: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-wrap;
}

.hermes-chat-message-bot {
    background: rgba(255, 255, 255, 0.05);
    color: #f5f1e8;
    border-top-left-radius: 4px;
}

.hermes-chat-message-user {
    align-self: flex-end;
    margin-left: 0;
    background: linear-gradient(180deg, #c98718, #b4760e);
    color: #111;
    border-top-right-radius: 4px;
}

.hermes-chat-quick-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
    flex-wrap: wrap;
}

.hermes-chat-chip {
    border: 1px solid rgba(180, 118, 14, 0.28);
    background: rgba(255, 255, 255, 0.03);
    color: #f5f1e8;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s ease;
}

    .hermes-chat-chip:hover {
        border-color: #c98718;
        color: #c98718;
    }

.hermes-chat-form {
    display: flex;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

    .hermes-chat-form input {
        flex: 1;
        height: 46px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.03);
        color: #f5f1e8;
        padding: 0 16px;
        outline: none;
    }

        .hermes-chat-form input::placeholder {
            color: rgba(245, 241, 232, 0.45);
        }

    .hermes-chat-form button {
        height: 46px;
        padding: 0 18px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(180deg, #c98718, #b4760e);
        color: #111;
        font-weight: 700;
        cursor: pointer;
    }

@media (max-width: 768px) {
    .hermes-chat-widget {
        right: 14px;
        bottom: 14px;
        left: auto;
        width: auto;
    }

        .hermes-chat-widget.open {
            left: 14px;
            right: 14px;
            width: auto;
        }

    .hermes-chat-window {
        right: 0;
        left: auto;
        width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        height: 68vh;
        bottom: 0;
    }

    .hermes-chat-fab {
        width: 62px;
        height: 62px;
        margin-left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}


.hermes-chat-typing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hermes-chat-typing-text {
    color: #f5f1e8;
    opacity: 0.82;
}

.hermes-chat-typing-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .hermes-chat-typing-dots span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(245, 241, 232, 0.88);
        opacity: 0.35;
        animation: hermesTypingBlink 1.2s infinite ease-in-out;
    }

        .hermes-chat-typing-dots span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .hermes-chat-typing-dots span:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes hermesTypingBlink {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    40% {
        transform: translateY(-2px);
        opacity: 1;
    }
}


.hermes-captcha {
    width: 100%;
    max-width: 380px;
    height: 78px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.hermes-captcha-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

.hermes-captcha-check {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    flex: 1;
    min-width: 0;
    height: 100%;
}

    .hermes-captcha-check input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.hermes-captcha-custom-box {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-block;
    position: relative;
    transition: 0.2s ease;
}

.hermes-captcha-check input[type="checkbox"]:checked + .hermes-captcha-custom-box::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 7px;
    height: 14px;
    border: solid #7CFFB2;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.hermes-captcha-text {
    font-size: 14px;
    color: #f5f1e8;
    line-height: 1.2;
    white-space: nowrap;
}

.hermes-captcha-brand {
    width: 112px;
    min-width: 112px;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: left;
}

.hermes-captcha-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.hermes-captcha-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
}

.hermes-captcha-brand-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(245, 241, 232, 0.82);
    line-height: 1.05;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.1px;
}

.hermes-captcha-brand-subtitle {
    font-size: 9px;
    color: rgba(245, 241, 232, 0.52);
    line-height: 1.1;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 3px;
}

.hermes-captcha-status {
    display: none;
}

.hermes-captcha.verified {
    border-color: rgba(124, 255, 178, 0.35);
    background: rgba(124, 255, 178, 0.08);
}
