.sp-case-ai-button {
    background: #f59e0b;
    color: #111;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

.sp-ai-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff8eb;
    border: 1px solid #fde7b0;
    border-radius: 16px;
}

.sp-ai-section {
    margin-bottom: 18px;
}

.sp-ai-section h3 {
    margin-bottom: 6px;
    font-size: 16px;
}

.sp-ai-reply {
    width: 100%;
    min-height: 120px;
    margin-top: 10px;
}


.sp-case-ai-panel {
    background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
    border: 1px solid #fde7b0;
    border-radius: 24px;
    padding: 22px 24px;
    margin: 0 0 24px;
    box-shadow: 0 4px 18px rgba(18, 24, 33, 0.04);
}

.sp-case-ai-panel-head {
    margin-bottom: 14px;
}

.sp-case-ai-panel-title {
    font-size: 20px;
    font-weight: 800;
    color: #121821;
    margin-bottom: 4px;
}

.sp-case-ai-panel-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.sp-case-ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #f59e0b;
    color: #111827;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.18);
}

.sp-case-ai-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.sp-case-ai-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.sp-case-ai-result {
    margin-top: 18px;
}

.sp-ai-result-card {
    background: #ffffff;
    border: 1px solid #f3e3b3;
    border-radius: 18px;
    padding: 18px;
}

.sp-ai-result-section + .sp-ai-result-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f3f4f6;
}

.sp-ai-result-title {
    font-size: 16px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 8px;
}

.sp-ai-result-text {
    font-size: 15px;
    line-height: 1.9;
    color: #374151;
}

.sp-ai-result-list {
    margin: 0;
    padding-right: 18px;
    color: #374151;
    line-height: 1.9;
}

.sp-ai-result-list li {
    margin-bottom: 6px;
}

.sp-ai-reply-draft {
    width: 100%;
    min-height: 150px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    font-size: 15px;
    line-height: 1.8;
    color: #111827;
    background: #f9fafb;
    resize: vertical;
    box-sizing: border-box;
    direction: rtl;
    text-align: right;
    margin-top: 8px;
}

.sp-ai-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.sp-ai-use-reply-button,
.sp-ai-copy-reply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #d8dee6;
    background: #ffffff;
    color: #1f2933;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.sp-ai-use-reply-button:hover,
.sp-ai-copy-reply-button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.sp-ai-use-reply-button {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #111827;
}