/* -------- Общие стили -------- */
.hp-bg-transparent {
    background-color: transparent;
}
.hp-bg-white {
    background-color: white;
}
.hp-bg-blue-50 {
    background-color: #eff6ff;
}
.hp-bg-blue-100 {
    background-color: #dbeafe;
}
/* .hp-bg-blue-600 {
    background-color: #2563eb;
} */
.hp-bg-blue-700 {
    background-color: #1d4ed8;
}
.hp-bg-gray-50 {
    background-color: #f9fafb;
}
.hp-bg-gray-100 {
    background-color: #f3f4f6;
}
.hp-bg-gray-200 {
    background-color: #e5e7eb;
}
.hp-bg-gray-300 {
    background-color: #d1d5db;
}
.hp-bg-green-50 {
    background-color: #f0fdf4;
}
.hp-bg-purple-50 {
    background-color: #f5f3ff;
}
.hp-bg-yellow-50 {
    background-color: #fefce8;
}
.hp-text-white {
    color: white;
}
.hp-text-gray-400 {
    color: #9ca3af;
}
.hp-text-gray-500 {
    color: #6b7280;
}
.hp-text-gray-600 {
    color: #4b5563;
}
.hp-text-gray-800 {
    color: #1f2937;
}
.hp-text-blue-600 {
    color: #2563eb;
}
.hp-text-green-600 {
    color: #16a34a;
}
.hp-text-purple-600 {
    color: #7c3aed;
}
.hp-text-yellow-600 {
    color: #ca8a04;
}
.hp-text-sm {
    font-size: 0.875rem;
}
.hp-text-xs {
    font-size: 0.75rem;
}
.hp-text-base {
    font-size: 1rem;
}
.hp-text-lg {
    font-size: 1.125rem;
}
.hp-font-bold {
    font-weight: 700;
}
.hp-leading-none {
    line-height: 1;
}
.hp-rounded-full {
    border-radius: 50%;
}
.hp-rounded-lg {
    border-radius: 0.5rem;
}
.hp-rounded-xl {
    border-radius: 0.75rem;
}
.hp-border {
    border-width: 1px;
    border-style: solid;
}
.hp-border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}
.hp-border-t {
    border-top-width: 1px;
    border-top-style: solid;
}
.hp-border-gray-200 {
    border-color: #e5e7eb;
}
.hp-border-gray-300 {
    border-color: #d1d5db;
}
.hp-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.hp-overflow-hidden {
    overflow: hidden;
}
.hp-overflow-y-auto {
    overflow-y: auto;
}
.hp-flex {
    display: flex;
}
.hp-flex-col {
    flex-direction: column;
}
.hp-items-center {
    align-items: center;
}
.hp-justify-between {
    justify-content: space-between;
}
.hp-justify-center {
    justify-content: center;
}
.hp-justify-end {
    justify-content: flex-end;
}
.hp-flex-grow {
    flex-grow: 1;
}
.hp-flex-shrink-0 {
    flex-shrink: 0;
}
.hp-space-y-3> :not([hidden])~ :not([hidden]) {
    margin-top: 0.75rem;
}
.hp-p-3 {
    padding: 0.75rem;
}
.hp-p-4 {
    padding: 1rem;
}
.hp-px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.hp-px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.hp-py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.hp-py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.hp-mb-1 {
    margin-bottom: 0.25rem;
}
.hp-mb-2 {
    margin-bottom: 0.5rem;
}
.hp-mb-3 {
    margin-bottom: 0.75rem;
}
.hp-ml-2 {
    margin-left: 0.5rem;
}
.hp-mr-1 {
    margin-right: 0.25rem;
}
.hp-mr-2 {
    margin-right: 0.5rem;
}
.hp-mr-3 {
    margin-right: 0.75rem;
}
.hp-mt-1 {
    margin-top: 0.25rem;
}
.hp-w-8 {
    width: 2rem;
}
.hp-w-10 {
    width: 2.5rem;
}
.hp-w-48 {
    width: 12rem;
}
.hp-w-full {
    width: 100%;
}
.hp-h-8 {
    height: 2rem;
}
.hp-h-10 {
    height: 2.5rem;
}
.hp-max-w-xs {
    max-width: 20rem;
}
.hp-max-h-40vh {
    max-height: 40vh;
}
.hp-h-80vh {
    height: 80vh;
}
.hp-max-h-80vh {
    max-height: 80vh;
}
.hp-z-50 {
    z-index: 50;
}
.hp-z-9999 {
    z-index: 9999;
}
.hp-relative {
    position: relative;
}
.hp-absolute {
    position: absolute;
}
.hp-fixed {
    position: fixed;
}
.hp-right-4 {
    right: 1rem;
}
.hp-bottom-full {
    bottom: 80%;
}
.hp-bottom-1rem {
    bottom: 1rem;
}
.hp-right-1rem {
    right: 1rem;
}
.hp-hidden {
    display: none;
}
.hp-text-left {
    text-align: left;
}
.hp-text-right {
    text-align: right;
}
.hp-transition-all {
    transition: all 0.3s ease;
}
.hp-hover-bg-blue-50:hover {
    background-color: #eff6ff;
}
.hp-hover-bg-blue-700:hover {
    background-color: #1d4ed8;
}
.hp-hover-bg-gray-100:hover {
    background-color: #f3f4f6;
}
.hp-hover-bg-gray-200:hover {
    background-color: #e5e7eb;
}
.hp-hover-bg-green-50:hover {
    background-color: #f0fdf4;
}
.hp-hover-bg-purple-50:hover {
    background-color: #f5f3ff;
}
.hp-hover-bg-yellow-50:hover {
    background-color: #fefce8;
}
.hp-hover-text-gray-600:hover {
    color: #4b5563;
}
.hp-hover-underline:hover {
    text-decoration: underline;
}
.hp-focus-outline-none:focus {
    outline: none;
}
.hp-focus-ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.hp-focus-ring-blue-500:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
.hp-focus-border-transparent:focus {
    border-color: transparent;
}
.hp-grid {
    display: grid;
}
.hp-grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}
.hp-gap-3 {
    gap: 0.75rem;
}
/* -------- widget placement -------- */
.hp-chat-widget {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 90vw;
    max-width: 420px;
    z-index: 9999;
}
@media (max-width: 640px) {
    .hp-chat-widget {
        width: 0;
        height: 100vh;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 0;
    }
    #chat-window-container {
        height: 100vh;
        max-height: 100vh;
    }
}
/* -------- размеры и анимации -------- */
.hp-message-animation {
    animation: hp-fadeIn 0.3s ease-in-out;
}
@keyframes hp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hp-typing-indicator::after {
    content: "...";
    animation: hp-typing 1.5s infinite;
}
@keyframes hp-typing {
    0% {
        content: ".";
    }
    33% {
        content: "..";
    }
    66% {
        content: "...";
    }
}
.hp-category-btn {
    transition: all 0.3s ease;
}
/* Removed hover transform/shadow to be controlled by JS or more specific CSS if needed */
/* .hp-category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
} */
#hp-chat-widget-header {
    cursor: pointer;
}
#hp-chat-widget-header.hp-circular-button {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}
#hp-chat-widget-header.hp-circular-button .header-content {
    display: none;
}
#hp-chat-widget-header.hp-circular-button .header-icon-container {
    margin-right: 0 !important;
}
#hp-chat-widget-header.hp-circular-button .options-button {
    display: none;
}
#chat-window-container.collapsed-to-circle {
    width: 3.5rem !important;
    height: 3.5rem !important;
    max-width: 3.5rem !important;
    max-height: 3.5rem !important;
    padding: 0 !important;
    /* overflow: hidden; */
    border-radius: 50% !important;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
}
#chat-window-container.collapsed-to-circle>#hp-chat-widget-header {
    border-bottom-width: 0 !important;
}
#hp-hint {
    position: fixed;
    bottom: 16px;
    right: 80px;
    background: #fff;
    border: 2px solid #e1e1e1;
    padding: 8px 16px;
    z-index: 9999;
    display: none;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgb(0 0 0 / .2);
    cursor: pointer;
}
#hp-hint__title{
    font-weight: bold;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 2px;
}

#dropdown-menu button img,
#dropdown-menu a img{
    margin-right: 16px;
}

#dropdown-menu button,
#dropdown-menu a{
    font-size: 12px;
}