.isd-chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: "Work Sans", sans-serif;
}

.isd-chatbot__toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #cd5f91;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.2s ease, background 0.2s ease;
}

.isd-chatbot__toggle:hover {
    transform: scale(1.05);
    background: #C23D79;
}

.isd-chatbot__toggle-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #C23D79;
    color: #fff;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.isd-chatbot__panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.isd-chatbot__header {
    background: #3c3c3c;
    color: #fff;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.isd-chatbot__header strong {
    display: block;
    font-size: 15px;
}

.isd-chatbot__header small {
    display: block;
    font-size: 12px;
    opacity: 0.75;
    margin-top: 2px;
}

.isd-chatbot__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.8;
}

.isd-chatbot__close:hover {
    opacity: 1;
}

.isd-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
}

.isd-chatbot__msg {
    display: flex;
}

.isd-chatbot__msg--user {
    justify-content: flex-end;
}

.isd-chatbot__msg--bot .isd-chatbot__bubble {
    background: #fff;
    color: #333;
    border: 1px solid #e9ecef;
    border-radius: 16px 16px 16px 4px;
}

.isd-chatbot__msg--user .isd-chatbot__bubble {
    background: #cd5f91;
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}

.isd-chatbot__bubble--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.isd-chatbot__bubble {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.isd-chatbot__bubble--typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 12px 16px;
}

.isd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cd5f91;
    display: inline-block;
    animation: isd-bounce 1.2s infinite ease-in-out;
}

.isd-dot:nth-child(2) { animation-delay: 0.2s; }
.isd-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes isd-bounce {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}

.isd-chatbot__form-wrap {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    background: #fff;
    max-height: 240px;
    overflow-y: auto;
}

.isd-chatbot__form-title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #3c3c3c;
}

.isd-chatbot__field {
    margin-bottom: 8px;
}

.isd-chatbot__field input,
.isd-chatbot__field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    box-sizing: border-box;
}

.isd-chatbot__field input:focus,
.isd-chatbot__field textarea:focus {
    outline: none;
    border-color: #cd5f91;
}

.isd-chatbot__submit {
    width: 100%;
    padding: 10px;
    background: #cd5f91;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.isd-chatbot__submit:hover {
    background: #C23D79;
}

.isd-chatbot__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.isd-chatbot__input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    background: #fff;
}

.isd-chatbot__input-area input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #dee2e6;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
}

.isd-chatbot__input-area input:focus {
    border-color: #cd5f91;
}

.isd-chatbot__input-area button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #cd5f91;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.isd-chatbot__input-area button:hover {
    background: #C23D79;
}

.isd-chatbot a {
    color: #cd5f91;
    text-decoration: underline;
}

.isd-chatbot a:hover {
    text-decoration: none;
}

.isd-chatbot__input-area button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

    .isd-chatbot__panel {
        width: calc(100vw - 32px);
        height: calc(100vh - 100px);
    }
}
