.wolfy-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    font-family: 'Roboto', sans-serif;
}

.wolfy-chatbot button {
    font: inherit;
}

.wolfy-chatbot__launcher {
    position: relative;
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wolfy-chatbot__launcher:hover,
.wolfy-chatbot__launcher:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.wolfy-chatbot__launcher img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.wolfy-chatbot__launcher-label {
    position: absolute;
    right: calc(100% + 12px);
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--secondary-color);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--box-shadow);
}

.wolfy-chatbot__launcher-label::after {
    position: absolute;
    top: 50%;
    right: -6px;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    content: '';
    transform: translateY(-50%) rotate(45deg);
}

.wolfy-chatbot__panel {
    position: absolute;
    right: 0;
    bottom: 98px;
    display: flex;
    width: min(380px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 140px));
    max-height: min(620px, calc(100dvh - 140px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0, 51, 160, 0.14);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(0, 25, 75, 0.24);
}

.wolfy-chatbot__panel[hidden] {
    display: none;
}

.wolfy-chatbot__header {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--secondary-color);
    color: var(--white);
}

.wolfy-chatbot__header img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    background: var(--white);
    object-fit: cover;
}

.wolfy-chatbot__header h2 {
    margin: 0;
    color: var(--white);
    font-size: 1rem;
}

.wolfy-chatbot__header p {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
}

.wolfy-chatbot__close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    margin-left: auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 1.1rem !important;
}

.wolfy-chatbot__close:hover,
.wolfy-chatbot__close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.wolfy-chatbot__messages {
    display: flex;
    min-height: 150px;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px 16px 10px;
    background: #f5f7fb;
}

.wolfy-chatbot__message {
    max-width: 90%;
    padding: 11px 13px;
    border-radius: 14px;
    color: var(--text-color);
    font-size: 0.92rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.wolfy-chatbot__message p {
    margin: 0;
}

.wolfy-chatbot__message--bot {
    align-self: flex-start;
    border: 1px solid #e5eaf2;
    border-bottom-left-radius: 4px;
    background: var(--white);
}

.wolfy-chatbot__message--user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    background: var(--secondary-color);
    color: var(--white);
}

.wolfy-chatbot__answer-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wolfy-chatbot__suggestions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 7px;
    padding: 9px 14px;
    background: #f5f7fb;
}

.wolfy-chatbot__suggestions button {
    padding: 6px 10px;
    border: 1px solid rgba(0, 51, 160, 0.28);
    border-radius: 18px;
    background: var(--white);
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 0.77rem;
}

.wolfy-chatbot__suggestions button:hover,
.wolfy-chatbot__suggestions button:focus-visible {
    border-color: var(--secondary-color);
    background: #edf2ff;
}

.wolfy-chatbot__form {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #e5eaf2;
    background: var(--white);
}

.wolfy-chatbot__form input {
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #cbd3df;
    border-radius: 22px;
    color: var(--text-color);
    font: inherit;
    font-size: 0.9rem;
}

.wolfy-chatbot__form input:focus-visible {
    border-color: var(--secondary-color);
    outline: 3px solid rgba(0, 51, 160, 0.16);
}

.wolfy-chatbot__form button {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 1rem !important;
}

.wolfy-chatbot__form button:hover,
.wolfy-chatbot__form button:focus-visible {
    background: var(--primary-dark);
}

.wolfy-chatbot__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 480px) {
    .wolfy-chatbot {
        right: 14px;
        bottom: 14px;
    }

    .wolfy-chatbot__launcher {
        width: 72px;
        height: 72px;
    }

    .wolfy-chatbot__panel {
        right: -4px;
        bottom: 86px;
        max-height: calc(100vh - 116px);
        max-height: calc(100dvh - 116px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wolfy-chatbot__launcher {
        transition: none;
    }
}
