button.tp-footer-author {
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
}

button.tp-footer-author:hover .tp-footer-author-content span {
    color: var(--tp-theme-secondary);
}

button.tp-footer-author:focus-visible {
    outline: 2px solid var(--tp-theme-secondary);
    outline-offset: 4px;
    border-radius: 8px;
}

.atd-chatbot {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.atd-chatbot__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: #6860CC;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(104, 96, 204, 0.35);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.atd-chatbot__toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(104, 96, 204, 0.45);
}

.atd-chatbot__toggle i {
    font-size: 18px;
}

.atd-chatbot.is-open .atd-chatbot__toggle {
    display: none;
}

.atd-chatbot__panel {
    width: min(380px, calc(100vw - 32px));
    height: 520px;
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(2, 6, 38, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.atd-chatbot__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: #6860CC;
    color: #fff;
}

.atd-chatbot__header strong {
    display: block;
    font-size: 16px;
}

.atd-chatbot__header span {
    font-size: 12px;
    opacity: .85;
}

.atd-chatbot__close {
    border: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

.atd-chatbot__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f5f6fa;
}

.atd-chatbot__bubble {
    max-width: 88%;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 14px;
    white-space: pre-line;
}

.atd-chatbot__bubble--bot {
    background: #fff;
    color: #020626;
    border: 1px solid #e8eaf3;
    border-bottom-left-radius: 4px;
}

.atd-chatbot__bubble--user {
    background: #6860CC;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.atd-chatbot__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px 0;
    background: #fff;
}

.atd-chatbot__btn {
    border: 1px solid #6860CC;
    background: #fff;
    color: #6860CC;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.atd-chatbot__btn:hover {
    background: #6860CC;
    color: #fff;
}

.atd-chatbot__btn--primary {
    background: #6860CC;
    color: #fff;
}

.atd-chatbot__btn--primary:hover {
    background: #5750b8;
}

.atd-chatbot__btn--muted {
    border-color: #d7d9e5;
    color: #666;
}

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

.atd-chatbot__input {
    flex: 1;
    border: 1px solid #d7d9e5;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
}

.atd-chatbot__input:focus {
    border-color: #6860CC;
}

.atd-chatbot__send {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #6860CC;
    color: #fff;
    cursor: pointer;
}

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

    .atd-chatbot__toggle span {
        display: none;
    }

    .atd-chatbot__toggle {
        width: 56px;
        height: 56px;
        justify-content: center;
        padding: 0;
    }
}
