.anonymous-toggle-container {
    padding: 12px 15px;
    background-color: var(--hh-light, #f8f9fa);
    border-radius: 4px;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.anonymous-toggle-checkbox {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.anonymous-toggle-label {
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    display: flex;
    align-items: center;
}

.anonymous-toggle-hint {
    font-size: 0.875rem;
}

.anonymous-indicator {
    display: inline-block;
}

.anonymous-indicator .badge {
    font-size: 0.8125rem;
    padding: 0.35em 0.65em;
}

/* Anonymous user display */
.anonymous-user-display {
    position: relative;
}

.anonymous-user-image {
    position: relative;
    display: inline-block;
}

.anonymous-badge-overlay {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--bs-secondary, #6c757d);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
}

.anonymous-placeholder-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-secondary, #6c757d);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anonymous-user-name {
    display: inline-block;
    vertical-align: middle;
}

.anonymous-real-name {
    font-style: italic;
}

.anonymous-real-name small {
    font-size: 0.85em;
}

.anonymous-display-name {
    font-weight: 600;
    color: var(--bs-secondary, #6c757d);
}

/* Wall entry adjustments for anonymous posts */
.wall-entry.anonymous-post .media-heading {
    color: var(--bs-secondary, #6c757d);
}

/* Override for anonymous posts in stream */
.wall-entry[data-anonymous="true"] .content-owner-link,
.wall-entry[data-anonymous="true"] .author-link {
    pointer-events: none;
    color: var(--bs-secondary, #6c757d) !important;
}

.wall-entry[data-anonymous="true"] .author-link:hover {
    text-decoration: none;
}

/* Configuration page */
.panel .help-block {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .anonymous-toggle-container {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .anonymous-toggle-hint {
        margin-left: 0 !important;
        margin-top: 8px;
    }
}