.ariadna-bot {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

body:has(.customizer-setting) .ariadna-bot {
    bottom: 108px;
}

.ariadna-bot-bubble {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: #845adf;
    color: #fff;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ariadna-bot-bubble:hover,
.ariadna-bot-bubble:focus-visible {
    background: #6f44d4;
    color: #fff;
    outline: 0;
}

.ariadna-bot-panel {
    display: none;
    width: min(380px, calc(100vw - 32px));
    height: min(480px, calc(100vh - 160px));
    background: var(--vz-secondary-bg, #fff);
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 12px;
    overflow: hidden;
    flex-direction: column;
}

.ariadna-bot.is-open .ariadna-bot-panel {
    display: flex;
}

.ariadna-bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #845adf;
    color: #fff;
}

.ariadna-bot-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ariadna-bot-title {
    color: #fff;
    font-weight: 700;
}

.ariadna-bot-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.ariadna-bot-avatar--sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex: 0 0 40px;
}

.ariadna-bot-header .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.ariadna-bot-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 0;
    background: var(--vz-body-bg, #f3f6f9);
}

.ariadna-bot-intro {
    font-size: 12px;
    color: var(--vz-body-color, #495057);
    opacity: 0.8;
}

.ariadna-bot-status {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.ariadna-bot-status.is-ok {
    background: #e8f8ef;
    color: #0f7b3c;
}

.ariadna-bot-status.is-error {
    background: #fdecec;
    color: #b02a37;
}

.ariadna-bot-msg {
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.ariadna-bot-msg-text {
    margin: 0;
}

.ariadna-bot-msg.is-bot {
    align-self: flex-start;
    background: var(--vz-secondary-bg, #fff);
    color: var(--vz-body-color, #212529);
    border: 1px solid var(--vz-border-color, #e9ebec);
}

.ariadna-bot-result {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
}

.ariadna-bot-option {
    border: 0;
    background: transparent;
    color: #845adf;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.ariadna-bot-option:hover,
.ariadna-bot-option:focus-visible {
    color: #6f44d4;
    outline: 0;
}

.ariadna-bot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ariadna-bot-empty {
    font-size: 13px;
    color: var(--vz-body-color, #495057);
    opacity: 0.7;
    padding: 24px 8px;
    text-align: center;
}

.ariadna-bot-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    border: 1px solid var(--vz-border-color, #e9ebec);
    background: var(--vz-secondary-bg, #fff);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
}

.ariadna-bot-item.is-hecho:hover {
    border-color: #845adf;
}

.ariadna-bot-item.is-deshecho {
    cursor: default;
    opacity: 0.65;
}

.ariadna-bot-item-top {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
}

.ariadna-bot-item-mod {
    font-size: 11px;
    font-weight: 700;
    color: #845adf;
    text-transform: uppercase;
}

.ariadna-bot-item-date {
    font-size: 11px;
    color: #878a99;
}

.ariadna-bot-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--vz-body-color, #212529);
}

.ariadna-bot-item-email {
    font-size: 12px;
    color: #405189;
    word-break: break-all;
}

.ariadna-bot-item-hint {
    font-size: 11px;
    color: #878a99;
}

@media print {
    .ariadna-bot {
        display: none !important;
    }
}
