.chat-icon {
    border: none;
    padding: 0;
    cursor: pointer;
}

.chat-icon.rabbit-active {
    animation: rabbitButtonSettle 0.3s ease-out forwards;
}

@keyframes rabbitButtonSettle {
    0% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(3px) scale(0.9);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.rabbit-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 440px;
    max-height: calc(100vh - 130px);
    background: #fff;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 30px -5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    font-size: 14px;
    animation: rabbitSlideIn 0.3s ease-out;
}

.rabbit-panel[hidden] {
    display: none;
}

.rabbit-panel.rabbit-closing {
    animation: rabbitSlideOut 0.25s ease-in forwards;
}

@keyframes rabbitSlideIn {
    from {
        transform: translateX(40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes rabbitSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(40px);
        opacity: 0;
    }
}

.rabbit-header {
    background: #0f5729;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.rabbit-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.rabbit-scroll-area {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.rabbit-thread {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rabbit-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 1.4;
}

.rabbit-message--bot {
    background: #f1f3f0;
    color: #1a1a1a;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.rabbit-message--user {
    background: #0f5729;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.rabbit-result {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.rabbit-result-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.rabbit-result-datetime {
    font-weight: 600;
}

.rabbit-result-slots,
.rabbit-result-price {
    font-size: 12px;
    color: #666;
}

.rabbit-result-cta {
    font-size: 12px;
    font-weight: 600;
    color: #0f5729;
    margin-top: 2px;
}

.rabbit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 12px 12px;
}

.rabbit-chip {
    background: #fff;
    border: 1px solid #0f5729;
    color: #0f5729;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.rabbit-chip:hover {
    background: #0f5729;
    color: #fff;
}

.rabbit-keyword-form {
    display: flex;
    gap: 6px;
    padding: 0 12px 12px;
}

.rabbit-keyword-form input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}

.rabbit-keyword-form button {
    background: #0f5729;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

.rabbit-tour-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 12px 12px;
}

.rabbit-tour-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rabbit-tour-field label {
    font-size: 11px;
    font-weight: 600;
    color: #555;
}

.rabbit-tour-form input,
.rabbit-tour-form select,
.rabbit-tour-form textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    background: #fff;
    width: 100%;
    min-width: 0;
    font-family: inherit;
    resize: vertical;
}

.rabbit-tour-field--full {
    grid-column: 1 / -1;
}

.rabbit-tour-hint {
    font-size: 11px;
    color: #888;
    margin-top: -2px;
}

.rabbit-tour-form button {
    background: #0f5729;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .rabbit-panel {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 85px;
    }
}
