 #vsp-floating-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-width: 90%;
    max-height: 90vh; /* Prevents it from going off screen */
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column; /* Keep header and content stacked */
    font-family: 'Segoe UI', sans-serif;
}

/* Keep header always visible */
#vsp-floating-widget .vsp-header {
    background: #0073aa;
    color: #fff;
    padding: 10px 15px;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    flex-shrink: 0; /* Prevent header from shrinking */
}

#vsp-floating-widget .vsp-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* Make content scroll if too tall */
#vsp-floating-widget .vsp-content {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
    max-height: calc(90vh - 50px); /* Header height subtracted */
}

.vsp-score-bar {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    margin: 6px 0 14px;
}

.vsp-score-bar > div {
    height: 8px;
    border-radius: 4px;
}

.vsp-faq-item {
    margin-top: 8px;
}

.vsp-faq-toggle {
    width: 100%;
    text-align: left;
    background: #f3f3f3;
    border: 1px solid #ddd;
    padding: 8px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

.vsp-faq-answer {
    display: none;
    margin-top: 5px;
    font-size: 0.9em;
    color: #444;
}

/* Minimized style */
#vsp-floating-widget.minimized .vsp-content {
    display: none;
}

/* Responsive for small devices */
@media screen and (max-width: 400px) {
    #vsp-floating-widget {
        width: 95%;
        right: 2.5%;
        bottom: 10px;
    }
}
