.ai-overview {
    max-width: 1060px;
    width: 100%;
    background: #ffffff;
    padding: 18px 22px;
    box-shadow: none;
    border-radius: 16px;
    border: 1px solid #f3a0d6;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 40px auto;
}

.ai-overview::before {
    content: "";
    position: absolute;
    inset: -45%;
    border-radius: inherit;
    background: conic-gradient(
      from 0deg,
      rgba(243, 160, 214, 0.2),
      rgba(243, 160, 214, 0.85),
      rgba(236, 72, 153, 1),
      rgba(243, 160, 214, 0.2)
    );
    animation: aiOverviewBorderSpin 2.2s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.ai-overview::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 14px;
    background: #ffffff;
    pointer-events: none;
    z-index: 1;
}

.ai-overview > * {
    position: relative;
    z-index: 2;
}

.ai-overview .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ai-overview .header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #233253;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ai-overview .header-title .title{
    font-weight: 600;
    font-size: 20px;
    line-height: 22px;
    color: #233253;
    margin: 0;
}
.ai-overview .header-title img{
    width: 30px;
    height: 30px;
}

        /* Buttons styling */

.ai-overview .btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ai-overview .btn-submit {
    background-color: #ed1c24;
    color: #ffffff;
}

.ai-overview .btn-submit:hover {
    background-color: #ed1c24;
    color: #ffffff;
}

.ai-overview .btn-clear {
    background-color: #e5e7eb;
    color: #374151;
}

.ai-overview .btn-clear:hover {
    background-color: #d1d5db;
    color: #374151;
}

        /* Utility class to hide elements */
.ai-overview .hidden {
    display: none !important;
}

.ai-overview .ai-status {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
}

.ai-overview .ai-status.is-blinking {
    animation: aiOverviewBlink 0.9s ease-in-out infinite;
}

.ai-overview .ai-content {
    margin-top: 12px;
}

@keyframes aiOverviewBlink {
  0% { opacity: 1; }
  50% { opacity: 0.35; }
  100% { opacity: 1; }
}

@keyframes aiOverviewBorderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.ai-overview .ai-content .sf-disclaimer{
    font-size: 12px;
    color: #6b7280;
    padding-top: 10px;
    border-top: 1px solid #d9d9dd;
}

@media (max-width:768px) {
    .ai-overview {
        margin: 10px auto;
        padding: 15px 10px;
    }
    .ai-overview .header-container {
        flex-direction: column;
        gap: 10px;  
    }
    .ai-overview .header-title {
        text-align: center;
    }
    .ai-overview .header-title .title{
        text-align: center;
    }
}