/*
 * menuitem-dropdown-child-widget.css
 *
 * Listitem template for submenu rows. Standalone CSS scope so submenu
 * items style independently of the top-level row template
 * (.menuitem-link-widget).
 */

.menuitem-dropdown-child-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: var(--mc-theme-font-body, inherit);
    color: inherit;
    text-decoration: none;
    line-height: 1.3;
    white-space: nowrap;
    transition: background-color 120ms ease, color 120ms ease;
}

.menuitem-dropdown-child-widget:hover,
.menuitem-dropdown-child-widget:focus-visible {
    background: color-mix(in srgb, var(--mc-theme-color-ink, #151515) 6%, transparent);
    text-decoration: none;
}

.menuitem-dropdown-child-widget [data-mc-action-url] {
    cursor: pointer;
}

.menuitem-dropdown-child-widget [data-mc-action-url]:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--mc-theme-color-accent, #0170b9) 55%, transparent);
    outline-offset: 3px;
    border-radius: 6px;
}

.menuitem-dropdown-child-widget.is-active {
    background: color-mix(in srgb, var(--mc-theme-color-accent, #0170b9) 12%, transparent);
    color: var(--mc-theme-color-accent, #0170b9);
    font-weight: 600;
}

.menuitem-dropdown-child-icon {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 1;
}

.menuitem-dropdown-child-label {
    display: inline-block;
    min-width: 0;
}

.menuitem-dropdown-child-description {
    display: inline-block;
    margin-left: 6px;
    color: color-mix(in srgb, var(--mc-theme-color-ink, #151515) 46%, transparent);
    font-size: 0.78em;
}
