.agenticwp-reasoning-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.agenticwp-reasoning-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--agenticwp-text-muted);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.agenticwp-reasoning-toggle:hover {
    color: var(--agenticwp-text);
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.08);
}

.agenticwp-reasoning-content {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--agenticwp-text);
    font-style: italic;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.agenticwp-reasoning-block {
    background-color: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 8px;
    align-self: flex-start;
    max-width: 80%;
    animation: agenticwp-fade-in 0.3s ease-out;
}

.agenticwp-reasoning-block .agenticwp-reasoning-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--agenticwp-text);
    opacity: 0.9;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    padding: 0;
    transition: opacity 0.2s ease;
}

.agenticwp-reasoning-block .agenticwp-reasoning-toggle:hover {
    opacity: 1;
}

.agenticwp-toggle-arrow {
    width: 16px;
    height: 16px;
    fill: var(--agenticwp-text);
    opacity: 0.9;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.agenticwp-reasoning-toggle.collapsed .agenticwp-toggle-arrow {
    transform: rotate(-90deg);
}

.agenticwp-reasoning-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--agenticwp-text);
    opacity: 0.9;
    font-style: italic;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 1000px;
    margin-top: 0;
}

.agenticwp-reasoning-text.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: -12px;
}

.agenticwp-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999995; /* Above chat panel but below admin bar */
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.agenticwp-toast {
    background: var(--agenticwp-bg-glass);
    backdrop-filter: var(--agenticwp-backdrop-blur);
    -webkit-backdrop-filter: var(--agenticwp-backdrop-blur);
    border: 1px solid var(--agenticwp-border);
    border-radius: var(--agenticwp-border-radius);
    padding: 10px 12px;
    box-shadow: var(--agenticwp-shadow);
    pointer-events: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--agenticwp-text);
    max-width: 380px;
    word-wrap: break-word;
    opacity: 0;
}

.agenticwp-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.agenticwp-toast.success {
    border-left: 4px solid var(--agenticwp-success);
}

.agenticwp-toast.error {
    border-left: 4px solid var(--agenticwp-error);
}

.agenticwp-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.agenticwp-toast-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.agenticwp-toast-message {
    flex: 1;
    font-weight: 500;
}

.agenticwp-toast-close {
    background: none;
    border: none;
    color: var(--agenticwp-text-muted);
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    margin-left: auto;
    flex-shrink: 0;
    font-size: 16px;
    line-height: 1;
    transition: color 0.15s ease;
}

.agenticwp-toast-close:hover {
    color: var(--agenticwp-text);
}

@media screen and (max-width: 782px) {
    .agenticwp-toast-container {
        right: 10px;
        bottom: 60px; /* Above mobile elements */
        max-width: calc(100vw - 20px);
    }

    .agenticwp-toast {
        max-width: calc(100vw - 40px);
    }
}

@media screen and (max-width: 600px) {
    .agenticwp-toast-container {
        right: 5px;
        bottom: 55px;
        max-width: calc(100vw - 10px);
    }

    .agenticwp-toast {
        max-width: calc(100vw - 30px);
        font-size: 13px;
        padding: 10px 14px;
    }
}