/**
 * Foxentry widgets — theme-neutral defaults, overridable via CSS custom
 * properties (set them on :root in the host theme):
 *
 *   --foxentry-radius, --foxentry-border, --foxentry-bg, --foxentry-fg,
 *   --foxentry-active-bg, --foxentry-hint-fg, --foxentry-accent
 */

.foxentry-dropdown {
    position: absolute;
    z-index: 10050;
    margin: 2px 0 0;
    padding: 4px;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    background: var(--foxentry-bg, #fff);
    border: 1px solid var(--foxentry-border, #d4d4d8);
    border-radius: var(--foxentry-radius, 8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 0.9375rem;
    color: var(--foxentry-fg, #27272a);
}

.foxentry-dropdown[hidden] {
    display: none;
}

.foxentry-dropdown__item {
    padding: 8px 12px;
    border-radius: calc(var(--foxentry-radius, 8px) - 4px);
    cursor: pointer;
    line-height: 1.35;
}

.foxentry-dropdown__item.is-active {
    background: var(--foxentry-active-bg, #f4f4f5);
}

.foxentry-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin-top: 4px;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--foxentry-hint-fg, #b45309);
}

.foxentry-hint__apply {
    padding: 0;
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    color: var(--foxentry-accent, #1d4ed8);
    text-decoration: underline;
    cursor: pointer;
}
