.uc_ai {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    box-sizing: border-box;
}

.uc_ai * {
    box-sizing: border-box;
}

.uc_ai .uc_ai_widget-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    width: auto;
    height: auto;
    z-index: 90;
    display: flex;
    flex-direction: row-reverse;
}

.uc_ai .uc_ai_widget-actions action {
    pointer-events: all;
    display: flex;
    gap: 4px;
    align-items: center;
    font-weight: bold;
    padding: 12px 12px 12px 12px;
    background-color: transparent;
    color: #303030;
    cursor: pointer;
}

.uc_ai .uc_ai_widget-actions action.uc_ai_toggle {
    padding: 12px;
    background-color: #6F4173;
    color: #fff;
    transition: background-color 0.3s ease-in-out;
    border-radius: 0 8px 0 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    mix-blend-mode: multiply;
    width: 130px;
    box-sizing: border-box;
}

.uc_ai .uc_ai_widget-actions action.uc_ai_toggle:hover {
    background-color: #5E2D5E;
}

.uc_ai .uc_ai_widget-actions action.uc_ai_chat-new,
.uc_ai .uc_ai_widget-actions action.uc_ai_chat-history {
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease-in-out;
}

.uc_ai .uc_ai_widget-actions action span {
    letter-spacing: 0.02em;
    font-size: 12px;
}

.uc_ai .uc_ai_widget-wrapper {
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: -120px;
    left: 0;
    width: 100%;
    max-width: 640px;
    height: 100%;
    max-height: calc(100vh - 80px);
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 0 16px 0 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 20px 64px 20px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: all 0.3s ease-in-out;
}

.uc_ai .uc_ai_widget-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: linear-gradient(353deg,rgba(111, 65, 115, 1) 0%, rgba(111, 65, 115, 0) 100%);
    opacity: 0.2;
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_header-wrapper {
    pointer-events: all;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    z-index: 10;
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_header-wrapper .uc_ai_header {
    display: flex;
    gap: 8px;
    align-items: center;
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_header-wrapper .uc_ai_header span {
    font-size: 16px;
    font-weight: bold;
    color: #303030;
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_header-wrapper .uc_ai_header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_header-wrapper .uc_ai_header-actions svg {
    width: 16px;
    height: 16px;
    /* fill: #303030; */
    transition: all 0.3s ease-in-out;
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_header-wrapper .uc_ai_header-actions svg:hover {
    /* fill: #6F4173; */
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_header-wrapper .uc_ai_header-actions .uc_ai_widget-close {
    cursor: pointer;
}

.uc_ai .uc_ai_widget-wrapper .uc_ai_widget-content {
    display: flex;
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: visible;
    position: relative;
    z-index: 10;
}

.uc_ai.active .uc_ai_widget-wrapper {
    opacity: 1;
    bottom: 0;
    pointer-events: all;
}

.uc_ai.active .uc_ai_widget-actions action.uc_ai_chat-new,
.uc_ai.active .uc_ai_widget-actions action.uc_ai_chat-history {
    opacity: 1;
    pointer-events: all;
}

.uc_ai:not(.active) .uc_ai_widget-wrapper,
.uc_ai:not(.active) .uc_ai_widget-wrapper * {
    pointer-events: none !important;
}